Laravel Deployments on AppFog & PHP Extensions

48 views
Skip to first unread message

J Brennan

unread,
Jan 31, 2015, 10:11:41 PM1/31/15
to appfog...@googlegroups.com
We are writing a new PHP web app using the Laravel framework. There are a few posts that say composer needs to be run locally, then the whole updated application needs to be pushed or updated to AppFog. We got that far, but are now getting errors i.e. "unexpected '[' in /mnt/var/vcap.logal/dea...laravel/famework/src/illuminate/support/helpers.php on line 426"  We got this error and others on the development environment and the solution was to enable PHP extensions, in this case it is tokenizer.so.  We see no way to validate if this extension is enabled or enable it in our AppFog PHP6 application. Has anyone else encountered this and solved it, being able to deploy successfully to AppFog?

J Brennan

unread,
Feb 5, 2015, 4:46:48 PM2/5/15
to appfog...@googlegroups.com
The original issue was solved by running phpinfo() and finding that the server was running PHP5.3 instead of the expected 5.6. The application was deleted and recreated from the online AppFog console versus the CLI which had defaulted to the lower version, selecting PHP5.6 and the helpers.php line 426 erro was resolved. Also, AppFog support was helpful and provided the command to force the newer runtime when pusing the application from the CLI (af push <appname> --runtime=php56.).  However, a new error not happening in the local development environments is now appearing on AppFog after trying to sign into the application and navigate to the logged in site pages.  Illuminate\Session\TokenMismatchException …/­app/­filters.php88 
We did find laravel forum posting that appears to be related to the new issue and are checking out how it applies to our application, but is still unresolved.
Reply all
Reply to author
Forward
0 new messages