Allowed memory size exhauste

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #49342
    elkhaiat
    Participant

      Hi. I updated from V2 to V3 and have now a problem with the plugin.

      First of all I get the error: “Allowed memory size of 268435456 bytes exhausted” – I have set the memory size to 256 MB and tried 512 MB as well, but the same error (with another number) occurs.

      This website sold a lot and I think this could be the problem with the memory size.

      In my dashboard (WPPizza statistics) the error is also displayed.

      Furthermore it is not recommended to set the memory limit that height.

      What is the solution to that problem?

      Thank you

      #49353
      elkhaiat
      Participant

        If I set the memory size to 1024MB the error disappears, but there are still no orders displayed. In the dashboard statistics I see a total of 0 (that’s wrong) – I also checked the database – the orders are still there.

        And I found another error on every page:
        Notice: Undefined offset: 44 in /httpdocs/wp-content/plugins/wppizza/classes/class.wppizza.categories.php on line 240

        Thank you

        #49354
        Olly
        Admin & Mod

          sounds to me like your upgrade from v2 to v3 went wrong
          especially if you already have a lot of orders and perhaps lots of other plugins running or a theme the consumes lots of memory itself, you will need LOTS of memory during the upgrade as the upgrade has to go through every single order in the db and change values to make this work…

          >Furthermore it is not recommended to set the memory limit that height.
          that’s also an arbitrary comment by someone that has no foundation in anything as memory needs will always depend on a list of many things
          (though I am aware that the wppizza dashboard widget can be looked at to perhaps get the memory requirements down a bit when it updates every hour or so)

          #49358
          elkhaiat
          Participant

            Thank you for your answer. I did the upgrade exactly like you described it here: https://docs.wp-pizza.com/getting-started/?section=upgrade-v2-x-v3-x

            I have an update and can return to the old website, but what can I do to do the update correctly? I don’t think that 1024MB would do the trick…

            Thank you

            #49359
            elkhaiat
            Participant

              I have just 9 plugins installed and I am using DIVI – one of the most spread WordPress templates available on the market.

              #49360
              Olly
              Admin & Mod

                >And I found another error on every page:
                are you actually outputting your errors/notices on pages instead of just logging ?
                i.e do your debug settings look different to this ?

                https://docs.wp-pizza.com/troubleshooting/

                #49364
                elkhaiat
                Participant

                  No I had it like you said and turned it off after updating.

                  I just turned it on for a minute to see, if there is an error on the orders page, because nothing was loading.

                  So what I can I do to fix that problem with the not showing orders?

                  Thanks

                  #49372
                  Olly
                  Admin & Mod

                    As mentioned, this looks like it went wrong when you did the upgrade,
                    so i would suggest you do that again (with plenty of memory) and check your debug.log to see if there were any fatal errors

                    if that all goes to plan, you could afterwards make a backup of your wppizza_orders and wppizza_meta tables
                    and then perhaps delete all the orders in there that are 2 or more years old (are do you really need permanent access to orders from 2 years ago ?)

                    the memory exhausted error you are experiencing is most likely caused by the dashboard widget and when going to the reports page as both of those need to get information from every completed order to display their (total) values

                    as mentioned, there maybe a way to somewhat get this memory consumption down a bit – and i’ll look at that in the near future – but for the time being, if you have lots of orders , it will consume quite a bit of memory when generating the reports/dashboard info (though the dashboard info is cached up to a point)

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • The topic ‘Allowed memory size exhauste’ is closed to new replies.