Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 03-11-2010, 01:32 AM   #1
Active Warrior
 
Hulbert's Avatar
 
Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
Default My site just crashed and I wondering if you can you help me please?

How do I fix this error please? I wish to get my site back up as soon as possible.

http://frombottomup.com/

Hulbert is offline   Reply With Quote
Old 03-11-2010, 02:15 AM   #2
Advanced Warrior
War Room Member
 
Bruce Hearder's Avatar
 
Join Date: May 2004
Location: Perth, Australia.
Posts: 717
Thanks: 4
Thanked 182 Times in 138 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Bruce Hearder
Default Re: My site just crashed and I wondering if you can you help me please?

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
Bruce Hearder is offline   Reply With Quote
Old 03-11-2010, 02:20 AM   #3
Active Warrior
 
Hulbert's Avatar
 
Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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...

Hulbert is offline   Reply With Quote
Old 03-11-2010, 02:27 AM   #4
Active Warrior
 
Hulbert's Avatar
 
Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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()); ?>&amp;title=<?php urlencode(the_title()); ?>" onclick="window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=<?php urlencode(the_permalink()); ?>&amp;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
}

Hulbert is offline   Reply With Quote
Old 03-11-2010, 02:37 AM   #5
Advanced Warrior
War Room Member
 
Bruce Hearder's Avatar
 
Join Date: May 2004
Location: Perth, Australia.
Posts: 717
Thanks: 4
Thanked 182 Times in 138 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Bruce Hearder
Default Re: My site just crashed and I wondering if you can you help me please?

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
Bruce Hearder is offline   Reply With Quote
Old 03-11-2010, 02:48 AM   #6
Active Warrior
 
Hulbert's Avatar
 
Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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.

Hulbert is offline   Reply With Quote
Old 03-11-2010, 03:05 AM   #7
Warrior Member
 
Join Date: Dec 2009
Posts: 20
Thanks: 3
Thanked 5 Times in 5 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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.
TheDigerati is offline   Reply With Quote
Old 03-11-2010, 03:08 AM   #8
Active Warrior
 
Hulbert's Avatar
 
Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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.

Hulbert is offline   Reply With Quote
Old 03-11-2010, 03:10 AM   #9
HyperActive Warrior
War Room Member
 
Join Date: Dec 2009
Location: Costa Rica
Posts: 172
Thanks: 74
Thanked 44 Times in 42 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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( )) { ?>
your site may come-back but without a previous backup of this file, it's not known what code needs to be in that function or what else you may have accidentally deleted.

peace

imarketstuff is offline   Reply With Quote
Old 03-11-2010, 03:20 AM   #10
Active Warrior
 
Hulbert's Avatar
 
Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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...

Hulbert is offline   Reply With Quote
Old 03-11-2010, 03:24 AM   #11
Active Warrior
 
Hulbert's Avatar
 
Join Date: Dec 2009
Posts: 61
Thanks: 0
Thanked 9 Times in 6 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

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!

Hulbert is offline   Reply With Quote
Old 03-11-2010, 03:26 AM   #12
HyperActive Warrior
War Room Member
 
Join Date: Dec 2009
Location: Costa Rica
Posts: 172
Thanks: 74
Thanked 44 Times in 42 Posts
Default Re: My site just crashed and I wondering if you can you help me please?

Quote:
Originally Posted by Hulbert View Post
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!
jajajaja.. you're welcome.

if you can get a copy of that original file, that would be great.. just to put things back in the original state.

peace

imarketstuff is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
crashed, site, wondering

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 06:33 PM.