• 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) . "' )";`

    • This topic was modified 2 years, 5 months ago by darkallman.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter darkallman

    (@darkallman)

    Update fixed most issues. I still see this error after the update:
    PHP Warning: Array to string conversion in /wp-content/plugins/mobile-assistant-connector/sa.php on line 1473

    Plugin Author eMagicOne

    (@emagicone)

    Hi there,

    thanks for your feedback.

    Have you also updated the application itself to 3.1.0?

    Let us know if the issue occurs on updated connector and application.

    Thread Starter darkallman

    (@darkallman)

    Im still on version 2 I see, I will try the new version…

    Thread Starter darkallman

    (@darkallman)

    On version 3.1.0 I still get the error when I open an order in the app:
    PHP Warning: Array to string conversion in /wp-content/plugins/mobile-assistant-connector/sanew.php on line 3932

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @emagicone I have archived your replies and flagged your account for moderation.

    While I know you have the best of intentions, it’s forum policy that you not ask users for admin or server access. Users on the forums aren’t your customers, they’re your open source collaborators, and requesting that kind of access can put you and them at high risk.

    If they are paying customers (such as people who bought a premium service/product from you) then by all means, direct them to your official customer support system. But in all other cases, you need to help them here on the forums.

    Thankfully are other ways to get information you need:

    You get the idea.

    We know volunteer support is not easy, and this guideline can feel needlessly restrictive. It’s actually there to protect you as much as end users. Should their site be hacked or have any issues after you accessed it, you could be held legally liable for damages. In addition, it’s difficult for end users to know the difference between helpful developers and people with malicious intentions. Because of that, we rely on plugin developers and long-standing volunteers (like you) to help us and uphold this particular guideline.

    When you help users here and in public, you also help the next person with the same problem. They’ll be able to read the debugging and solution and educate themselves. That’s how we get the next generation of developers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP8 FATAL Error’ is closed to new replies.