Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #858271

    vegaswiccan
    Participant

    I am receiving the following error when I log into my WP Dashboard:

    Warning: Invalid argument supplied for foreach() in …….. plugins/convertplug/admin/bsf-core/auto-update/admin-functions.php on line 993

    I will provide login details in a separate post, as I see that has been requested from others experiencing this issue. Thanks.

    #858277

    vegaswiccan
    Participant
    This reply has been marked as private.
    #858342

    Christopher
    Moderator

    Hi there,

    Please connect to FTP and make sure define('WP_DEBUG', false); is added in wp-config.php file.

    Hope it helps.

    #859830

    vegaswiccan
    Participant

    The debug line is in the config file, but the issue persists. I have also updated to the latest version of Cornerstone and the error persists.

    #860186

    Paul R
    Moderator

    Hi,

    Kindly update the code in wp-content/plugins/convertplug/admin/bsf-core/auto-update/admin-functions.php on approximately line no. 993 from

    
    if(!empty($bsf_product_themes)) {
    			foreach($bsf_product_themes as $key => $theme) {
    				$version = (isset($theme['version'])) ? $theme['version'] : '';
    				$remote = (isset($theme['remote'])) ? $theme['remote'] : '';
    				if(version_compare($remote, $version, '>')) {
    					array_push($temp_theme_update_ready, $theme);
    				}
    			}
    		}
    

    to this

    
    if(is_array($bsf_product_themes) && !empty($bsf_product_themes)) {
    			foreach($bsf_product_themes as $key => $theme) {
    				$version = (isset($theme['version'])) ? $theme['version'] : '';
    				$remote = (isset($theme['remote'])) ? $theme['remote'] : '';
    				if(version_compare($remote, $version, '>')) {
    					array_push($temp_theme_update_ready, $theme);
    				}
    			}
    		}
    

    If that doesn’t help please provide us your ftp login in private reply so we can check.

    Thanks

    #863547

    vegaswiccan
    Participant
    This reply has been marked as private.
    #863916

    Thai
    Moderator

    Hi There,

    I’ve just fixed this issue for you.

    This issue has also been added to our list and it should be fixed in next updated.

    Regards!

    #864335

    vegaswiccan
    Participant

    Thanks so much for your assistance!

    #864626

    Christopher
    Moderator

    You’re welcome.