• Resolved Ov3rfly

    (@ov3rfly)


    Getting these in debug.log

    [04-Aug-2023 10:32:06 UTC] PHP Warning:  Constant B2S_SAVE_META_BOX_AUTO_SHARE already defined in .../wp-content/plugins/blog2social/includes/Loader.php on line 775

    Investigation in Loader.php at line 775 shows that the very same define is also present in line 774, indented with many spaces/tabs, visible if you scroll all to the right in code editor.

    774: $autoShare = new B2S_AutoPost((int) $_POST['post_ID'], $defaultBlogPostData, $current_user_date, $myTimeSettings, $title, $content, $excerpt, $url, $image_url, $keywords, $b2sPostLang, $optionPostFormat, true, 0, $echo, $delay);                                            define('B2S_SAVE_META_BOX_AUTO_SHARE', (int) $_POST['post_ID']);
    775: define('B2S_SAVE_META_BOX_AUTO_SHARE', (int) $_POST['post_ID']);

    Suggested fix, remove it in line 774.

    Blog2Social 7.2.1, WordPress 6.2.2

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello,

    Thanks for reaching out.

    Please be so kind as to uninstall and reinstall Blog2Social. After that, your described behavior should be solved.

    Please let me know if it worked out or if you have further questions.

    Thread Starter Ov3rfly

    (@ov3rfly)

    Ok, so you have edited the file in Blog2Social 7.2.1 without bumping version and without any changelog entry. The additional spaces/tabs are still there in line 774 though.

    PS. Seems you have a strange understanding of how update mechanism works in WordPress plugin repository. Many security plugins will complain now due to changed file checksums.

    Plugin Support Blog2Social-Support

    (@blog2socialsupport)

    Hello,

    Thanks for your reply.

    Rest assured, we have just released version 7.2.2 of Blog2Social.

    Please be so kind as to update and let me know if that fixed your described behavior.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bug: Double define(‘B2S_SAVE_META_BOX_AUTO_SHARE’)’ is closed to new replies.