Bug: Double define(‘B2S_SAVE_META_BOX_AUTO_SHARE’)
-
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 samedefine
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)
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.