- This topic has 3 replies, 3 voices, and was last updated 1 year, 7 months ago by David.
November 5, 2020 at 11:46 am #1519606Michelle
I think I messed up something in my Element Hooks. Three technicians from Kinsta have pointed this out. Here’s the latest comment from their tech support: “I just spotted something while reading one of your posts –
2020/11/05 18:51:38 [error] 4108#4108: *355 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /www/reachingmyworldcom_418/public/wp-content/plugins/gp-premium/elements/class-hooks.php(196) : eval()’d code on line 1” while reading response header from upstream, client: 22.214.171.124, server: http://www.reachingmyworld.com, request: “GET /when-god-is-silent/ HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php7.4-fpm-reachingmyworldcom.sock:”, host: “www.reachingmyworld.com”, referrer: “https://www.reachingmyworld.com/journal/”
There’s a PHP fatal memory error/issue.
The error –
That’s over 512MB, which is a lot of PHP memory.
It seems to be from the plugin –
/www/reachingmyworldcom_418/public/wp-content/plugins/gp-premium/elements/class-hooks.phpNovember 5, 2020 at 12:20 pm #1519650TomLead DeveloperLead Developer
That means you have some code in one of your Hook Elements that is using up too much memory.
The best thing to do is to “Draft” your Hook Elements one by one until the issue is resolved. That will show you which Hook Element has the issue.
Let us know 🙂November 5, 2020 at 12:36 pm #1519675Michelle
I deleted one of the hooks that was for moving the comment box above the list of comments. All I have left is the following hook for an author box:<?php echo get_avatar( get_the_author_meta( ‘ID’ ), 250 ); ?><h5 class=”author-title” itemprop=”author” itemscope itemtype=”https://schema.org/Person”>
<span itemprop=”name”><?php printf( get_the_author_meta( ‘display_name’) );?></span>
</h5><p class=”author-description”><?php echo wp_kses( get_the_author_meta( ‘description’ ), null ); ?></p>November 6, 2020 at 4:00 am #1520208
- You must be logged in to reply to this topic.