When I switch my joomla site to another server, it shows this error:
Non-static method JApplication::getMenu() should not be called statically,
assuming$this from incompatible context
This is the result of the PHP error reporting.
Joomla contains some coding issues, some more subtle than others and those trigger Strict and Notice messages.
You can handle this by telling the PHP engine to hide those messages by editing the following directive in your php.ini file :
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Just use Akeeba back to get your joomla site backup. & Using kickstart file set up it where ever you want. Its very easy & simple.
Related
I am completely new in joomla.
I have website e.g mysite.com
When I visit this site it's opening the url like bellow :
mysite.com/index.php/de/
When I go to this link
mysite.com/index.php/de/abskds
It's successfully showing 404 page.
But how can I show this 404 error page when someone go to bellow link:
mysite.com/abskds
Many thanks :)
This can be done in one of two ways
Method 1
Open your configuration file (configuration.php) and look for the line public $error_reporting = ‘default’;You will then need to change this to the following based on your needs:
E_ALL | E_STRICT – All errors, warnings, notices, and strict
standards will be displayed on the website
E_ALL – All errors, warnings, notices will be displayed on the
website
E_ALL & ~E_NOTICE – All errors, warnings, but no notices will be
displayed on the website
E_ALL & ~(E_NOTICE|E_WARNING) – All
Errors. No warnings or notices will be displayed on the website;
0 – No error reporting at all
Method 2
In your Admin Panel, navigate through Global Configuration >> Server tab >> Error Reporting. Choose an option as follows:
System Default: Joomla will inherit error reporting defaults set in the server (usually in php.ini file).
Simple: Overrides server settings to give a basic report with warnings only about the fatal errors.
Maximum (Recommended): Overrides server settings to gives full report with all the errors, warnings, notices, deprecated functions call, strict standards on the website.
None: switched off
Go to administrator.
In global configuration you'll see a SEO Settings.
Search Engine Friendly URLs Yes
And
Use URL Rewriting Yes - Follow instruction how to modify files according wich server you use.
Warning when you enable these all link with index.php will be modifies.
http://mywebsite/index.php/de
will go to:
http://mywebsite/de
Hope these help.
First go to admin panel > Global Configuration and turn mode_rewrite on.
Then go to your root folder (Joomla! Installation Folder) and rename the htaccess.txt to .htaccess
Try as I might, I can't get proper error messages in Joomla 3.1.5. No matter what I do, I get redirected to a nice "Error 0" page which doesn't tell me what happened where. I've tried setting error reporting to both maximum and developer in the admin console, and turning on developer mode. Is there any way to get proper error messages instead of friendly error messages to display in Joomla 3.1.5?
If you're not seeing the errors it's likely that you have an extension installed that is calling set_exception_handler(), while I don't have an STS 3.1 version anywhere to test the 3.2's we do have don't have any issues with reporting errors. (And as far back as I can remember, I don't believe Joomla core calls set_exception_handler().
We write Joomla extensions for clients as our primary business and I can tell you that the error reporting works. We have found in the past that some more dodgy extensions install their own exception handlers to hide issues in their code which is why we always develop and test on clear default Joomla installations.
Updated
Just saw your answer…
If that work's it means something is definitely calling set_exception_handler() which I don't believe is Joomla, I don't have have STS 3.1 installation but my current 1.5, 2.5 and 3.2's do not call set_exception_handler() in the Joomla core.
Few thoughts:
Check in Joomla the PHP information - see the error reporting local
value.
Check for a local php.ini file
Check if there is any ini_set code in your template...
Try adding a code like below, in your template's index.php file.
code:
<?php
ini_set('display_errors', 'on');
ini_set('error_reporting', E_ALL & ~E_NOTICE);
?>
Figured it out -- calling restore_exception_handler() gets rid of the poxy Joomla page and lets me read the text of the error.
i tried to search, but couldn't find anything.
Here is the problem, i've just formated my pc, reinstalled wamp and i want to put my site back to work on localhost but i'm having an error with the database communication.
I don't know if i'm forgetting something (clearly i'm forgetting something), but i uploaded the database joomla was using before i formated the pc and copy all the files on the www folder in wamp.
What the hell i'm doing wrong? Do i need to reinstall joomla?
I am pretty sure you're previous WAMP server was running PHP 5.3 and you're now running PHP 5.4
In you're php.ini file, change the following line:
error_reporting = E_ALL
to this:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
This won't display the error, but it will log them
The error in your comment is the result of PHP reporting strict errors.
Joomla contains some coding issues, some more subtle than others and those trigger Strict and Notice messages.
You can handle this by telling the PHP engine to hide those messages by editing the following directive in your php.ini file :
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
I am currently running Joomla 1.5, I have moved my site to a new domain and thought I had foloowed the procedure correctly. But now my menus are gone and it seems like articles are not showing up in their proper modules. Other than that the components i was using are now giving me a 404 component not found error. Does anyone know why this is or how I can fix this? Please I really need some help or direction....
Thanks
Here is my link: http://davidjamesmedia.ca
Make sure you check the following things:
Ensure you made the correct database setting changes in the configuration.php
Ensure you server is running PHP 5.2+
Make sure your MySQL version is arounf 5.0+ but also not too high such as 5.5.24 this can cause some problems with depreciated functions.
Also make sure your server has Apache mod_rewrite extension installed if you were using SEF before else you can turn SEF off in the configuration.php
How can I implement this script found on w3schools in Joomla 1.5? Ajax Database
I tried to make it work for Joomla and I get this error:
Not Found
The requested URL /component/virtuemart/getcustomer.asp was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Thank you.
Your server is complaining that it cannot find the file /component/virtuemart/getcustomer.asp, if you check the code it is referenced on the bottom:
xmlhttp.open("GET","getcustomer.asp?q="+str,true);
So you need to add the server page as well. However the code given in that example (under the title "The AJAX Server Page") is ASP code so it won't work(unless your server both supports ASP & PHP, very unlikely).
In short that example won't work for you. You need to check the other example:
http://www.w3schools.com/php/php_ajax_database.asp
You need to add both the html page & php page.