v3.5 gives "There has been a critical error on your website. Please check your site admin email inbox for instructions."
-
Starting with v3.5 (which Set WP_CONTENT_DIR properly), I'm getting the following error when trying to access certain plugins:
There has been a critical error on your website. Please check your site admin email inbox for instructions.
Logs show the following:
Jan 23 21:43:56[Wed Jan 24 02:43:56.407127 2024] [php:warn] [pid 74] [client xx.123.123.123:12345] PHP Warning: Undefined property: CRM_Core_Config::$extensionsDir in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Extension/System.php on line 89, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing Jan 23 21:43:56[Wed Jan 24 02:43:56.411223 2024] [php:warn] [pid 74] [client xx.123.123.123:12345] PHP Warning: Undefined property: CRM_Core_Config::$extensionsDir in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Extension/System.php on line 89, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing Jan 23 21:43:56[Wed Jan 24 02:43:56.411285 2024] [php:warn] [pid 74] [client xx.123.123.123:12345] PHP Warning: Undefined property: CRM_Core_Config::$extensionsURL in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Extension/System.php on line 90, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing Jan 23 21:43:56[Wed Jan 24 02:43:56.414471 2024] [php:warn] [pid 74] [client xx.123.123.123:12345] PHP Warning: Undefined property: CRM_Core_Config::$extensionsDir in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Extension/System.php on line 89, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing Jan 23 21:43:56[Wed Jan 24 02:43:56.414568 2024] [php:warn] [pid 74] [client xx.123.123.123:12345] PHP Warning: Undefined property: CRM_Core_Config::$extensionsURL in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Extension/System.php on line 90, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing Jan 23 21:43:56[Wed Jan 24 02:43:56.414577 2024] [php:warn] [pid 74] [client xx.123.123.123:12345] PHP Warning: Undefined property: CRM_Core_Config::$uploadDir in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Extension/System.php on line 92, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing Jan 23 21:43:56[Wed Jan 24 02:43:56.544910 2024] [php:error] [pid 74] [client xx.123.123.123:12345] PHP Fatal error: Uncaught CRM_Core_Exception: [0: Invalid currency ""\n\n thrown in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Utils/Money.php on line 85, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing Jan 23 21:43:56xx.123.123.123 - - [24/Jan/2024:02:43:56 +0000] "GET /wp-admin/post.php?post=544&action=edit HTTP/1.1" 500 2672 "https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.1 Safari/605.1.15"
Would setting
WP_CONTENT_DIR
properly affect these plugins? -
@superhua said in v3.5 gives "There has been a critical error on your website. Please check your site admin email inbox for instructions.":
Would setting WP_CONTENT_DIR properly affect these plugins?
WP_CONTENT_DIR is set to
/app/data/wp-content
. This should have been the default anyway.Jan 23 21:43:56[Wed Jan 24 02:43:56.544910 2024] [php:error] [pid 74] [client xx.123.123.123:12345] PHP Fatal error: Uncaught CRM_Core_Exception: [0: Invalid currency ""\n\n thrown in /app/data/wp-content/plugins/civicrm/civicrm/CRM/Utils/Money.php on line 85, referer: https://example.com/wp-admin/edit.php?post_status=trash&post_type=job_listing
Is the error not above in CRM plugin ? Line 85 is throwing something about Invalid currency. Have you tried disabling the CRM plugin and checking if it brings the site up?
-
Thank you.
I'm able to access the site; I'm just getting the error when interacting with certain plugins.
Yes, the error is from CiviCRM. Disabling the CiviCRM resolves the problem I have with one plugin – but then I can't use CiviCRM.
I cloned a backup that was working off v3.4.2, and everything worked correctly. However, when it updated to v.3.6, the same problems arose. Odd.
Thanks again.
-
Per https://civicrm.stackexchange.com/questions/4940/wordpress-content-directory-setting , CiviCRM might be hardcoding some old content path (maybe it thinks it is /app/code/wp-content) . Does changing it to /app/code/wp-content make it load ?
-
-
-
-