23 May, 2020 at 8:48 pm #49342
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 you23 May, 2020 at 10:08 pm #49353
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 you23 May, 2020 at 10:27 pm #49354
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)24 May, 2020 at 12:16 am #49358
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 you24 May, 2020 at 12:18 am #49359
I have just 9 plugins installed and I am using DIVI – one of the most spread WordPress templates available on the market.24 May, 2020 at 2:01 am #49360
>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 ?24 May, 2020 at 10:48 am #49364
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?
Thanks24 May, 2020 at 2:36 pm #49372
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)
- You must be logged in to reply to this topic.