• Resolved thesingingva

    (@thesingingva)


    I’ve just updated to the most recent version of WordPress (5.3) and there seems to be an issue with the WP Paypal plugin. I am getting the following code at the top of my Dashboard:

    Warning: Invalid argument supplied for foreach() in /var/sites/o/onefootinthedoor.co.uk/public_html/wp-includes/class-wp-post-type.php on line 526

    I also get the following code at the top of the front end of the website (both when logged in and when logged out of the dashboard):

    Warning: Invalid argument supplied for foreach() in /var/sites/o/onefootinthedoor.co.uk/public_html/wp-includes/class-wp-post-type.php on line 526

    And when I log out, I get:
    Warning: Invalid argument supplied for foreach() in /var/sites/o/onefootinthedoor.co.uk/public_html/wp-includes/class-wp-post-type.php on line 526

    I had to remove the plugin files via my host in order to log back in.

    I updated Yoast at the same time as WordPress, so tried activating WP Paypal without Yoast and the problem persisted. I’ve also switched the theme to Twenty Twenty, same problem. I’ve deactivated and reactivated all other plugins, too, so it seems that the issue is definitely with WP Paypal and WordPress 5.3.

    I’m using the Sydney theme if that’s of any help.

    Hopefully there’ll be a solution.

    Thanks.

    • This topic was modified 5 years ago by thesingingva.
    • This topic was modified 5 years ago by Jan Dembowski. Reason: Fixed formatting

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • damienbgs

    (@damienbgs)

    In waiting, I replaced:

    define('WP_DEBUG', false);

    by the following code:

    ini_set('display_errors','Off');
    ini_set('error_reporting', E_ALL );
    define('WP_DEBUG', false);
    define('WP_DEBUG_DISPLAY', false);

    Seems to work for me, hope it helps! ??

    Thread Starter thesingingva

    (@thesingingva)

    Thank you, @fajitameatpete, it seemed to work okay for the front end, but prevented me then from editing any of my pages, unfortunately.

    Moderator cubecolour

    (@numeeja)

    Changing line 35 of wp-paypal-order.php

    from

    'supports' => 'editor'

    to

    'supports' => array( 'editor' )

    fixed the same issue for me.

    Plugin Author Noor Alam

    (@naa986)

    @thesingingva, I have just released an update to fix this issue.

    Thread Starter thesingingva

    (@thesingingva)

    @naa986 great, thank you. That looks to be working now.

    dogee

    (@dogee)

    THANKS!

    sundog15

    (@sundog15)

    @naa986 which update is that? I can’t seem to find a prompt for an update and the line of code still appears on our website. Thank you for your help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin issue with latest WP update’ is closed to new replies.