Warning: The magic method SFML_Singleton::__wakeup() must have public visibility in /home/public/wp-content/plugins/sf-move-login/inc/classes/class-sfml-singleton.php on line 72
December 2016 – Thoughts, etc.

Thoughts, etc.

Tracking the occasional random walk

Month: December 2016

Long-running PHP process on nginx

2016-12-13 / Leave a Comment

Recently I had to allow a PHP script to run for several minutes under Nginx (more specifically, as part of a Laravel app on a DigitalOcean server), after encountering the error “504 Gateway Timeout”. First, to tell Nginx to allow the script to run for a longer period of time, I set the FastCGI read timeout to ten … [Read more…]

Posted in: system Tagged: nginx, notes, php

Abstract app controllers and the CakePHP ACL plugin

2016-12-06 / Leave a Comment

I’m working on a CakePHP-based app that has multiple abstract base controller classes that inherit from AppController. The majority of the concrete controllers inherit from one of these abstract classes. I recently added the CakePHP/Acl plugin to the app, and was presented with the error

Shell
1
Exception: Cannot instantiate abstract class App\Controller\MyAbstractController in [/apppath/vendor/cakephp/acl/src/AclExtras.php, line 433]

when I tried to use the  bin/cake acl_extras aco_sync command to generate ACOs … [Read more…]

Posted in: code Tagged: cakephp