TomCraig
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: My sites gone down – internal server errorHi Photonetworx
An option would be to put your site in debug mode, then you might be able to look into solving the error…
In wp-config.php around line 81 you should see a line with ‘WP_DEBUG’
Add in:
define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', true);This is how I found out what the error on my site was.
When you reload up the site you should see some lines at the time, one will be an error, if you come back with that line someone here may be able to help you.
Tom
Forum: Fixing WordPress
In reply to: my website is down!hi 123, thanks for the response, much appreciated….
below is the apache, basically the site was fine until around the below point…
94.192.123.23 – – [04/Mar/2011:19:26:13 +0000] “GET /wp-content/uploads/2010/12/case-study-jenkin-powys-150×113.jpg HTTP/1.1” 200 7043 “http://www.evoenergy.co.uk/system-type/ground-mounted/” “Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13”
207.46.13.41 – – [04/Mar/2011:19:26:08 +0000] “GET /about-us/why-evoenergy/ HTTP/1.1” 500 – “-” “Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)”the php error i could find was:
[Fri Mar 04 23:30:00 2011] [error] [client 79.170.40.31] Premature end of script headers: index.php
I haven’t edited the index.php
So unsure where this has come from…?
Thanks
Tom
Forum: Fixing WordPress
In reply to: My sites gone down – internal server errorhi esmi
i have removed the twenty ten theme.. can i reinstall it?
i only don’t think it was a theme issue because i haven’t edited it tonight and it’s worked fine until now, of course i may be wrong.
in the log file I pasted above, there hasn’t been any errors on any other days, then those five appeared today half an hour ago which is when the site went down… not sure what it means…
thanks
Forum: Fixing WordPress
In reply to: My sites gone down – internal server errorhi esmi
thanks for your suggestion.
I can’t switch back to the twenty ten theme, but I’m pretty sure it’s not a theme issue.
I’ve found this in the error log.. Any ideas?
[Fri Mar 04 22:20:47 2011] [error] [client 88.109.122.10] File does not exist: /home/evodev/public_html/404.shtml
[Fri Mar 04 22:20:47 2011] [error] [client 88.109.122.10] File does not exist: /home/evodev/public_html/comments
[Fri Mar 04 22:20:36 2011] [error] [client 41.200.104.115] File does not exist: /home/evodev/public_html/404.shtml, referer: http://didorahim.ahladalil.com/t1152-topic
[Fri Mar 04 22:20:36 2011] [error] [client 41.200.104.115] File does not exist: /home/evodev/public_html/cm, referer: http://didorahim.ahladalil.com/t1152-topic
[Fri Mar 04 22:20:17 2011] [error] [client 94.192.78.79] File does not exist: /home/evodev/public_html/500.shtmlForum: Fixing WordPress
In reply to: Struggling with "the content"Thanks stvwlf!!
That did the trick!
Forum: Fixing WordPress
In reply to: Menu problem CSS choosing wrong current_page_parentForum: Fixing WordPress
In reply to: Menu problem CSS choosing wrong current_page_parentis that along the lines of:
// Add current-menu-item functionality to custom post types add_filter( 'hybrid_body_class', 'add_to_body_class' ); function add_to_body_class( $class ) { global $post; // Use switch to filter through custom post types switch(get_post_type()) { case 'Films': // If custom post type is films, add current-menu-item class to body. $classes[] = 'current-menu-item'; break; } // return the $classes array return $classes; }it’s pretty annoying that it doesn’t see a custom post correctly…
Forum: Fixing WordPress
In reply to: Menu problem CSS choosing wrong current_page_parentLinosa
Thanks for the fast response!
It happens when I go to a category page: http://www.evoenergy.co.uk/system-type/on-roof/
Or a single post page:
http://www.evoenergy.co.uk/solar-pv-case-studies/20-x-solar-century-185-panels-in-gwent/The problem is I also have a news area, which needs to be set as news for single posts.
Is there a way to tell wordpress that these custom posts are “special” and should be treated differently to standard news posts?
Many Thanks
Tom