This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Plugin produces errors in /metaboxes/default-content.php in line 111 to 114

Home Forums Product Support Forums Related Posts Pro for WordPress Support Plugin produces errors in /metaboxes/default-content.php in line 111 to 114

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17314
    microTOOLmicroTOOL
    Participant

    Hi,

    this time, I have another problem. Maybe it has something to do with the PHP-Version, because I switched to 7.1 today.

    Now, when I edit a page or post on our website and click on “Save” after that, the website shows the following errors:
    [code]Warning: Illegal string offset ‘customcontent’ in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php on line 111

    Warning: Cannot assign an empty string to a string offset in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php on line 111

    Warning: Illegal string offset ‘hide’ in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php on line 111

    Warning: Illegal string offset ‘override’ in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php on line 111

    Warning: Illegal string offset ‘override_source’ in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php on line 111

    Warning: A non-numeric value encountered in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php on line 114

    Fatal error: Uncaught Error: Unsupported operand types in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php:114 Stack trace: #0 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/class-wp-hook.php(288): RPPDefaultContent->save(61348) #1 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/post.php(3581): do_action(‘save_post’, 61348, Object(WP_Post), false) #4 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/revision.php(300): wp_insert_post(Array) #5 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/revision.php(186): _wp_put_post_revision(Array) #6 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/class-wp-hook.php(288): wp_save_post_revision(58151) #7 /homepages/2/d585514017/htdocs/mt-live/web/wp-includes/class-wp-h in /homepages/2/d585514017/htdocs/mt-live/web/wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php on line 114
    [/code]

    The plugin is deactivated at the moment. And this only happens in the backend.

    Do you have any ideas here?

    Best,
    Patrick

    • This topic was modified 8 years, 2 months ago by microTOOLmicroTOOL.
    #17318
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Patrick,

    I have two possible variation that may solve the issues. You will have to replace the wp-content/plugins/related-posts-pro/backend/metaboxes/default-content.php file content.

    1. Try this first.
    2. If does not work, then this one.

    Hopefully one of these should do the trick.

    #17321
    microTOOLmicroTOOL
    Participant

    Hi Ernest,

    thanks for the quick help. I will try that tomorrow, early in the morning (German time), since I am already off work for today.

    I’ll let you know about the solutions.

    best regards,
    Patrick

    • This reply was modified 8 years, 2 months ago by microTOOLmicroTOOL.
    #17333
    microTOOLmicroTOOL
    Participant

    Hi again, Ernest,

    I uploaded your first solution to our website today and it seems that the error is gone. We will have to try it some more but I guess that your changes fixed the error.

    Thanks a lot,
    Patrick

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Related Posts Pro for WordPress Support’ is closed to new topics and replies.