• I was doing some work on the code for my theme and all of a sudden I get this error when I pull up my site:

    Warning: require(D:\Hosting\2756550\html/wp-content/themes//inc/widget-page.php) [function.require]: failed to open stream: No such file or directory in D:\Hosting\2756550\html\wp-content\themes\functions.php on line 1524

    Fatal error: require() [function.require]: Failed opening required ‘D:\Hosting\2756550\html/wp-content/themes//inc/widget-page.php’ (include_path=’.;C:\php\pear’) in D:\Hosting\2756550\html\wp-content\themes\functions.php on line 1524

    Godaddy says to fix it I need to upload a clean copy of functions.php in the themes folder.

    I can’t even get into the admin page. I get the same error.

    Does anyone know where I can get one of have the codes to make a new one?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Download WordPress, and replace your current functions.php file with the one you downloaded. Should be simple enough.

    Thread Starter Ray

    (@bpm125)

    I tried that already. There is no functions.php file in the themes folder.

    Are you using a custom theme?

    Thread Starter Ray

    (@bpm125)

    I’m using the sg-grid theme. https://www.ads-software.com/themes/sg-grid/
    There’s a functions.php in that themes folder, but I need a clean functions.php file within the themes folder.

    There is no functions.php in the themes folder. Functions.php is the file that comes inside the theme that controls it’s custom features.

    You are not making any sense –

    Thread Starter Ray

    (@bpm125)

    Well, I’m looking at the functions.php file right now in my themes folder and GoDaddy says that I need to replace that file. So either I’m telling you the truth or I’m just imagining it.

    As @jaycbrf has states, the themes folder does not contain this file. I’d be careful of GoDaddy support advice, they aren’t known for being a pinnacle of technical expertise.

    Your specific PHP error, is however, odd. It’s saying that a file, inside of /themes/ is looking for a file inside of /inc/. Could you send a screenshot of your folders and directory structure?

    Thread Starter Ray

    (@bpm125)

    GoDaddy actually fixed my site and I was able to restore the back up! Apparently they did take the functions.php file out of the themes folder. Maybe that was one of the problems?

    Anyway, thanks for your replies and help!

    – oops –

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Need new clean functions.php in Themes folder’ is closed to new replies.