Notifications
Clear all

Error 500 accessing page when there is a private comment which current user does not have permission to view

2 Posts
2 Users
0 Likes
646 Views
Posts: 2
Customer
Topic starter
(@johan-classon)
Member
Joined: 2 years ago

Hi! I started testing around a bit using the private comment feature and came upon an interesting issue which I can't figure out. 

The scenario is like this:

User A leaves a private comment on a product created by User B.

User A and User B can both see the comment without issue.

User C, who does not have access to view the comment, enters the page of the product containing the above comment.

Result: Error 500 with the below error in the server log:

Backend fatal error: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 53248 bytes) in /home4/mysecretpath/public_html/websitename/wp-includes/functions.php on line 5219\n, referer: https://www.mysecrethost.com/shop/

On L5219 in functions.php mentioned above is this: 

/**
* Flush all output buffers for PHP 5.2.
*
* Make sure all output buffers are flushed before our singletons are destroyed.
*
* @since 2.2.0
*/
function wp_ob_end_flush_all() {
   $levels = ob_get_level();
   for ( $i = 0; $i < $levels; $i++ ) {
      ob_end_flush(); // here is line 5219
   }
}

It looks like this could be some follow-up error, but it's what is shown in the error log in the cpanel.

Note that the issue goes away if the comment is deleted or made public.

I have tried resetting the settings both for the private comment tab and for the whole plugin, but still run into the same issue.

Any ideas what could cause this?

Thanks a lot in advance!

// Johan

1 Reply
Astghik
Posts: 5906
Admin
(@astgh)
Illustrious Member
Joined: 6 years ago

Hi Johan Classon,

We don't find such an issue on our test websites. Could you please send the admin login details to info[at]gvectors.com email address?

I'll ask the developers to check the issue for you. 

Reply
Share:
Scroll to top