• Hey guys. I recently had this error when trying to switch back to my theme. Fatal error: Cannot redeclare _verify_activate_widget() (previously declared in /home/zbeworl0/public_html/Newsblog/wp-content/themes/arras/functions.php:188) in /home/zbeworl0/public_html/Newsblog/wp-content/themes/arras/library/admin/templates/functions.php on line 243

    I need this fixed ASAP and have no idea where to start. Can someone lend a hand?

    Thanks!

    Zach

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter zacho56

    (@zacho56)

    ill try the plugins but if i deactivate all of them and reactivate them will their settings still be intact?

    Thread Starter zacho56

    (@zacho56)

    i tried the plugns. nope its not them. this is insane. I looked at the functions.php’s and on the installed theme it was way shorter than the downloaded theme’s functions.php file. any ideas?

    After thinking about it over night, I believe that just deactivating the plugins will not find the problem because the bad code is already installed. You would need to disable all plugins then reinstall the theme while they are disabled.

    If you don’t have too many plugins, list them here and I may be able to spot ones that might cause trouble.

    Thread Starter zacho56

    (@zacho56)

    Hey bud. First, words cant begin to describe how much I appreciate you taking time to help me with this.

    Now..

    I deactivated ALL plugins and reinstalled the theme.. nope, not working. I even tried different versions of the theme and same thing. Is there any way to keep my site intact but do a fresh install of wordpress and still have everything there? Im so desperate at this point. Thanks very much ??

    Zach

    If it is not the plugins, then it is more likely that you have been hacked. There is likely some malware code somewhere that is adding the extra code to functions.php.

    You can reinstall WP without losing anything by going to Dashboard->Updates and clicking ‘Reinstall Now’, but I doubt that it will clear the problem.

    Can you put the infected functions.php in a pastebin and post a link to it here so I can see the code?

    Thread Starter zacho56

    (@zacho56)

    Hey. Here is the code for the arras theme functions.php

    https://pastebin.com/ASeUsE2r

    thanks!

    Thread Starter zacho56

    (@zacho56)

    Any luck friend? I dont know what to do :'( :'( this will ruin my business

    The code in the file you posted didn’t LOOK like malicious code, so I don’t know what to make of it.

    Look to see if that code is in any other functions.php file. Go to Admin->Appearance->Editor and select a different theme from the dropdown on the right. Edit its functions.php and see if you find any of the bad code there.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Functions.php error’ is closed to new replies.