Site logo

[Resolved] Hey guys, having an error with PHP on my blogs posts,

Home Forums Support [Resolved] Hey guys, having an error with PHP on my blogs posts,

Home Forums Support Hey guys, having an error with PHP on my blogs posts,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2538285
    CPANathan

    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.

    #2538559
    David
    Staff
    Customer Support

    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:

    https://pastebin.com/YCfxLt12

    Then switch back to visual editor.
    And publish the element.

    Let me know.

    #2539335
    CPANathan

    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!

    #2539656
    David
    Staff
    Customer Support

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.