|
|
|
#1

Mar 20, 2009, 02:21 PM
|
|
|
|
Where can I add additional text/js to the 404 error page?
|
|
#2

Mar 20, 2009, 03:24 PM
|
|
|
|
There isn't a custom 404 error page in this theme. This is actually pretty common.It would be best to make a donation and then a request to Flynn to add it to the list for the next rev - since atahualpa uses a single file for all page handling.
If you don't mind hacking the theme, you can edit the index.php file and go to the end and change the 'NOT found' text to whatever you want.
|
|
#3

Mar 4, 2010, 08:55 PM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
I want to show my index.php for my 404 page. I have a site summary there, so somebody might find something relevant. So, I don't need a custom 404. So, how do you make the index.php so it can be used as a 404?
Thank you,
X
|
|
#4

Mar 5, 2010, 05:18 AM
|
 |
|
|
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
I beleive you just make a copy and name it 404.php
|
|
#5

Mar 5, 2010, 07:49 AM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
I opened the index.php, saved as to 404.php, and added this line in the .htaccess:
ErrorDocument 404 /404.php
This is what happened:
Warning: include(TEMPLATEPATH/functions/bfa_get_options.php) [function.include]: failed to open stream: No such file or directory in /home/content/14/5765714/html/404.php on line 2
Warning: include() [function.include]: Failed opening 'TEMPLATEPATH/functions/bfa_get_options.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/14/5765714/html/404.php on line 2
Fatal error: Call to undefined function get_header() in /home/content/14/5765714/html/404.php on line 3
Help.
X
Edited to add: I went to permalinks and switched to another setting and switched back and now I don't get that error message. But, when I put in a page title that is not in my blog I get the original 404 message:
Not Found
Sorry, but you are looking for something that isn't here.
I don't get mine. Where should I put the 404.php? Should it be in the same place the index.php is or in the root?
Thank you,
X
Last edited by X-Evolutionist; Mar 5, 2010 at 07:54 AM.
Reason: Added "edited to add" info
|
|
#6

Mar 5, 2010, 09:01 AM
|
 |
|
|
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
1) did you copy the Atahualpa index.php?
2) it must be in the atahualpa folder
Last edited by juggledad; Mar 5, 2010 at 11:00 AM.
|
|
#7

Mar 5, 2010, 09:20 AM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
I used this file:
\wp-content\themes\atahualpa\index.php
Do I keep the 404.php in that folder or in the root? Do I list it in the .htaccess?
I previously had an html website in my domain where wordpress is now. I don't know what things are different and what are the same for using WordPress. Previously, I had my custom 404 in the root.
Thank you,
X
|
|
#8

Mar 5, 2010, 10:17 AM
|
 |
|
|
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
|
|
#9

Mar 5, 2010, 10:52 AM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
It does not say where the 404.php goes: same as the index.php or in the root. X
|
|
#10

Mar 5, 2010, 11:00 AM
|
 |
|
|
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
re read post #6 item (2)
|
|
#11

Mar 5, 2010, 11:12 AM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
Oops. Sorry.
Thank you,
X
|
|
#12

Mar 5, 2010, 11:19 AM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
What file comes up with this text:
Not Found
Sorry, but you are looking for something that isn't here.
Can I just replace that text with mine?
X
|
|
#13

Mar 5, 2010, 11:45 AM
|
 |
|
|
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
it's displayed by the code in index.php
HTML Code:
<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
bfa_center_content($bfa_ata['content_not_found']); ?>
the actual text is in bfa_theme_options.php
|
|
#14

Mar 5, 2010, 12:01 PM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
Thank you,
X
|
|
#15

Mar 5, 2010, 04:54 PM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
I started a second blog today, with Atahualpa, of course. There is a 404 template in it, and I sure could not find one before. Did you add one in the past few days?
Just curious.
X
|
|
#16

Mar 7, 2010, 06:50 AM
|
 |
|
|
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
|
|
|
nope. no theme provided 404.php - may be something your host sitcks in
|
|
#17

Mar 7, 2010, 07:11 AM
|
 |
|
|
41 posts · Mar 2010
Californian living in Oklahoma City
|
|
|
Ok, Thank you!
X
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
|