Tagged: x
-
AuthorPosts
-
March 31, 2016 at 9:01 am #860858
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.
March 31, 2016 at 12:53 pm #861159Hello 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
March 31, 2016 at 6:58 pm #861678Ive got this too.
April 1, 2016 at 2:51 am #862185Hi 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
April 1, 2016 at 12:11 pm #862814Thanks, 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
April 1, 2016 at 2:37 pm #862997I have the same problem. I replaced the code you suggested and still have the same error.
April 1, 2016 at 4:37 pm #863128This reply has been marked as private.April 2, 2016 at 12:38 am #863490Hey @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 PasswordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
April 2, 2016 at 7:52 am #863745Brilliant, that code solved the issue.
Thanks for your time.
Regards, Andy
April 2, 2016 at 10:45 pm #864277Hey @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.
April 6, 2016 at 12:48 pm #869751Great fix, although I had to search for the code since it was 1000 line further down. Thanks!
April 6, 2016 at 2:27 pm #869936Will 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!
April 6, 2016 at 6:11 pm #870227Hi 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.
April 9, 2016 at 7:38 am #874067Well 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
April 9, 2016 at 9:07 pm #874686Hey @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.
-
AuthorPosts