Cannot access wordpress appearance editor

by pho_pho   Last Updated May 16, 2018 10:08 AM

I altered some functions in the php file of my website (regrettably!) and now not only has my website been destroyed, but also the wordpress dashboard. I cannot access anything on there that allows me to edit the website, such as Appearance > Editor, or Pages > All Pages, NOTHING!

The error I get when I try and access the dashboard editor pages is below. I get the same error when I type the url of my website into my browser as well:

Fatal error: Cannot redeclare twentyseventeen_widget_tag_cloud_args()

Note that I cannot even access the php file that I altered becauase of the above error.

Any help is greatly appreciated

Answers 1

This is exactly why you shouldn't really use the WordPress Appearance -> Editor.

Your website is not 'destroyed' though. Simply login to your web hosting control panel and use the file manager to remove whatever code you entered (the call to the twentyseventeen_widget_tag_cloud_args() function, or use an FTP client to edit your files and remove the function call.

May 16, 2018 09:49 AM

Related Questions

PHP to Wordpress Conversion Help

Updated August 16, 2016 08:03 AM

create-guten-block in wordpress theme?

Updated January 09, 2019 20:08 PM

How To menu customization Expert theme?

Updated July 01, 2015 16:03 PM