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

    404 page shows code, not page

    I have a problem setting up a 404 page for my site on http://virtualtours.nl. I have made an error page with the article id 235. But when I try to enter a non-existing page on my site, the php code itself is shown in stead of executed:

    if (($this->error->getCode()) == ‘404’) { header(‘Location: /index.php?option=com_content&view=article&id=235’); exit; }

    What could be wrong?

    Ninja Lead Moderator
    #951380

    Hi,

    I got this bug when I login backend of your site with the username and password on thread.

    Warning
    Username and password do not match or you do not have an account yet.

    Please help me it again

    Regards

    pittigeteksten Friend
    #951576

    Okay, I have to be careful not to give away my password in a public post. The second character of the password should be a ‘t’ in stead of an ‘i’.

    Pierre

    Ninja Lead Moderator
    #951658

    I fixed the problem on your site and you will see it from templates/ja_sugite/error.php file with

    <?php
    ..
    ..
    ?>
    pittigeteksten Friend
    #952043

    So the php-tags were missing in error.php?

    Ninja Lead Moderator
    #952066

    So the php-tags were missing in error.php?

    Yes, that’s right

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

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

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