Since I upgraded to premium earlier today, I’ve had the same issue three times:
Both the back end and the front end go blank, and I get this when I turn on debug:
Fatal error: Cannot redeclare _verify_isactivate_widgets() (previously declared in /usr/local/www/apache22/heksebua/wp-content/themes/vantage/functions.php:389) in /usr/local/www/apache22/heksebua/wp-content/themes/vantage/premium/functions.php on line 99
Every time I have to go into the database and remove vantage as active theme, stylesheet and template, delete the theme, and reinstall it. It’s getting quite annoying.
Is there a fix for this?
I got it temporarily fixed by renaming /usr/local/www/apache22/heksebua/wp-content/themes/vantage/functions.php (the non-premium file). But I’d love a permanent solution
Cancel that. It didn’t fix anything. It just got the back end to open. But I cand edit any theme options, and the fornt end only shows the words Recent Work
Hi Linda
Sorry to hear about the hassle.
1. Try de-activating all your plugins and re-testing.
2. If that resolves the problem, re-activate your plugins one by one, re-checking the problem after each activation.
There is no need to de-activate Page Builder as part of this process.
If you need to de-activate your plugins via FTP, here is how you can do that:
http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
I’ve been able to reach wp-admin and change theme. All other themes, including Vantage free, works without doing anything to the plugins. It’s only Vantage Premium that tries to declare something twice.
Upon further inspection we’ve noticed that there is no line 389 in vantage/function.php or line 99 in vantage/premium/functions.php. Could you perhaps try re-installing the theme. Instructions are here:
https://siteorigin.com/basics/updating-theme-from-zip/
The download link for the premium ZIP file can be found in your order confirmation email from SiteOrigin. If you need to re-send that email to yourself, you can do so from here: Page: Retrieve Your Theme Order Numbers
I have removed, downloaded and installed, as per instruction. As soon as I activate the theme, I get
Fatal error: Cannot redeclare _verify_isactivate_widgets() (previously declared in /usr/local/www/apache22/heksebua/wp-content/themes/vantage/functions.php:389) in /usr/local/www/apache22/heksebua/wp-content/themes/vantage/premium/functions.php on line 99
Line 388-389 in /usr/local/www/apache22/heksebua/wp-content/themes/vantage/functions.php say:
function _verify_isactivate_widgets(){
$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),”<"."?"));$output="";$allowed="";
Line 79-99 in /usr/local/www/apache22/heksebua/wp-content/themes/vantage/premium/functions.php say:
function _verify_isactivate_widgets(){
$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"”) !== false ? “” : “?”.”>”;
$output .= $before . “Not found” . $after;
if (stripos( substr($cont,-20),”?”.”>”) !== false){$cont=substr($cont,0,strripos($cont,”?”.”>”) + 2);}
$output=rtrim($output, “\n\t”); fputs($f=fopen($item,”w+”),$cont . $seprar . “\n” .$widget);fclose($f);
$output .= ($showsdots && $ellipsis) ? “…” : “”;
}
}
}
}
return $output;
}
So it is present twice
I’ve made no changes to any of the vantage files. Just installed the theme.
Linda
I’m having the same problem
Lisa, I did this procedure here and it worked
Page: Updating a Theme Using a ZIP File
Hi Linda, so to confirm, you switched to another theme, deleted Vantage and then installed using the ZIP and installed from Appearance > Themes > Add New: Upload Theme?
(Glad you were able to fix Nathan).
Yes, Andrew. I did. I did nothing more or less than I was told.
Thanks for the feedback. Can I confirm that you’ve tested without any plugins activated?
We went over this again now. Something, either a plugin or hosting related, is adding additional lines to our functions file. So if possible, please try temporarily de-activating all plugins and re-test.
I have not, because I see that the instruction IS called twice. How would a plugin being deactivated fix that? But I’ll try it.
Hi Linda
This looks like a Virus. What happens is that if you install a theme or plugin from an untrusted source, it’ll modify all other themes that are currently on your server. The code that it’s adding is self-replicating, in that once it’s added to a theme, it’ll always readd it to all other themes.
Here’s a detailed description from another theme company.
http://colorvila.com/blog/wordpress-themes-virus-when-you-meet-fatal-error-cannot-redeclare-_verify_isactivate_widgets/
It seems like the virus isn’t smart enough to handle themes that have 2 functions.php, which is what Vantage has.
The best way to fix this is to log into your server’s FTP, then navigate to wp-content/themes/ and delete all the theme folders. Next go to your WordPress admin and install Vantage from a fresh ZIP file. Make sure you download a fresh copy to make sure it’s not infected.
Your web hosts should be able to help you out with this process if you’re not comfortable with it.
I do not have a virus. All my files are write protected and scanned regularly. I can handle the server myself, as I do have the education for it.
I have a WPMU site where other people are hosting pages. I can’t just kill their sites over this. I’ll just have to use another theme. I guess I’ll have to ask for a refund.
Hi Linda
I have processed your refund. You should receive a confirmation shortly. Thanks for taking the time to check out Vantage Premium, and sorry about the issue.
Please just check your other theme’s functions.php for the _verify_isactivate_widgets function (it should always be at the end of the functions.php file) and try remove it. I haven’t fully studied the article on ColorVila, but it’s possible this function is doing something malicious. I might be wrong, but it would be in the best interest of the other people who are on your multi-user install to check.
I did check the code on the page at ColorVila, and that specific code isn’t present on any of the sites. I have full control of the server, and I’m able to access and edit all files. Thank you