Trentide Posted January 8, 2007 Share Posted January 8, 2007 After adding a contribution to my site, I can't access a FAQ's page I created a while ago. It was working fine up to that point. Here's what I've done to try to fix it: 1) Created a file in includes/languages/english/ called faqs.php. Here's the code: define('NAVBAR_TITLE', 'FAQ\'s'); define('HEADING_TITLE', '<img src="../images/Titles/title_faq.gif" width="79" height="24">'); define('TEXT_INFORMATION', ' 2) Created a file in catalog/ called faqs.php. Here's the code: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_FAQS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_FAQS)); 3) Added this code to filenames.php: define('FILENAME_FAQS', 'faqs'); And that's it!! Here's some other info, though. When I click on the "FAQS" link in my info box. It takes me to www.website.com/faqs and not www.website.com/faqs.php. Here's the error: Not Found The requested URL /faqs was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.37 Server at subcitizen.com Port 80 When I go to www.website.com/faqs.php I get this error: Warning: main(includes/languages/english/faqs) [function.main]: failed to open stream: No such file or directory in /home/subcitiz/public_html/faqs.php on line 15 Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/faqs' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/subcitiz/public_html/faqs.php on line 15 Thanks for looking. I've spent all day at this and need a pair of fresh eyes. Thanks Again. Jason Link to comment Share on other sites More sharing options...
jonquil Posted January 8, 2007 Share Posted January 8, 2007 1) Created a file in includes/languages/english/ called faqs.php. Here's the code: define('NAVBAR_TITLE', 'FAQ\'s'); define('HEADING_TITLE', '<img src="../images/Titles/title_faq.gif" width="79" height="24">'); define('TEXT_INFORMATION', ' Don't know if this a typo here or in your file: define('TEXT_INFORMATION'); 3) Added this code to filenames.php: define('FILENAME_FAQS', 'faqs'); define('FILENAME_FAQS', 'faqs.php'); jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
Trentide Posted January 9, 2007 Author Share Posted January 9, 2007 Thanks jonquil for that info. I made the changes you specified and still can't seem to get my FAQS page right. Is there anything else I need to do? I'm really struggling with this. Thanks For Your Help, Jason Link to comment Share on other sites More sharing options...
Trentide Posted January 9, 2007 Author Share Posted January 9, 2007 I did it after all!! I think I just reuploaded all the pages again and it worked! Thanks for your help! Jason Link to comment Share on other sites More sharing options...
jonquil Posted January 9, 2007 Share Posted January 9, 2007 :thumbsup: It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.