• Resolved rjpp

    (@rjpp)


    Hi,

    I tried to do what these guys said on their thread and messed up my website.

    I get the following message: /Tradexcom/wp-content/themes/twentyfifteen/inc/custom-header.php): failed to open stream: No such file or directory /Tradexcom/wp-content/themes/twentyfifteen/functions.php on line 341

    You can check the problem here at the website http://www.tradexcom.es

    I tried restoring a previous version of the server, uploaded again and couldn’t edit once again. Can anyone provide a solution for this.

    Need it ASAP!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Comment out line 341 in your functions.php file, upload and redisplay.

    What happens?

    Thread Starter rjpp

    (@rjpp)

    Didn’t get what you mentioned. What do you mean?

    Thread Starter rjpp

    (@rjpp)

    Here’s the print screen from the website

    open up the functions.php to edit
    Scroll to line 341.
    It should start with “require(…”
    Put two slants in front of require(… like this //require(…
    save the functions.php
    Upload it to the website
    Re-display the website.
    You should not get that error – What do you see?

    Thread Starter rjpp

    (@rjpp)

    I did and it started removing it. BUt now I get this message

    Call to undefined function twentyfifteen_get_color_scheme() in /homepages/…Tradexcom/wp-content/themes/twentyfifteen/functions.php on line 106

    What does this mean?

    Thread Starter rjpp

    (@rjpp)

    What should I change?

    $color_scheme = twentyfifteen_get_color_scheme();
    $default_color = trim( $color_scheme[0], ‘#’ );

    It means that there is a call to a function ( twentyfifteen_get_color_scheme() ) on line 106 of the functions file, BUT, the function does’t exist (or cannot be found).

    1.) Look in the wp-content/themes folder. Is there are twentyfifteen folder?

    2.) Comment out line 106 using the slants // like before , and see if another error is generated or the website displays.

    Feels like there is a mismatch between the functions.php and the theme. 3.) Which theme are you using?

    Thread Starter rjpp

    (@rjpp)

    I’m using TwentyFifteen because I’m just interested in the admin user for now.

    Yes, there’s a folder. What are the // supposed to do? Where do they go on this line??

    // the slants comment out a line so the PHP passes over it and you don’t get the error.

    try replacing those lines with these:

    // $color_scheme = twentyfifteen_get_color_scheme();
    $default_color = #4040FF; // blue

    Thread Starter rjpp

    (@rjpp)

    It got fixed! I’m able to log in to the admin now and the errors are gone.

    Thanks so much for your help!!

    My pleasure.

    Watch for missing functionality because we blocked some out with those slants.

    GOOD LUCK and Happy blogging!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Problem trying to edit 'W' from WordPress admin’ is closed to new replies.