I want to show a custom error page on Joomla for error messages like
Could not connect to database server
How can this be done ?
you can find joomla error page's template in /templates/system/error.php
You can copy this file to your template's root folder and edit it.
Related
What is error free CSS/XHTML in joomla templates? I see that all the time, but I am not sure if that means the 404 page or not and how can I create one?
I think in this content this would be referring to 'valid' CSS and HTML.
You can validate CSS here:
https://jigsaw.w3.org/css-validator/
And HTML here:
https://validator.w3.org/
For the second part of the question creating an error document, you can add 'error.php' to the root of your template folder. This template file will be loaded instead of index.php if there is a 404, etc error. Have a look at default 'protostar' for an example of the implementation. For more information refer to: https://docs.joomla.org/Custom_error_pages
I'm working on a project based on the October CMS, with Laravel 5.0.35.
I'm trying to override the 404 page.
The current 404 page is located here:
modules\cms\views\404.php
... and is served by:
modules\cms\classes\Controller.php
As you can see, both the controller and the view are inside modules. This folder is a dependency folder and its content should not be altered. The best approach I see here is to use an override.
You can see the October CMS structure here:
https://github.com/octobercms/october
Do you have any ideas or suggestions on how to achieve this?
Thanks.
'If the theme contains a page with the URL /404 it is displayed when the system can't find a requested page.'
http://octobercms.com/docs/cms/pages#404-page
Essentially just create a page withe the URL /404 and it will use this by default. The same can be done for an error (500) page, just use /error.
I'm using Joomla 2.5 and the backend is not shown correctly. It seems that the template is not loaded correctly.
This is my page:
http://www.fussball.tsg-kastel.de/administrator/
The page as such is shown correctly but as you see, the backend isn't...
Try doing this:
Rename the admin templates folder on the host server (for a backup)
FTP transfer of an admin template folder from another Joomla site and then copy it from the FTP location using a file manager into the admin templates folder.
You could have a corrupt file or just missing some files from installation. This has happened to people before and by doing these two steps it seemed to solve their issue.
Hope this works out for you.
You probably have a fatal error. Go to configuration.php and change error reporting to development. This will render the error to the browser (alternatively check your apache error log). I predict you probably have a plugin problem -- perhaps your host updated PHP version for example. Whatever it is, deal with that problem.
I am using Magento CE v1.7
In both cases, this is what I see:
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 376160589307
Go to your root magento installation folder and locate var/report folder and look for the file with name 376160589307. Please open it to view the exact error.
If you want to display it in browser itself,
Go to your root magento installation folder and locate /errors folder. There you’ll find a
local.sample.xml or sample.local.xml and rename it to local.xml in same location
I am trying to create a custom 404 error page. The instructions that I found say to create a .htaccess empty text document when I do that Windows tells me to put a file name on it. Can someone tell what I need to do or point me to a tutorial for making custom 404 error pages?
It seems like you're just trying to make the page itself (according to the commentary on the question). To create the page just make a file of any name .html or whatever format you wish to use (.php for php for example) and write it up using your language of choice. Once you create the 404 page you need to specify it's location, assuming you're uploading this to a site of yours. This should be editable in a control panel like CPanel for example. If not, you'll need to edit your apache config to specify it's location or make and upload an .htaccess file to specify it's location.
The problem is that Windows Explorer doesn't let you create file with name .htaccess. Instead of creating the file with Windows Explorer, open a Notepad and save the file with name .htaccess. Don't forget to change "Save as type" to "All Files (*.*)", otherwise it will add .txt extension to it.
Assuming you are using Apache and .htaccess is not activated you use
# this is in .htaccess in the root directory of the webspace
ErrorDocument 404 /url/to/error/page.html