• So I was messing with the coding of a theme I downloaded and must have deleted something important because now I can’t even fix the problem…

    Here is what my website looks like now..
    Bellinghamfoodandbar.com

    I’m pretty sure I was messing with ‘loop-attathment.php’ but it also could have been “Theme Functions (functions.php)” or “class.twentyxs-options.php”.

    Not sure what to do from here.
    I pretty much accepted that I’ll have to start from scratch but I dont even know how to get back to that starting point

Viewing 10 replies - 1 through 10 (of 10 total)
  • Phil

    (@owendevelopment)

    Have you checked the functions.php file at line 470? Maybe download it via ftp and post on here so someone can take a look. Child theme definately broken, but I suggest the above before starting from scratch.

    Do you have a backup of the functions file?

    Hi Johannvonk. Error messages can be a bit tricky, but if you take a step back and try to understand what the error is telling you, many times it is not too difficult to troubleshoot.

    Here’s your error:

    Fatal error: Call to undefined function twentyxs_option() in /home/grizzly/public_html/wp-content/themes/twentyxs/functions.php on line 470

    What this is telling us is that on line 470 of twentyxs/functions.php, there is a line of code that is trying to call a php function named twentyxs_option(). The problem is that function, twentyxs_option(), is not setup anywhere.

    Now, what’s causing this could be a few things (or actually could be quite a few things).

    1. Do you remember deleting any code?
    If you were cutting and pasting code around or trying to clean it up, you may have deleted that function.

    2. Were you editing any code?
    You may have mistakenly commented out the code.

    I searched Google for twentyxs_option() and found this page:
    http://themes.svn.wordpress.org/twentyxs/1.3.5/class.twentyxs-options.php

    You may want to confirm that your code is similar to what is shown here.

    I’m not sure how much any of this will help you, but if you can respond back with more details as to what specifically you were trying to do as well as if you’re previously made any modifications, we may be able to help further.

    Thread Starter Johannvonk

    (@johannvonk)

    Thanks for the replys guys.
    Brad, I was deleting and editing code. Kinda just messing around with it. I would copy a whole section and delete it, and then notice the changes, then paste it back to what it was originally.
    Except for I must have pasted the wrong one or something.

    How would I go abot just starting from scratch?

    Hi Johannvonk, many web hosting providers make backups of customers’ files. Have you by chance contacted your host to see if they could assist with restoring those files from backup?

    Have you tried changing to a different theme or deleting and reinstalling your current theme? If the problem is just with the theme files you’ve edited, then putting a fresh copy of the theme back in place should correct the problem.

    Keep us updated and let us know how it goes!

    Thread Starter Johannvonk

    (@johannvonk)

    Thanks for another reply Brad.
    My hosting provider is ‘host-gator’. Perhaps I should try and get in contact with them.

    And yes, I have tried changing/deleting/reinstalling my theme. I’ve read every forum post about the topic.
    The reason why I cant figure out how to uninstall/re-install wordpress is mostly because I dont understand how to do it.

    For example-
    http://wordpress.org/support/topic/how-to-uninstall-wordpress-from-the-server?replies=6

    This explains a “simple” 2 step process on how to uninstall wordpress.
    However, to me, this is not so simple.
    I just dont understand the steps.
    For example,
    STEP 1-

    Delete all WordPress files. If you installed into your root directory, delete all the files and directories installed by WordPress (wp-config.php, /wp-content/, /wp-admin/ etc). Be careful to not delete any other files you might have had there before WordPress. If WordPress is in a subdirectory, simply delete the subdirectory and all its contents.

    What is my root directory?
    And it is the same thing for every thread regarding the topic.

    What is my root directory?

    Try asking your hosts for assistance with this.

    Hi Johannvonk, you shouldn’t need to Uninstall WordPress, but instead delete the theme only and then reinstall it. I couldn’t find any official documentation on the matter, so I wrote a quick guide for you here:
    How to delete a WordPress theme

    I couldn’t find any official documentation

    It’s all over these forums.

    Try switching to the Twenty Eleven theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    Hello there esmi!

    I couldn’t find any official documentation

    I understand clarification wasn’t asked for from yourself, but I wanted to chime in anyways. When I looked for documentation, I googled:

    site:wordpress.org how to delete a theme

    The results that I got on the first page either recommend using FTP / a File Manager to delete the theme, or the results were off topic completely.

    I guess my statement should have been:

    I couldn’t find any official documentation for deleting a theme that didn’t require using FTP or some type of File Manager.

    Many users that are very new to the web or WordPress are not comfortable with deleting files. In my experience, it’s always been best to provide the “safest” documentation available in those cases. If there is official documentation on this subject, please let me know and I’ll begin to reference that specific article.

    Many users that are very new to the web or WordPress are not comfortable with deleting files

    Agreed. But renaming the current theme folder works just as well. I’ll have a look at the FAQ entry in the Codex and see if I can tweak the wording.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘I was messing with coding and something went terribly wrong…’ is closed to new replies.