-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error when deploying to production #32
Comments
Hi, can I take a look of your manifest file? |
Sure, here you go: { |
I will perform some tests to understand why this valid JSON manifest is read as an array rather than an object. |
Thanks! I'm not sure if it helps, but the fix so far has been to comment out line 156 of lib/Raccoon.php. |
Thank you for this information, it helps. |
Interesting, I just installed a new clear WP (with bedrock) and tried to load your |
Yes, I found something. Thank you very much. |
Using Laravel Valet on macOS, PHP 7.0.8, latest Bedrock and WP. This happens on both my local environment and a Digital Ocean production environment. |
Thank you! |
I've just published a new version ( |
Thank you so much! I appreciate how quick and responsive you are to feedback. :) |
I'm not sure if this is an issue with Raccoon itself, or my manifest file. But when I deploy a site with Raccoon (loaded as an mu-plugin) to production, WordPress crashes and PHP logs the following error:
PHP Fatal error: Uncaught Error: Cannot use object of type Hiwelo\Raccoon\Manifest as array in /srv/users/serverpilot/apps/phmass-org-prod/web/app/mu-plugins/raccoon-plugin/lib/Raccoon.php:156 Stack trace: #0 /srv/users/serverpilot/apps/phmass-org-prod/web/app/mu-plugins/raccoon-plugin/lib/Raccoon.php(72): Hiwelo\Raccoon\Raccoon->loadEnvironmentStatus() #1 /srv/users/serverpilot/apps/phmass-org-prod/web/app/mu-plugins/raccoon-plugin/raccoon.php(38): Hiwelo\Raccoon\Raccoon->__construct() #2 /srv/users/serverpilot/apps/phmass-org-prod/web/wp/wp-includes/plugin.php(524): Roots\Bedrock\Autoloader::Hiwelo\Raccoon{closure}('') #3 /srv/users/serverpilot/apps/phmass-org-prod/web/wp/wp-settings.php(395): do_action('after_setup_the...') #4 /srv/users/serverpilot/apps/phmass-org-prod/web/wp-config.php(9): require_once('/srv/users/serv...') #5 /srv/users/serverpilot/apps/phmass-org-prod/web/wp/wp-load.php(44): require_once('/srv/users/serv...') #6 /srv/users/serverpilot/apps/phmass-org-prod/web/wp/wp-blog-header.php(13): require_once('/ in /srv/users/serverpilot/apps/phmass-org-prod/web/app/mu-plugins/raccoon-plugin/lib/Raccoon.php on line 156
The text was updated successfully, but these errors were encountered: