PHP version 7.2 and above
-
My site is using this plugin;
when plugin gets links of the post in a category; mostly they are more than 300 links.
so when i try to set my server’s php version 7.4 site crashes
if i set back to 7.1 site works again.
there is a problem..
i need to fix.
thank you
-
Hello, the plugin is currently tested up to PHP 7.3. We will test PHP 7.4 soon.
With 7.3 site is crashing in one of my pages which contains over 500 links
this is the crash report that i see in the mentioned page instead of proper content;A critical error has occurred on your website.
Learn more about debugging in WordPress.
“Web sitenizde kritik bir hata oluştu.
WordPress’te hata ayıklama hakkında daha fazla bilgi edinin.”when i get back to 7.1 site works, page content is being displayed properly.
Please enable WordPress debugging and let me know what is logged to
wp-content/debug.logwhen your site crashes.Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 81920 bytes) in /*****/wp-includes/meta.php on line 960
As I expected, this is not caused by our plugin. See the link below for a solution to your problem. You should raise the amount of memory php can use.
https://ww.wp.xz.cn/support/topic/meta-php-and-problems-with-memory/
Thank you so much for your help.
I will try the solutions that you’ve sent
Best regardsI’ve asked my host to make the changes for raising the amount of memory php can use.
They said;The maximum value for memory_limit is 128 MB, the limit has been updated as maximum.
so after this
nothing has changed.
i don’t know the back of the backend 🙂
is this amount (128mb memory) sufficient for most of other websites?
is this plugin really need to use so much (really don’t know is it too much or not) memory
in terms of memory that php needs; is it allocating that space from the RAM memory of the host device?
host says it is 128mb is max;
is it max for php? or their host service?
neutrally, or normally what is the up limit of max memory?
too many questions
thank you so muchby the way i asked them to rise mem up to 200-256 mb they said;
The previous value seemed to be 50 MB. Based on this, an update to the highest value of 128 MB has been provided. Since this value is the highest value, you will need to choose VPS services in case it is insufficient.
(unlimited trafic, 1cpu, 2gb ram my host package)
-
This reply was modified 5 years, 10 months ago by
archivist.tr.
-
This reply was modified 5 years, 10 months ago by
archivist.tr.
-
This reply was modified 5 years, 10 months ago by
archivist.tr.
is this amount (128mb memory) sufficient for most of other websites?
This is enough for most WordPress sites.
is this plugin really need to use so much (really don’t know is it too much or not) memory
The LCP plugin itself uses very little memory. The code is fairly light. However, this plugin is an interface to WP_Query – a built in WordPress mechanic to get desired posts. And it can eat up a lot of memory if you use it to fetch a lot of posts with plenty of content. So the amount of memory used while querying/displaying posts depends on what you are actually doing with the plugin. The more posts you display, the more memory is used, but there are also plenty of other factors that could increase memory usage: filters used by the theme or other plugins, posts’ size and so on. In your case, the file that’s trying to allocate more memory is
meta.phpwhich deals with metadata, like custom fields, so maybe your posts have a lot of data stored in custom fields.in terms of memory that php needs; is it allocating that space from the RAM memory of the host device?
Yes, of course.
host says it is 128mb is max;
is it max for php? or their host service?memory_limitis a per script limit, meaning it doesn’t regulate how much RAM PHP can use in total but it does regulate how much a single script (like your WordPress site) can use.neutrally, or normally what is the up limit of max memory?
There is no upper limit, server admin could allow PHP to use all the available RAM, it would be stupid though 😉
So now that you know your PHP
memory_limitis at 128 MB, go towp-config.phpand look fordefine('WP_MEMORY_LIMIT', '128M');. If it’s not 128M, update it to this value and see if your problem disappears. If it doesn’t, it simply means you should either edit your site to use less memory (less displayed posts) or find a more robust host.I am new at this my site is saying I need to update too PHP version 7.2 or higher. Can I get some assistants on how to do this on my own or can someone help me.
-
This reply was modified 5 years, 6 months ago by
wors.
-
This reply was modified 5 years, 10 months ago by
The topic ‘PHP version 7.2 and above’ is closed to new replies.