-
AuthorPosts
-
pittigeteksten Friend
pittigeteksten
- Join date:
- December 2012
- Posts:
- 58
- Downloads:
- 47
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 1 times in 1 posts
May 31, 2016 at 12:24 pm #936442I have a problem setting up a 404 page for my site on http://virtualtours.nl .
I have made an error page located at: http://virtualtours.nl/index.php/404
And in the .htaccess file, I put the line: ErrorDocument 404 /index.php/404
However, this does not work. When I try to enter a non-existing page on my site (in this example http://virtualtours.nl/e), the following code is shown:
jos-Warning: exception ‘RuntimeException’ with message ‘Unknown column ‘header’ in ‘field list’ SQL=SELECT
new_url
,header
,published
FROM#__redirect_links
WHEREold_url
= ‘http://virtualtours.nl/e‘ LIMIT 0, 1’ in /customers/6/7/f/virtualtours.nl/httpd.www/libraries/joomla/database/driver/mysqli.php:660 Stack trace: #0 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/joomla/database/driver.php(1653): JDatabaseDriverMysqli->execute() #1 /customers/6/7/f/virtualtours.nl/httpd.www/plugins/system/redirect/redirect.php(123): JDatabaseDriver->loadObject() #2 /customers/6/7/f/virtualtours.nl/httpd.www/plugins/system/redirect/redirect.php(57): PlgSystemRedirect::doErrorHandling(Object(JException)) #3 [internal function]: PlgSystemRedirect::handleError(Object(JException)) #4 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/legacy/error/error.php(760): call_user_func(Array, Object(JException)) #5 [internal function]: JError::handleCallback(Object(JException), Array) #6 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/legacy/error/error.php(218): call_user_func_array(Array, Array) #7 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/legacy/error/error.php(179): JError::throwError(Object(JException)) #8 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/legacy/error/error.php(254): JError::raise(1, 404, ‘Artikel niet ge…’, NULL, true) #9 /customers/6/7/f/virtualtours.nl/httpd.www/components/com_content/models/article.php(163): JError::raiseError(404, ‘Artikel niet ge…’) #10 /customers/6/7/f/virtualtours.nl/httpd.www/plugins/system/t3/includes/joomla30/viewlegacy.php(394): ContentModelArticle->getItem() #11 /customers/6/7/f/virtualtours.nl/httpd.www/components/com_content/views/article/view.html.php(42): JViewLegacy->get(‘Item’) #12 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/joomla/cache/controller/view.php(96): ContentViewArticle->display() #13 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/legacy/controller/legacy.php(686): JCacheControllerView->get(Object(ContentViewArticle), ‘display’) #14 /customers/6/7/f/virtualtours.nl/httpd.www/components/com_content/controller.php(113): JControllerLegacy->display(true, Array) #15 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/legacy/controller/legacy.php(728): ContentController->display() #16 /customers/6/7/f/virtualtours.nl/httpd.www/components/com_content/content.php(38): JControllerLegacy->execute(NULL) #17 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/cms/component/helper.php(405): require_once(‘/customers/6/7/…’) #18 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/cms/component/helper.php(380): JComponentHelper::executeComponent(‘/customers/6/7/…’) #19 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/cms/application/site.php(191): JComponentHelper::renderComponent(‘com_content’) #20 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/cms/application/site.php(230): JApplicationSite->dispatch() #21 /customers/6/7/f/virtualtours.nl/httpd.www/libraries/cms/application/cms.php(257): JApplicationSite->doExecute() #22 /customers/6/7/f/virtualtours.nl/httpd.www/index.php(49): JApplicationCms->execute() #23 {main}What does this mean?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 1, 2016 at 4:16 am #936634Hi
Just access backend of your site > Extensions > Manager > Database > Fix database and it’s showing this message in error page:
if (($this->error->getCode()) == '404') { header('Location: /index.php?option=com_content&view=article&id=71'); exit; }
Kindly check the error file which you customised on your site.
pittigeteksten Friendpittigeteksten
- Join date:
- December 2012
- Posts:
- 58
- Downloads:
- 47
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 1 times in 1 posts
June 15, 2016 at 8:50 pm #940909The file has id 70, not 71. Can I change the article id or the 404 page referenten? How?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 16, 2016 at 2:23 am #940980You can modify the ‘error.php’ file in folder of default template on your site and edit ID for correct article.
Check out this documentation for more info: https://docs.joomla.org/Creating_a_Custom_404_Error_Page
pittigeteksten Friendpittigeteksten
- Join date:
- December 2012
- Posts:
- 58
- Downloads:
- 47
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 1 times in 1 posts
July 13, 2016 at 6:53 pm #949821That does not work either, I changed the id to that of an article containing an error message. The result just shows the php code, not the article, see below.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 19, 2016 at 7:28 am #951387Kindly follow this topic, my colleague will help you out: https://www.joomlart.com/forums/topic/404-page-shows-code-not-page/
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by Saguaros 8 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum