Archived topic
Hey guys, having an error with PHP on my blogs posts,
3 replies · Started by CPANathan on February 18, 2023
I read someone else had a similar issue so the fix that he was provided is posted here: https://generatepress.com/forums/topic/strange-php-error-in-blog-post/
What's happening is there's an element that's erroring and leaving us with an error code posted three times,
"/var/www/html/wp-content/plugins/gp-premium/elements/class-block-elements.php on line 1306"
I have drafted the element "Post Navigation" on the Inbound theme and the error is gone, so this issue is there.
Hi there,
edit the Post Navigation Element, delete all the blocks from within the element.
Then from the 3 dot menu, change to Code Editor.
And then paste in the code found here:
Then switch back to visual editor.
And publish the element.
Let me know.
Appreciate that, element actually performs and displays better than I thought it would; I wonder if a quick run through of that same element on more site template options would save you guys some time as I'm the second or third to question this?
Thanks David!
We have been fixing them as we go along :) we just missed a couple.
But we also are making changes to the GB code so this kind of error doesn't occur in the first place :)
Glad to be of help.