You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with multiple installations of WordPress using Laradock. When I visit one site (we'll call it Test1) for the first time, everything looks great. Test2 is an exact clone of Test1, but with a different database and separate file path (/var/www/Test1 & /var/www/Test2). When I try to load Test2, it throws a 500 Error:
Fatal error: Cannot declare class wpai_acf_add_on\acf\fields\FieldGoogleMap, because the name is already in use in /var/www/test1.local/wp-content/plugins/wpai-acf-add-on/libraries/acf-fields/fields/fieldGoogleMap.php on line 0
I've been trying to work around this for a couple of days now. It feels like a misconfiguration with my local environment, so I essentially nuked everything (Fresh Laradock, Reinstalled Docker, wiped all data volumes / networks / images, rebuilt everything, etc) but cannot get around this fatal error.
This feels like somehow the PHP process loading Test2 already has Test1 loaded. Opcache is off and no other object caching is involved, afaik.
Looking for some advice on what to try next as this is causing a headache and I'm out of my own brain power to debug further. I realize there are some specifics that might be necessary that I am leaving out, so ask questions and I can provide further information as best I can. Again, just looking for direction, and if it's some way that I am configuring this thing, maybe it will help someone else down the road. Thanks in advance.
Relevant Code:
Full stacktrace of the error:
Fatal error: Cannot declare class wpai_acf_add_on\acf\fields\FieldGoogleMap, because the name is already in use in /var/www/test1.local/wp-content/plugins/wpai-acf-add-on/libraries/acf-fields/fields/fieldGoogleMap.php on line 0
--
1 | 0.0000 | 404104 | {main}( ) | .../plugins.php:0
2 | 0.3298 | 3210864 | plugin_sandbox_scrape( ) | .../plugins.php:178
3 | 0.3299 | 3213768 | include( '/var/www/test2.local/wp-content/plugins/wpai-acf-add-on/wpai-acf-add-on.php' ) | .../plugin.php:1897
4 | 0.3301 | 3214120 | PMAI_Plugin::getInstance( ) | .../wpai-acf-add-on.php:534
5 | 0.3301 | 3214360 | PMAI_Plugin->__construct( ) | .../wpai-acf-add-on.php:100
6 | 0.4029 | 3360008 | require_once( '/var/www/test2.local/wp-content/plugins/wpai-acf-add-on/libraries/acf-fields/fields/fieldGoogleMapExtended.php' ) | .../wpai-acf-add-on.php:193
Here is the beginning of the class that won't load in separate sites:
<?php
namespace wpai_acf_add_on\acf\fields;
use wpai_acf_add_on\acf\ACFService;
require_once PMAI_ROOT_DIR . '/libraries/acf-fields/base/baseGoogleMap.php';
/**
* Class FieldGoogleMap
* @package wpai_acf_add_on\acf\fields
*/
class FieldGoogleMap extends BaseGoogleMap {
...
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.
Info:
$ docker --version
): 18.06.1-ce, build e68fc7a$ git rev-parse HEAD
): 0ed5487Issue:
I am working with multiple installations of WordPress using Laradock. When I visit one site (we'll call it Test1) for the first time, everything looks great. Test2 is an exact clone of Test1, but with a different database and separate file path (/var/www/Test1 & /var/www/Test2). When I try to load Test2, it throws a 500 Error:
I've been trying to work around this for a couple of days now. It feels like a misconfiguration with my local environment, so I essentially nuked everything (Fresh Laradock, Reinstalled Docker, wiped all data volumes / networks / images, rebuilt everything, etc) but cannot get around this fatal error.
This feels like somehow the PHP process loading Test2 already has Test1 loaded. Opcache is off and no other object caching is involved, afaik.
Looking for some advice on what to try next as this is causing a headache and I'm out of my own brain power to debug further. I realize there are some specifics that might be necessary that I am leaving out, so ask questions and I can provide further information as best I can. Again, just looking for direction, and if it's some way that I am configuring this thing, maybe it will help someone else down the road. Thanks in advance.
Relevant Code:
Full stacktrace of the error:
Here is the beginning of the class that won't load in separate sites:
The text was updated successfully, but these errors were encountered: