Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #860858

    cleatus3
    Participant

    After the recent update I am getting the ConvertPlug warning below at the top of all Dashboard pages:

    Warning: Invalid argument supplied for foreach() in /home/content/p3pnexwpnas14_data02/14/3094114/html/wp-content/plugins/convertplug/admin/bsf-core/auto-update/admin-functions.php on line 993

    Debug is turned off and I have tried some of the fixes listed by others having the same issue with no luck.

    Any help is greatly appreciated, thanks.

    #861159

    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #861678

    Andy F
    Participant

    Ive got this too.

    #862185

    Paul R
    Moderator

    Hi Guys,

    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

    #862814

    Andy F
    Participant

    Thanks, but unfortunately it didnt work. If I reply as private to this thread, will all the subscribers to this thread be able to see it? Or do I need to send it as private in a new thread? Thanks

    #862997

    mcjensen
    Participant

    I have the same problem. I replaced the code you suggested and still have the same error.

    #863128

    cleatus3
    Participant
    This reply has been marked as private.
    #863490

    Rue Nel
    Moderator

    Hey @cleatus3,

    Thanks for providing the credentials. I temporarily patched the code to remove the error message. I ended up changing the code from line 992:

    foreach($brainstrom_bundled_products as $bkey => $bp) {
    	foreach ($bps as $bkey => $bp) {
    		$plugin_abs_path = WP_PLUGIN_DIR.'/'.$bp->init;
    
    		if(!is_file($plugin_abs_path))
    			continue;
    
    		$temp = array();
    		if(!in_array($bp->id, $temp_bundled)) {
    			if(!isset($bp->remote))
    				break;
    			if(version_compare($bp->remote, $bp->version, '>')):
    				$temp = (array)$bp;
    			$temp['bundled'] = true;
    			array_push($update_ready, $temp);
    			endif;
    		}
    	}
    }

    With this:

    if ( is_array($brainstrom_bundled_products) || ! empty($brainstrom_bundled_products) ) {
    	foreach($brainstrom_bundled_products as $bkey => $bp) {
    		if ( is_array($bps) || ! empty($bps) ) {
    			foreach ($bps as $bkey => $bp) {
    				$plugin_abs_path = WP_PLUGIN_DIR.'/'.$bp->init;
    
    				if(!is_file($plugin_abs_path))
    					continue;
    
    				$temp = array();
    				if(!in_array($bp->id, $temp_bundled)) {
    					if(!isset($bp->remote))
    						break;
    					if(version_compare($bp->remote, $bp->version, '>')):
    						$temp = (array)$bp;
    					$temp['bundled'] = true;
    					array_push($update_ready, $temp);
    					endif;
    				}
    			}
    		}
    	}
    }

    This should resolve the issue. When there is a new plugin update, you should not have to worry too.

    @mcjensen and @AndyF:
    Please try out the code above. If nothing else works, would you mind providing us the ftp login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your credentials, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – FTP Hostname
    – FTP Username
    – FTP Password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #863745

    Andy F
    Participant

    Brilliant, that code solved the issue.

    Thanks for your time.

    Regards, Andy

    #864277

    Rue Nel
    Moderator

    Hey @AndyF,

    I’m glad it works out for you.Thanks for letting us know.
    If you need anything else we can help you with, don’t hesitate to open another thread.

    Best Regards.

    #869751

    luxmedesigner
    Participant

    Great fix, although I had to search for the code since it was 1000 line further down. Thanks!

    #869936

    LisaChristen2
    Participant

    Will a future upgrade fix this error or do I need to go in and fix it manually across all my sites?

    Also, is this the reason my modal keeps defaulting the button to say “undefined” instead of “SUBSCRIBE”. I keep entering the new text, saving it, exiting, and then I come back and its defaulted back to “undefined”.

    Thanks!

    #870227

    Jade
    Moderator

    Hi Lisa,

    We have already reported this issue to the developers and they should be able to release a fix for this. Kindly check on our changelog as we post the changes and fixes added in the release on there.

    Would you mind posting a new thread for your second question so that we could do some further checking? Kindly also provide us with the details such as the site URL, and the login details to the admin page. Please don’t forget to set the admin details as private response.

    Thank you.

    #874067

    WP-rockstar
    Participant

    Well the thing is that there is a new version of ConvertPlug which is v2.2.0, released on the 1st April and I still hasn’t got the notification to upgrade. I have even deleted the plugin and installed it back again. But the version you’re delivering it is still the old one 2.1.0 so when I install it I get the old one.

    Could you please upgrade it on your servers?

    Thanks

    #874686

    Rue Nel
    Moderator

    Hey @wp-rockstar,

    We will be releasing an update via automatic updates.
    It will be available soon when we rollout our next update release.

    Please bear with us. Thank you for your understanding.