[SOLVED] Permalink or 404 error - page not displaying correctly
Hi there
Brilliant theme and by far the most configurable at wordpress.org! My mate is very pleased with the website I've just put together for him. URL: http://www.ashleytempestengineering.com/ My problem: when I type in a non-existent url I get the 404 page but I also get a lot of what looks like php, css and html. Have a look at http://www.ashleytempestengineering.com/id2.html and you'll see what I mean. If I set my permalinks to 'default' I get the standard browser '404 page not found' message. When I set my permalinks to Month and name (/%year%/%monthnum%/%postname%/) I get the page showing the script as above. I'm using Linux at the UK Fasthosts if that is any indication. I'm a bit stuck with what to do so if anyone can offer a suggestion I'd be very grateful. Cheers |
Something is causing the top part of the page to not be generated. Adding the missing code taken from the source of your main page, does give the expected
Not Found Sorry, but you are looking for something that isn't here. First thing to figure out is if this is a Atahualpa issue or WordPress issue. Try changing to the default theme and link to a bad page, what happens? If the problem shows up, try reinstalling the WordPress source code If it doesn't show up, reinstall the Atahualpa theme and see if that fixes it. |
Thanks for replying juggledad.
I swapped to the default theme and on requesting a non-existent page I get the standard browser 'page not found' so all seems to be working ok with Wordpress. I then deleted the atahualpa 3.3.3 theme and uploaded V3.2. The problem still persists for me with V3.2 so I uploaded V3.3.3 again. I uploaded atualpha V3.3.3 to another wordpress blog I have that is hosted by another hosting company. The 404 error page and permalinks work fine on that wordpress install. Could this problem be pointing towards my hosting? |
it does seem that way.Do you know what version of PHP the host is running? An easy way to check is to install the wp-security plugin (http://semperfiwebdesign.com/custom-...security-scan/). then copy and paste here the System Information Scan. People have had some 'interesting' issues when running PHP 4.x
|
Code:
System Information Scan |
Quick reply! - Since the cutoff code is at the end of the code generation for the Recent_comments widget, would ou remove that widget and see what happens?
|
I'm not sure what you're asking here. I don't have the 'recent comments' widget installed. I have (just now) removed the sidebars through the atahualpa page to remove widgets from the site altogether.
|
What version of Wordpress are you on?
|
Version 2.7.1
|
I think what's happening is there is some peice of data in the database that is causing Atahualpa a problem when it is trying to generate the NOT FOUND page. When you uploaded Atahualpa 3.3.3 to the other host, did you also upload the mysql database or was this a fresh database?
Can you dump the Atahualpa options (see Flynn's code in post http://forum.bytesforall.com/showthr...ghlight=backup) and send me the XML file and I'll take a look at it? |
1 Attachment(s)
I just installed the theme on the other blog, no data was transferred across.
|
looks ok, can you get to the error log and access log on the server? Is there anything in there? (looking for error messages of any type.)
Here's how I would go about pinning this down. I would export my MySQL database and copy all the folders in the wordpress directory to my local server and import the database to my local server and see if the problem was happening Next I would remove all the plugins and see if the problem still existed, if it did, I'd start deleting the posts one at a time to see if one of them was causing it. Once I discovered what was causing it, I'd put some tracing in to see why it was happening. If you want me to give it a try, send me a PM and we can talk more. Paul ---------------- update --------------- I just found this on the web, give it a try and let's see what it may show. To assist in tracking down the bugs, made a small addition to wp-config.php: ---------------------------------- function wp_error_handler( $errno, $errstr, $errfile, $errline ) { error_log( "WordPress Error: " . "errno: {$errno} " . "errstr: {$errstr} " . "errfile: {$errfile} " . "errline: {$errline} " . var_export(debug_backtrace()) ); return(true); } set_error_handler('wp_error_handler'); ---------------------------------- It isn’t the most elegant logging mechanism, but it does make errors show pretty obviously. |
Editing wp-config.php...will update
Update - get the following; Code:
array ( 0 => array ( 'file' => '/home/fhlinux193/a/ashleytempestengineering.com/user/htdocs/wp-config.php', 'line' => 94, 'function' => 'wp_error_handler', 'args' => array ( 0 => 2048, 1 => 'Assigning the return value of new by reference is deprecated', 2 => '/home/fhlinux193/a/ashleytempestengineering.com/user/htdocs/wp-settings.php', 3 => 520, 4 => array ( 'GLOBALS' => array ( 'GLOBALS' => array ( 'GLOBALS' => array ( |
Could be a red herring but should I have equal amounts of head opening and closing tags? I have 1x<head> and 2x</head> shown at the W3C validator
Thanks for your suggestions and all of your help JD. I think I'm going to do a fresh install in a sub directory of WP, add the atahualpa theme and see what happens with the 404 under those conditions just to prove the hosting will work or not. Then I'll move onto disabling the plugins etc as you've suggested. Fasthosts have sent me the following; Quote:
|
Hmmm, so what'd in your .htaccess file?
Which page did you validate, when I do it, I don't get that error, I just get one about the 'contact us' - this is on the main page |
Just the standard contents that wordpress puts in for permalinks.
Code:
# BEGIN WordPress I'm going to fresh install WP to a sub directory in the next couple of hours. I'll report back with my findings. |
Well that all works ok with just WP and Atahualpa 3.3.3 (after I removed the roots htaccess file and the wp-config.php file) so I'm moving onto disabling plugins now.
|
It's starting to process header.php at almost exactly the middle with
headline h1 a:hover I don't see anything in the code at that location that would cause this. I checked a few sites and the 404 pages are working there Perhaps you can link it to a specific plugin Perhaps a combination of PHP settings & Atahualpa & plugin |
hi. i have a similar problem as the OP - my post is working fine but all the pages go 404. does anybody know how to fix that?
i've tried deactivating all the plugins as well as installing the latest theme ver. (3.4.6) - nothing seems to help. my url is memebee.com |
|
All times are GMT -6. The time now is 05:49 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.