Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

[SOLVED] Permalink or 404 error - page not displaying correctly


  #1  
Old May 19, 2009, 09:26 AM
woolef
 
10 posts · May 2009
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
  #2  
Old May 19, 2009, 07:14 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
  #3  
Old May 20, 2009, 03:32 AM
woolef
 
10 posts · May 2009
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?

Last edited by woolef; May 20, 2009 at 04:14 AM.
  #4  
Old May 20, 2009, 06:45 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
  #5  
Old May 20, 2009, 06:52 AM
woolef
 
10 posts · May 2009
Code:
System Information Scan
Operating System : Linux
Server : Apache/1.3.41
Memory usage : 14.54 MByte
MYSQL Version : 5.0.45
SQL Mode : MYSQL40,HIGH_NOT_PRECEDENCE
PHP Version : 5.2.6
PHP Safe Mode : Off
PHP Allow URL fopen : On
PHP Memory Limit : 32M
PHP Max Upload Size : 20M
PHP Max Post Size : 8M
PHP Max Script Execute Time : 30s
PHP Exif support : Yes ( V1.4 )
PHP IPTC support : Yes
PHP XML support : Yes
It all looks up to date, or at least within specs for WP :\
  #6  
Old May 20, 2009, 07:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
  #7  
Old May 20, 2009, 07:36 AM
woolef
 
10 posts · May 2009
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.
  #8  
Old May 20, 2009, 07:57 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version of Wordpress are you on?
  #9  
Old May 20, 2009, 08:03 AM
woolef
 
10 posts · May 2009
Version 2.7.1
  #10  
Old May 20, 2009, 08:27 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
  #11  
Old May 20, 2009, 08:35 AM
woolef
 
10 posts · May 2009
I just installed the theme on the other blog, no data was transferred across.
Attached Files
File Type: zip 2009-05-20.zip (2.3 KB, 2854 views)
  #12  
Old May 20, 2009, 10:55 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.

Last edited by juggledad; May 20, 2009 at 10:59 AM.
  #13  
Old May 20, 2009, 11:07 AM
woolef
 
10 posts · May 2009
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 ( 
Fatal error: Nesting level too deep - recursive dependency? in /home/fhlinux193/a/ashleytempestengineering.com/user/htdocs/wp-settings.php on line 520

Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0
  #14  
Old May 20, 2009, 11:31 AM
woolef
 
10 posts · May 2009
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:
The issue is within your .htaccess file, there is a possibility that directive codes are not accepted in the server. Scripting is no longer part of our support.

Last edited by woolef; May 20, 2009 at 12:08 PM.
  #15  
Old May 21, 2009, 04:56 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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

Last edited by juggledad; May 21, 2009 at 05:18 AM.
  #16  
Old May 21, 2009, 06:25 AM
woolef
 
10 posts · May 2009
Just the standard contents that wordpress puts in for permalinks.
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Wow, that validation is a bit weird. Yesterday I got about 17 errors (including the </head> error) but now only one which is not biggie anyway. Hmmmm :\

I'm going to fresh install WP to a sub directory in the next couple of hours. I'll report back with my findings.
  #17  
Old May 21, 2009, 10:10 AM
woolef
 
10 posts · May 2009
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.
  #18  
Old May 21, 2009, 08:33 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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
  #19  
Old Apr 4, 2010, 02:26 AM
emily
 
2 posts · Apr 2010
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

Last edited by emily; Apr 4, 2010 at 02:36 AM.
  #20  
Old Apr 4, 2010, 03:08 PM
emily
 
2 posts · Apr 2010
solution here http://forum.bytesforall.com/showthr...ight=pages+404

thanks juggledad

Last edited by emily; Apr 4, 2010 at 03:35 PM.

Bookmarks

Tags
404, permalink

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to customize 404 error page? wfzimmerman Atahualpa 3 Wordpress theme 21 Oct 2, 2016 07:50 PM
custom 404: Dunstan-style Error Page Plugin twincascos Plugins & Atahualpa 3 Dec 20, 2010 09:26 AM
[SOLVED] blog not displaying correctly in safari pltrace Header configuration & styling 3 Sep 28, 2009 03:41 PM
[SOLVED] Safari not displaying page menu bar and post footer correctly chinnerz Atahualpa 3 Wordpress theme 4 May 31, 2009 10:52 PM
404 error seneque Atahualpa 3 Wordpress theme 1 Apr 11, 2009 11:20 PM


All times are GMT -6. The time now is 01:14 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.