• Resolved ilroby

    (@ilroby)


    Hello,
    I’ve just installed Visual Portfolio (Version 2.20.3) on WordPress 6.0.3 with PHP 7.4.32 and if I login in backend as “Subscriber” I got the following errors:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/visual-portfolio/classes/class-admin.php on line 300

    Warning: Invalid argument supplied for foreach() in /wp-admin/includes/plugin.php on line 1928

    Warning: Invalid argument supplied for foreach() in /wp-admin/includes/plugin.php on line 1928

    If I login as admin no problem at all.
    Front end works well as Admin and also as Subscriber

    Thanks
    Roby

    • This topic was modified 2 years, 4 months ago by ilroby.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter ilroby

    (@ilroby)

    UPDATE:
    If I switch to PHP 8.0.24 I still have issue with these errors:

    Warning: foreach() argument must be of type array|object, null given in /wp-content/plugins/visual-portfolio/classes/class-admin.php on line 300

    Warning: foreach() argument must be of type array|object, null given in /wp-admin/includes/plugin.php on line 1928

    Thread Starter ilroby

    (@ilroby)

    UPDATE:

    Error is present ONLY if I set “Add custom post type portfolio to showcase your works.” OFF

    Plugin Author Nikita

    (@nko)

    Hey.

    Thank you for reporting to me. I forwarded this to our developer, we will check it and fix in the next plugin update.

    Regards, nK.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: Invalid argument supplied for foreach ()’ is closed to new replies.