Notifications
Clear all

Critical crash after last WPForo update while using Crossposting

2 Posts
2 Users
0 Likes
526 Views
Posts: 1
Customer
Topic starter
(@pawel-ziatek)
Member
Joined: 10 months ago

Just like in topic - newest version of Wordpress and newest version of WPForo started causing critical error. Details below. Sorry for Polish lines, but I think you should understand what is going on there without any problem 😉
Error is always present when using 2.2.0 + Crossposting, before update to 2.2.0 it worked fine.

Do rozwiązania problemu, mogą być potrzebne poniższe dane:
WordPress w wersji 6.3
Aktualny motyw: Gillion (wersja 4.7)
Aktualna wtyczka: wpForo (wersja 2.2.0)
Wersja PHP: 8.1.20



Szczegóły błędu
===================
Błąd typu E_ERROR został spowodowany w linii 1672 pliku /autoinstalator/wordpress/wp-content/plugins/wpforo/classes/Topics.php. Komunikat błędu: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /autoinstalator/wordpress/wp-content/plugins/wpforo/classes/Topics.php:1672
Stack trace:
#0 /autoinstalator/wordpress/wp-content/plugins/wpforo/classes/Topics.php(1672): strpos()
#1 /autoinstalator/wordpress/wp-content/plugins/wpforo/classes/Topics.php(128): wpforo\classes\Topics->sanitize_tags()
#2 /autoinstalator/wordpress/wp-content/plugins/wpforo-cross-posting/wpForoCrossPosting.php(458): wpforo\classes\Topics->add()
#3 /autoinstalator/wordpress/wp-content/plugins/wpforo-cross-posting/wpForoCrossPosting.php(329): wpForoCrossPosting->addTopic()
#4 /autoinstalator/wordpress/wp-content/plugins/wpforo-cross-posting/wpForoCrossPosting.php(276): wpForoCrossPosting->_savePost()
#5 /autoinstalator/wordpress/wp-includes/class-wp-hook.php(312): wpForoCrossPosting->savePost()
#6 /autoinstalator/wordpress/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 /autoinstalator/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action()
#8 /autoinstalator/wordpress/wp-includes/post.php(4762): do_action()
#9 /autoinstalator/wordpress/wp-includes/post.php(4853): wp_insert_post()
#10 /autoinstalator/wordpress/wp-admin/includes/post.php(445): wp_update_post()
#11 /autoinstalator/wordpress/wp-admin/post.php(227): edit_post()
#12 {main}
  thrown
1 Reply
Posts: 4173
 Tom
Admin
(@tomson)
Famed Member
Joined: 9 years ago

Hi @pawel-ziatek,

This issue has been fixed with wpForo 2.2.1 version. Please update the wpForo plugin (not the cross-posting addon)

Reply
Share:
Scroll to top