• Resolved TJ McDev

    (@tj604)


    I have run into an error on 2 pages in specific within the website. Looking for any help with this matter would be greatly appreciated. The message error reads – Warning: Invalid argument supplied for foreach()

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

    (@tj604)

    The code being worked on is

    foreach($storeObject[‘cf’][3][‘value’] as $staffItem) {
    if(!in_array($staffItem[‘Type’],array(‘OPTO’,’OPTI’)) && $staffItem[‘IsManager’] == 1) {
    array_push($other,$staffItem);
    continue;
    }

    Any help would be great ??

    Thanks!!

    Have you tried:
    -deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    -switching to the default theme to rule out any theme-specific problems.

    Thread Starter TJ McDev

    (@tj604)

    Hello kmessinger

    Thanks for the quick response, i appreciate it.

    I did try to deactivate plug-ins however i am still getting the message. you can see the message here https://iris.ca/location/beloeil_036page/

    You might want to try to reinstall your theme.

    Since that is a commercial theme or plugin, we ask that you please go to their official support channel, so you can get support from the people who know it best.

    https://themeforest.net/item/iris-clean-responsive-ajax-wordpress/2404720/support

    Forum volunteers are also not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

    Thread Starter TJ McDev

    (@tj604)

    Ok I will try that,
    thank you for your help. I appreciate the support!

    I will check out the themes support channel

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Warning: Invalid argument supplied for foreach() – How do I fix this???’ is closed to new replies.