![]() | | ||||||||
| | #1 |
| Active Warrior Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
|
How do I fix this error please? I wish to get my site back up as soon as possible. http://frombottomup.com/ |
| | |
| | |
| | #2 |
| Advanced Warrior War Room Member Join Date: May 2004 Location: Perth, Australia.
Posts: 717
Thanks: 4
Thanked 182 Times in 138 Posts
|
You theme file seems to have lost the plot. There are only 2 ways to get it back : 1. Try and fix the PHP problem in the theme area. Depends on how competent you are at PHP coding, or 2. Access your sites database, and manually change the theme to another one, like the kulbrick default template. This will give you access to the wp-admin area again, and you can rebuild things from there.. Soory, but there is no easy way to do this take care Bruce |
| ----------------- Get Your Backlinks indexed quicker at BackLinks2RSS Create Full Text Feeds from Partial RSS Feeds at FeedExpander.com. See the WarriorForum post about it here | |
| | |
| | #3 |
| Active Warrior Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
|
Hey Bruce, thanks for your help. It's just I have no idea how to read php or what not. I'm in the area where I can actually "see" the code, but I have what it means. Do you mind if I post it here? Anything helps...
|
| | |
| | |
| | #4 |
| Active Warrior Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
|
This is so crazy. I feel like I'm in another world trying to solve a problem. Can any experts help me? Here's the problem: Parse error: syntax error, unexpected $end in /home/content/c/l/o/cloud30/html/wp-content/themes/thesis_16/custom/custom_functions.php on line 94 The answer to the problem lies somewhere in here (I think it's just changing one little thing?): <?php // Using hooks is absolutey the smartest, most bulletproof way to implement things like plugins, // custom design elements, and ads. You can add your hook calls below, and they should take the // following form: // add_action('thesis_hook_name', 'function_name'); // The function you name above will run at the location of the specified hook. The example // hook below demonstrates how you can insert Thesis' default recent posts widget above // the content in Sidebar 1: // add_action('thesis_hook_before_sidebar_1', 'thesis_widget_recent_posts'); // Delete this line, including the dashes to the left, and add your hooks in its place. /** * function custom_bookmark_links() - outputs an HTML list of bookmarking links * NOTE: This only works when called from inside the WordPress loop! * SECOND NOTE: This is really just a sample function to show you how to use custom functions! * * @since 1.0 * @global object $post */ /***OPTIONAL FEATURED CONTENT ON HOME PAGE WITH DYNAMIC CONTENT GALLERY PLUGIN***/ /*Commented out function featcc() { if (is_home()){ global $post; if( function_exists( 'dynamic_content_gallery' ) ) : dynamic_content_gallery(); endif; } } add_action('thesis_hook_feature_box', 'featcc'); */ /***END FEATURED CONTENT***/ /***CUSTOM NAVIGATION FOR SKIN***/ function custom_nav() { ?> <div id="nav_area" class="full_width"> <div class="page"> <?php thesis_nav_menu(); ?> </div> </div> <?php } remove_action('thesis_hook_before_header','thesis_ nav_menu'); add_action('thesis_hook_before_html','custom_nav') ; /***END CUSTOM NAVIGATION FOR SKIN***/ /***OPTIONAL HEADER AD - INSERT AN AD HERE OR COMMENT OUT / DELETE TO REMOVE***/ function header_ad() { echo ' <div class="header-adblock"> <a href="http://www.thesis-theme.com"> <img src="http://www.thesistheme.net/thesis-terracotta/images/468x60.png"> </a></div> '; } add_action('thesis_hook_header','header_ad'); function post_article_call() { if (is_single( )) { ?> /***OPTIONAL HEADER AD END ***/ /***TERRACOTTA DEFAULT FOOTER Thesis Terracotta is a free Thesis skin and you are free to modify it as you wish. I do kindly ask that you leave the following footer code to provide a link back to the skin site so I can receive credit for my work.***/ function custom_footer() { echo '<p>Copyright © 2010 From Bottom Up</p>'; } remove_action('thesis_hook_footer', 'thesis_attribution'); add_action('thesis_hook_footer', 'custom_footer'); /* **TERRACOTTA DEFAULT FOOTER END***/ function custom_bookmark_links() { global $post; ?> <ul class="bookmark_links"> <li><a rel="nofollow" href="http://delicious.com/save?url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url=<?php urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark this post on del.icio.us">Bookmark this article on Delicious</a></li> </ul> <?php } |
| | |
| | |
| | #5 |
| Advanced Warrior War Room Member Join Date: May 2004 Location: Perth, Australia.
Posts: 717
Thanks: 4
Thanked 182 Times in 138 Posts
|
The error mesage generally means a missing closing curly brackets. A } symbol. The error message, just means that PHP crashed at that line. Its does not mean that is where the problem is. It could be in a plugin, some other file, or in this php file itself.. PM me if you want some more healp and I'll have a closer look Bruce |
| ----------------- Get Your Backlinks indexed quicker at BackLinks2RSS Create Full Text Feeds from Partial RSS Feeds at FeedExpander.com. See the WarriorForum post about it here | |
| | |
| | #6 |
| Active Warrior Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
|
Hi Bruce, I understand. I was putting code in here and I took it out, then it crashed. I'm pretty sure this is where the problem is at because I was in the custom.php's section the entire time. Right now I can't log into my WordPress, but I do have access to my file manager where I can still change the custom.php there, which is what is posted above.
|
| | |
| | |
| | #7 |
| Warrior Member Join Date: Dec 2009
Posts: 20
Thanks: 3
Thanked 5 Times in 5 Posts
|
Hulbert I see you are using the thesis theme. If you can log into the file manager, just go ahead and rename the custom_funtions.php to custom_funtions.php.bak. This will eliminate that file as the problem. If this does not solve it, Go to your plugins folder, create a folder name e.g holdtemp, then copy all you plugins or one by one to this folder. You will so eliminate the plugin that is causing this, if its a plugin. |
| | |
| | #8 |
| Active Warrior Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
|
Hi, I've renamed the folder custom_functions.php.bak but when I went back to my site, the header was completely messed up. So I went changed it back to custom_functions.php. Where is the plugins folder located? I'm sorry, I don't think it's the plugin. I know it had to do with the code because I was trying to insert code in it a couple of hours ago, and it got messed up. I wanted to add something, but I shouldn't have done it. I'm regretting it because I want to fix this before I go to sleep. |
| | |
| | |
| | #9 |
| HyperActive Warrior War Room Member Join Date: Dec 2009 Location: Costa Rica
Posts: 172
Thanks: 74
Thanked 44 Times in 42 Posts
|
hey there Hulbert you are missing some code near "function post_article_call()".. every other function has a closing curly bracket, except for this function. is that where you were removing code? backup the file, remove the following code and there will be no more errors with that file: Code: function post_article_call() {
if (is_single( )) { ?> peace |
| | |
| | |
| | #10 |
| Active Warrior Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
|
Hi, I noticed that there wasn't a closet bracket at the end of there. "function post_article_call()".. I'm going to try to put it in and see it works... |
| | |
| | |
| | #11 |
| Active Warrior Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
|
Thank you so much man! It worked! I would give you a handshake or something but I can't since your in Costa Rica! I'm so happy! This was the craziest coding experiencing I've ever gone through and I'm so grateful I'm not a programmer. You guys are talented! Yes! Phew... I can go to sleep now! Thanks again! |
| | |
| | |
| | #12 | |
| HyperActive Warrior War Room Member Join Date: Dec 2009 Location: Costa Rica
Posts: 172
Thanks: 74
Thanked 44 Times in 42 Posts
| Quote:
![]() if you can get a copy of that original file, that would be great.. just to put things back in the original state. peace | |
| | ||
| | |
![]() |
|
| Tags |
| crashed, site, wondering |
| Thread Tools | |
| |
![]() |