PHP8 FATAL Error
-
When migrating to PHP8 I got following FATAL ERROR
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /httpdocs/wp-content/plugins/mobile-assistant-connector/sa.php:1127 Stack trace: #0 /httpdocs/wp-content/plugins/mobile-assistant-connector/sa.php(1127): implode()\ #1 /httpdocs/wp-content/plugins/mobile-assistant-connector/mobassistantconnector.php(718): MobileAssistantConnector->get_orders() #2 /httpdocs/wp-content/plugins/mobile-assistant-connector/mobassistantconnector.php(702): ma_connector->execute_connector() #3 /httpdocs/wp-includes/class-wp-hook.php(307): ma_connector->the_template() #4 /httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 /httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #6 /httpdocs/wp-include...
I could fix this by changing sa.php line 1127:
$query_where_parts[] = " posts.post_status NOT IN ( '" . implode($this->status_list_hide, "', '") . "' )";
changed to
$query_where_parts[] = " posts.post_status NOT IN ( '" . implode("', '", $this->status_list_hide) . "' )";
`The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP8 FATAL Error’ is closed to new replies.