Forums

I keep trying to fix my site and I keep making it worse...now my site is down! (7 posts)

  1. Deand
    Member
    Posted 2 years ago #

    Please HELP.

    I was trying to fix a problem with the posts border that was overlapping. I have no idea what I 've done but it said I had one problem so I tried to fix it and now it says I have another problem.
    I have tried uploading the original function.php but all I get is this! My site is down and the dashboard says the same thing.

    Fatal error: Call to undefined function wp_enqueue_script() in /home/stopsmok/public_html/wp-includes/functions.php on line 27

    Can anyone help please?

  2. Deand
    Member
    Posted 2 years ago #

    This is what I was trying to fix before that.

    Warning: Cannot modify header information - headers already sent by (output started at /home/stopsmok/public_html/wp-content/themes/QuadroTheme/Quadro/functions.php:288) in /home/stopsmok/public_html/wp-admin/theme-editor.php on line 69

    can anyone please help me?

    Thank you

  3. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent

    Start by looking at your theme's functions.php file.

  4. Deand
    Member
    Posted 2 years ago #

    Thanks for answering esmi

    I took your advice and I at least made some progress. (I think!?!)

    I now get this

    Parse error: syntax error, unexpected ';' in /home/stopsmok/public_html/wp-content/themes/QuadroTheme/Quadro/functions.php on line 3

    This is the problem I had whilst trying to fix another problem. Hence the state i'm in...causing problems whilst trying to fix problems. :(

    Please help

  5. jonimueller
    Member
    Posted 2 years ago #

    Can't you just reupload the original theme function.php file and start from there?

  6. Deand
    Member
    Posted 2 years ago #

    Thanks for you help, I have uploaded the original function.php and now have this warning. My site isn't loading properly.

    Warning: Invalid argument supplied for foreach() in /home/stopsmok/public_html/wp-content/themes/QuadroTheme/Quadro/home.php on line 18

    This is the code.

    global $options;
    foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
    ?>

    Can someone offer some advice please?

  7. jonimueller
    Member
    Posted 2 years ago #

    Have you tried contacting the theme's creator? And if you open that file in a text editor (which hopefully has a line counter on the side), what exactly is on line 18? Maybe you can comment that out. And the way to comment out code in php is to put this:

    // before each line you want to comment out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.