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 (Developer)
  3. PHP Fatal error

PHP Fatal error

Scheduled Pinned Locked Moved WordPress (Developer)
19 Posts 7 Posters 3.1k Views 7 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.
    • P Offline
      P Offline
      p44
      translator
      wrote on last edited by p44
      #1

      Dear all,

      after latest update to Wordpress Developer, instance is broken and I have

      PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /app/data/public/wp-includes/pomo/mo.php on line 328

      Of course, I tried to disable all plugins, delete all themes, increase memory, but nothing happens...

      I also tried to restore old backups, but nothing to do... Always same problem.

      I suppose that is related to latest Cloudron Wordpres package update... To validate this hypothesis, how I can downgrade from org.wordpress.unmanaged.cloudronapp@3.0.4 to org.wordpress.unmanaged.cloudronapp@3.0.3?

      Edit: I restored a backup on org.wordpress.unmanaged.cloudronapp@3.0.3, but nothing happens...
      Edit: I restored even an old backup, 5 days ago, but problem is still the same.

      Can you help me?

      d19dotcaD M 2 Replies Last reply
      1
      • P p44

        Dear all,

        after latest update to Wordpress Developer, instance is broken and I have

        PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /app/data/public/wp-includes/pomo/mo.php on line 328

        Of course, I tried to disable all plugins, delete all themes, increase memory, but nothing happens...

        I also tried to restore old backups, but nothing to do... Always same problem.

        I suppose that is related to latest Cloudron Wordpres package update... To validate this hypothesis, how I can downgrade from org.wordpress.unmanaged.cloudronapp@3.0.4 to org.wordpress.unmanaged.cloudronapp@3.0.3?

        Edit: I restored a backup on org.wordpress.unmanaged.cloudronapp@3.0.3, but nothing happens...
        Edit: I restored even an old backup, 5 days ago, but problem is still the same.

        Can you help me?

        d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #2

        @p44 the version is likely not the issue if your backup also has it on the older version. The PHP suggests memory is too low for its usage. You said you increased memory but how specifically did you do that? If you only increased memory in the app overall then that isn’t sufficient as PHP has its own memory management settings as well that you’ll need to tweak on top of it using the php.ini file.

        I apologize as I’m on my phone and can’t seem to copy the text from the file so here’s a screenshot at least of my configuration for PHP, and then I’ve got the app memory size set to 2 GB overall.

        3e383e45-c911-4d46-a7d7-06bebc38315f-image.png

        --
        Dustin Dauncey
        www.d19.ca

        girishG 1 Reply Last reply
        2
        • d19dotcaD d19dotca

          @p44 the version is likely not the issue if your backup also has it on the older version. The PHP suggests memory is too low for its usage. You said you increased memory but how specifically did you do that? If you only increased memory in the app overall then that isn’t sufficient as PHP has its own memory management settings as well that you’ll need to tweak on top of it using the php.ini file.

          I apologize as I’m on my phone and can’t seem to copy the text from the file so here’s a screenshot at least of my configuration for PHP, and then I’ve got the app memory size set to 2 GB overall.

          3e383e45-c911-4d46-a7d7-06bebc38315f-image.png

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

          @p44 To add to @d19dotca , the changes have to to be in /app/data/php.ini specifically.

          P 1 Reply Last reply
          1
          • girishG girish

            @p44 To add to @d19dotca , the changes have to to be in /app/data/php.ini specifically.

            P Offline
            P Offline
            p44
            translator
            wrote on last edited by
            #4

            @girish @d19dotca Thank's a lot for your patience.

            I added this:

            default_socket_timeout = 300
            max_execution_time = 300
            max_input_time = 60
            max_input_vars = 3000
            memory_limit = 512M
            post_max_size = 128M
            upload_max_filesize = 128M
            

            to /app/data/php.ini

            And system went up again, but is still unstable, eg. sometimes connecting to some pages, system go in maintenance mode (out of memory).

            Never had this kind of problem before.

            P 1 Reply Last reply
            0
            • P p44

              @girish @d19dotca Thank's a lot for your patience.

              I added this:

              default_socket_timeout = 300
              max_execution_time = 300
              max_input_time = 60
              max_input_vars = 3000
              memory_limit = 512M
              post_max_size = 128M
              upload_max_filesize = 128M
              

              to /app/data/php.ini

              And system went up again, but is still unstable, eg. sometimes connecting to some pages, system go in maintenance mode (out of memory).

              Never had this kind of problem before.

              P Offline
              P Offline
              p44
              translator
              wrote on last edited by
              #5

              @girish with latest Wordpress Update (3.0.4) which other processes they are implemented?

              girishG 1 Reply Last reply
              0
              • P p44

                @girish with latest Wordpress Update (3.0.4) which other processes they are implemented?

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

                @p44 no new process has been added. WordPress package is just a simple modphp app. Just to double check, have you checked how much memory server has remaining ? free -m on the server to get this information.

                P 1 Reply Last reply
                1
                • girishG girish

                  @p44 no new process has been added. WordPress package is just a simple modphp app. Just to double check, have you checked how much memory server has remaining ? free -m on the server to get this information.

                  P Offline
                  P Offline
                  p44
                  translator
                  wrote on last edited by p44
                  #7

                  @girish I increased memory_limit = 1024M but problem is still the same, when connecting to some pages, system go out of memory.

                  At the moment, I moved that instance to Wp-Engine and is correctly working.

                  Of course, due to lacking of solutions when this (rare) problems happens, this situation will lead to reconsider the presence of critical websites on Cloudron, not having the necessary technical knowledge to solve this kind of problem, and not being able to receive technical support from Cloudron help desk on this type of problem. But these aspects maybe can be discussed in a different thread.

                  girishG 1 Reply Last reply
                  0
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #8

                    It would be good to get down to the issue. Maybe we should start over with the memory settings. The initial error, as I understand this is, that php simply can't allocate enough memory. This can either be due the set memory (in all those various locations, so maybe set all those explicitly to the same value for a start.) Or this can happen, if the system itself as a whole runs out of memory, in this case the memory limits are not even hit and increasing them will not help. For this you should see errors in the system logs (journalctl --system) via SSH, while the error happens.

                    1 Reply Last reply
                    3
                    • P p44

                      @girish I increased memory_limit = 1024M but problem is still the same, when connecting to some pages, system go out of memory.

                      At the moment, I moved that instance to Wp-Engine and is correctly working.

                      Of course, due to lacking of solutions when this (rare) problems happens, this situation will lead to reconsider the presence of critical websites on Cloudron, not having the necessary technical knowledge to solve this kind of problem, and not being able to receive technical support from Cloudron help desk on this type of problem. But these aspects maybe can be discussed in a different thread.

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

                      @p44 If you can setup a test installation of Cloudron and give us access (keep your existing wp-engine running), then we can debug this further. My understanding is you are saying that just a simple WP install doesn't work ? (since you disabled all plugins and tried as well?)

                      1 Reply Last reply
                      1
                      • P p44

                        Dear all,

                        after latest update to Wordpress Developer, instance is broken and I have

                        PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /app/data/public/wp-includes/pomo/mo.php on line 328

                        Of course, I tried to disable all plugins, delete all themes, increase memory, but nothing happens...

                        I also tried to restore old backups, but nothing to do... Always same problem.

                        I suppose that is related to latest Cloudron Wordpres package update... To validate this hypothesis, how I can downgrade from org.wordpress.unmanaged.cloudronapp@3.0.4 to org.wordpress.unmanaged.cloudronapp@3.0.3?

                        Edit: I restored a backup on org.wordpress.unmanaged.cloudronapp@3.0.3, but nothing happens...
                        Edit: I restored even an old backup, 5 days ago, but problem is still the same.

                        Can you help me?

                        M Offline
                        M Offline
                        msbt
                        App Dev
                        wrote on last edited by
                        #10

                        @p44 did you also try to add define('WP_MEMORY_LIMIT', '512M'); to wp-config.php?

                        https://stackoverflow.com/questions/46562269/wordpress-shows-fatal-error-after-moving-to-a-different-server

                        1 Reply Last reply
                        1
                        • P Offline
                          P Offline
                          p44
                          translator
                          wrote on last edited by
                          #11

                          @nebulon @girish @msbt Many thank's for all your support.

                          I'm try to understand what is the source cause, the instance was working more then one year and need more accurate analisys.

                          I can immediately rule out possible causes relating to the functioning of Cloudron.

                          Thank's again for patience

                          jordanurbsJ 1 Reply Last reply
                          0
                          • P p44

                            @nebulon @girish @msbt Many thank's for all your support.

                            I'm try to understand what is the source cause, the instance was working more then one year and need more accurate analisys.

                            I can immediately rule out possible causes relating to the functioning of Cloudron.

                            Thank's again for patience

                            jordanurbsJ Offline
                            jordanurbsJ Offline
                            jordanurbs
                            wrote on last edited by
                            #12

                            Having the same issue with a previously stable WordPress developer install. Have tried all the same solutions, no luck.

                            girishG 1 Reply Last reply
                            0
                            • jordanurbsJ jordanurbs

                              Having the same issue with a previously stable WordPress developer install. Have tried all the same solutions, no luck.

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

                              @jordanurbs If you still have the app instance, can you contact us at support@cloudron.io , so we can debug this further?

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

                                This turned out to be a theme issue. The upstream theme author issued a fix and things are working now.

                                P d19dotcaD 2 Replies Last reply
                                4
                                • girishG girish

                                  This turned out to be a theme issue. The upstream theme author issued a fix and things are working now.

                                  P Offline
                                  P Offline
                                  p44
                                  translator
                                  wrote on last edited by
                                  #15

                                  @girish Thank's Girish

                                  1 Reply Last reply
                                  1
                                  • girishG girish

                                    This turned out to be a theme issue. The upstream theme author issued a fix and things are working now.

                                    d19dotcaD Offline
                                    d19dotcaD Offline
                                    d19dotca
                                    wrote on last edited by
                                    #16

                                    @girish said in PHP Fatal error:

                                    This turned out to be a theme issue. The upstream theme author issued a fix and things are working now.

                                    Merely out of curiosity... what was the impacted theme?

                                    --
                                    Dustin Dauncey
                                    www.d19.ca

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

                                      @jordanurbs what was the theme?

                                      1 Reply Last reply
                                      0
                                      • humptydumptyH Offline
                                        humptydumptyH Offline
                                        humptydumpty
                                        wrote on last edited by
                                        #18

                                        I had a similar issue with my WP sites where the page would look all weird (CSS got all f'ed up). I thought it was theme related but narrowed it down to the CDN integration (Bunny). The page loaded fine once I disabled the CDN option in the caching plugins (I use different cache plugins on each of my sites). I did purge the cache in Bunny's dashboard, but that did not fix it. I didn't change anything with the sites before this happened, so it's got to be a broken update somewhere. The two problematic themes are Woodmart and Astra. My third site is using a different theme from Themeforest, but I can't remember its name right now (it's a weird one).

                                        1 Reply Last reply
                                        1
                                        • d19dotcaD d19dotca

                                          @girish said in PHP Fatal error:

                                          This turned out to be a theme issue. The upstream theme author issued a fix and things are working now.

                                          Merely out of curiosity... what was the impacted theme?

                                          jordanurbsJ Offline
                                          jordanurbsJ Offline
                                          jordanurbs
                                          wrote on last edited by
                                          #19

                                          @d19dotca @girish

                                          X theme, may also be called Pro

                                          1 Reply Last reply
                                          0
                                          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