test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • pittigeteksten Friend
    #936442

    I 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 WHERE old_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 Moderator
    #936634

    Hi

    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 Friend
    #940909

    The file has id 70, not 71. Can I change the article id or the 404 page referenten? How?

    Saguaros Moderator
    #940980

    You 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 Friend
    #949821

    That 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.

    screenshot

    Saguaros Moderator
    #951387

    Kindly follow this topic, my colleague will help you out: https://www.joomlart.com/forums/topic/404-page-shows-code-not-page/

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 5 replies, has 2 voices, and was last updated by  Saguaros 8 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum