• I really messed up and tried adding a social widget like explained here- http://www.wpzoom.com/forum/viewtopic.php?f=21&t=12732 to my wpzoom /functions/theme/widgets/social.php .

    I went to theme editor and then theme functions (functions.php) and under theme widgets I added
    require_once THEME INC . “/widgets/instagram.php”;
    Underneath
    require_once THEME INC . “/widgets/twitter.php”;

    Now i get an error and am completely locked out of wordpress and my site thetroyindependent.org

    Warning: require_once(/home/content/32/10006132/html/wp-content/themes/tribune/functions/theme/widgets/instagram.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/32/10006132/html/wp-content/themes/tribune/functions.php on line 37

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/32/10006132/html/wp-content/themes/tribune/functions/theme/widgets/instagram.php’ (include_path=’.:/usr/local/php5_3/lib/php’) in /home/content/32/10006132/html/wp-content/themes/tribune/functions.php on line 37

    So I know how to fix it….just take out the line of code with Instagram and it should be fine. But I can’t access anything. I don’t believe I have access to the server?

    I am very flustered because I’m not quite sure how to solve this problem and I didn’t have an ftp account prior-not sure if that matters?

    I did back my theme up and I backed up my site right before I added the line. But I am lost trying to figure this out.

    All help would be greatly appreciated!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Unfortunately, in the past I have run into issues like this as well.
    The only way that I have been able to circumvent it is through FTP or calling the host provider to see if they have a backup.

    If you are able to get your hands on the FTP that would be the best solution. That way you can a) navigate into the theme folder, and edit the lines of code and b) prevent this from being a major problem again in the future.

    Moderator t-p

    (@t-p)

    your theme “tribune” seems to be causing the issue. To find out, try switching to the unedited default, core-bundled Theme (such as Twenty Twelve, Twenty Thirteen or Twenty Fourteen) for a moment using the WP dashboard to rule out any theme-specific issue. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.

    Thread Starter Sregan8

    (@sregan8)

    Thank you both so much for your help. This is going to sound pretty dumb but I have recently taken over website responsibilities so I haven’t yet gotten all the old account information/previous managers have forgotten. I downloaded FileZilla to try to access because I can’t get into wordpress or my website (wp-amin) or the regular site. Any way you can dumb down directions for me. I greatly appreciate the time you have taken to help me during my stressful mishap!

    Moderator t-p

    (@t-p)

    via FTP, rename “tribune” theme:

    /wp-content/themes/tribune.HOLD

    Once you have FTP

    head into wp-content/themes/tribune/
    depending on your host you may need to head to public_html/ before you see wp-content.

    download the functions.php (it will look exactly as what you saw in the text editor in the wordpress dashboard)

    delete the line(s) that you added.

    Re-upload the functions.php after you save the changes.

    The site should become visible again.

    After that, you can resume trying to implement the widget that you did before. And since you will have FTP this time around, the site going out on you, again won’t be as bad of a problem.

    While Tara’s solution will get the site back online, you’ll still have to edit the functions.php in the Tribune theme before it can be used again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Theme Code Help! Can't Access Website!’ is closed to new replies.