I broke my WP Blog, help? D:

11 replies
  • WEB DESIGN
  • |
I was installing a plugin called Collapsing Categories Plugin.
And I installed in Manually to get this certain option and I did what the installation page said. And now I get this Error

Parse error: syntax error, unexpected '<' in /home/smandes/public_html/GooRooBusters.com/wp-content/themes/buster2/library/sidebars.php on line 204

Line 204 is the very last one, and I have no idea what is wrong with it. Cause it looks the same as it did before I did the editing. Is there a way to save my blog without having to lose everything? Im never going to edit stuff like that again.

BTW: I tried to see if there was support with the plugin and there wasnt any. So I came here.
#blog #broke
  • Profile picture of the author dsimie
    I think /> is missing. Check the sidebars.php
    {{ DiscussionBoard.errors[6857590].message }}
  • Profile picture of the author Dan Grossman
    Copy everything in sidebars.php, paste it between code tags here, or into a site like Pastebin.com - #1 paste tool since 2002!

    Can't fix the code without seeing the code.

    My only guess is that you lost the ?> closing tag to a PHP code segment, so you inadvertently have raw HTML in a PHP segment. The first character of whatever tag used to be after the ?> would be a <, leading to that error.
    Signature
    Improvely: Built to track, test and optimize your marketing.

    {{ DiscussionBoard.errors[6858225].message }}
  • Profile picture of the author Elizabeth Fee
    If all else fails, you can always login to your hosting cpanel, access your File Manager from there and manually remove the plugin under the wp-content/plugins directory (assuming the plugin actually caused the issue - which it sounds like it did).

    Your blog should be fine as all of the underlying information will still be there. PM me if you want an extra set of eyes to help you.

    Elizabeth
    Signature

    Elizabeth Fee
    The Niche Mom - My personal blog to inspire and guide you towards earning an income online.

    {{ DiscussionBoard.errors[6859582].message }}
  • Profile picture of the author clickbump
    The first option is to deactivate and remove the plugin. You can do this either via the wordpress admin(easiest) or via FTP (if your site is rendered inoperable).

    If your site is inoperable and you need to do it via FTP (hit your web host's chat support if you don't know how to access the site via FTP and they can help), you'll need to manually delete the plugin.

    To do so, via FTP, first locate your plugins folder and make a backup of it by copying it to your local PC.

    Next, locate this specific plugin's folder under "wp-content > plugins" and delete it (Don't delete the entire plugins folder, just delete the particular plugin folder that you are having trouble with)

    Once you've deleted the plugin, you should be able to access your site again.

    [update] Sorry I didn't see Elizabeth's answer above. Her answer is correct too.
    Signature
    {{ DiscussionBoard.errors[6862816].message }}
  • Profile picture of the author TGforever
    I deleted the plugin but I still get the error

    Here in the code on the website mentioned above
    sidebars.php PHP script text <?php global $theme_sidebars; $theme_si - Pastebin.com
    {{ DiscussionBoard.errors[6863380].message }}
  • Profile picture of the author Dan Grossman
    The problem is line 207.

    Code:
            <?php
        return true;
    }
    <?php
    You're already in PHP mode, then you write <?php again, which itself is not valid code. Thus the "unexpected <" error.

    So delete that extra <?php
    Signature
    Improvely: Built to track, test and optimize your marketing.

    {{ DiscussionBoard.errors[6863413].message }}
  • Profile picture of the author TGforever
    I deleted it and now I get this error
    Parse error: syntax error, unexpected $end in /home/smandes/public_html/GooRooBusters.com/wp-content/themes/buster2/library/sidebars.php on line 200
    {{ DiscussionBoard.errors[6863554].message }}
  • Profile picture of the author Dan Grossman
    Did you delete the } right before the <?php too, perhaps?

    Here's a copy with only the one change I suggested made, that passes a syntax check:

    http://dangrossman.info/syntax.txt
    Signature
    Improvely: Built to track, test and optimize your marketing.

    {{ DiscussionBoard.errors[6863785].message }}
  • Profile picture of the author TGforever
    Ok, what the heck am I doing wrong?! I copied and pasted yours into mine and it still doesnt work. Maybe I should just start all over :C
    Is there a way I can save my posts?
    {{ DiscussionBoard.errors[6863818].message }}
    • Profile picture of the author Dan Grossman
      Originally Posted by TGforever View Post

      Ok, what the heck am I doing wrong?! I copied and pasted yours into mine and it still doesnt work. Maybe I should just start all over :C
      Is there a way I can save my posts?
      Your posts are all in the database, so no amount of mucking around with your theme files will affect them.
      Signature
      Improvely: Built to track, test and optimize your marketing.

      {{ DiscussionBoard.errors[6863865].message }}
  • Profile picture of the author TGforever
    Woot, I deleted my theme and the site is working now! Thanks so much! Im not going into the edit things anymore! All this crap delayed me by at least a week. Thanks again!
    {{ DiscussionBoard.errors[6863960].message }}

Trending Topics