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_DIRproperly affect these plugins? -
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_DIRproperly 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.
-
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.
@superhua can you then check if adding the line in wp-config.php causes problem in your 3.4.2 install ?
define('WP_CONTENT_DIR', '/app/data/wp-content'); -
Yes, adding that line causes the problem.
Is that line formatted correctly? I found this and tired to format it accordingly, but still got an error.
(But I'm not sure I formatted it properly.)
@superhua if WP loads, the line is formatted correctly.
-
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 ?
-
S superhua has marked this topic as solved on
-
G girish has marked this topic as unsolved on
-
Yes!
Changing to
define('WP_CONTENT_DIR', '/app/code/wp-content');in
wp-config.phpallows content to load.Thank you so much!
@superhua unfortunately, the problem is not solved. when you update the package will rewrite it again . Let me see how to fix this.
-
-
Ah perfect, solved again then

-
G girish has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login