Site logo

Archived topic

Fatal Memory Issue - Element Hook (some kind of mistake)

3 replies · Started by Michelle on November 5, 2020

Viewing posts 1–4 of 4

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: 174.118.220.229, 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 -
536870912 bytes

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.php

Hi there,

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 :)

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>

Hi there,

can you provide the user id and password for us to login to the backend of the site? ( In the private in the original topic i can only see the password )

This archived topic is closed to new replies.