• When I try to edit the file inc/functions.php (either in WordPress Editor, or upload mine via FTP, I cannot do it. The Editor throws an Oops error, and the FTP freezes. This is a trivial first update that I have tried, just adding one letter to the word Copyright (Copyrightt) – line 577 of the code. What’s wrong with this file?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • It is easy to fix it. All you need is to log in to your cPanel, not ftp. And now, please go to the file manager there and then, public_html/wp-content/themes/colormag. there you will see the functions.php. You can edit this file right there by right-clicking and choosing “Edit”. There you won’t get this error what you are getting in FTP/in the editor. Do you remember what you did in that functions.php? If not, still there are ways to restore that functions.php.

    First of all, go to your wordpress dashboard and then appearance->themes->add new. and now, you should install and activate a new theme but please don’t customize it. Now, go to file manager in cPanel-> public_html/wp-content/themes/
    and delete the theme “colormag”. things are done. Go back to the wordpress dashboard once again and reinstall and activate the colormag again and delete the other theme, now you will get a new and fresh copy of functions.php.

    I hope this will solve your problem.

    With regards,
    Jewel

Viewing 1 replies (of 1 total)

The topic ‘file inc/functions.php corrupt?’ is closed to new replies.