Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. WordPress (Managed)
  3. v3.5 gives "There has been a critical error on your website. Please check your site admin email inbox for instructions."

v3.5 gives "There has been a critical error on your website. Please check your site admin email inbox for instructions."

Scheduled Pinned Locked Moved Solved WordPress (Managed)
civicrmpluginscontentdir
11 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S superhua

    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?

    girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #2

    @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?

    1 Reply Last reply
    1
    • S Offline
      S Offline
      superhua
      wrote on last edited by
      #3

      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.

      girishG 1 Reply Last reply
      0
      • S superhua

        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.

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by girish
        #4

        @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');
        
        1 Reply Last reply
        0
        • S Offline
          S Offline
          superhua
          wrote on last edited by
          #5

          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.)

          girishG 1 Reply Last reply
          0
          • S superhua

            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.)

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #6

            @superhua if WP loads, the line is formatted correctly.

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #7

              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 ?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                superhua
                wrote on last edited by
                #8

                Yes!

                Changing to

                define('WP_CONTENT_DIR', '/app/code/wp-content');
                

                in wp-config.php allows content to load.

                Thank you so much!

                girishG 1 Reply Last reply
                0
                • S superhua has marked this topic as solved on
                • girishG girish has marked this topic as unsolved on
                • S superhua

                  Yes!

                  Changing to

                  define('WP_CONTENT_DIR', '/app/code/wp-content');
                  

                  in wp-config.php allows content to load.

                  Thank you so much!

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #9

                  @superhua unfortunately, the problem is not solved. when you update the package will rewrite it again . Let me see how to fix this.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    superhua
                    wrote on last edited by
                    #10

                    Thank you, but don't spend too much time on this.

                    I did a fresh test install of WordPress and CiviCRM, and it works (and this is with /app/data/wp-content in wp-config.php).

                    For now, I can just update wp-config.php as needed in my current install.

                    1 Reply Last reply
                    2
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      Ah perfect, solved again then 😄

                      1 Reply Last reply
                      1
                      • girishG girish has marked this topic as solved on
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search