Strict Standards errors in Joomla (such as "Strict Standards: Non-static method should not be called statically" or "Declaration should be compatible") are PHP compatibility warnings caused by older Joomla code running on modern PHP versions.
Update Joomla or suppress Strict Standards
- Update Joomla to the latest version - fixes the root cause
- Temporary workaround: Add to
.user.iniin your site directory:error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
These are cosmetic warnings, not errors. Your site still functions, but the warnings clutter error logs and may display on screen. The same fix applies to JLoader, JParameter, JRegistry, and other J-prefixed class warnings.
The same root cause and fix also cover the older Warning: Parameter 2 to frontpage() expected to be a reference message from Joomla 1.5 and 2.5. It comes from deprecated PHP function signatures in legacy Joomla code. Update Joomla (or migrate to a current version), or suppress the warning in .user.ini as shown above. If you are still on Joomla 1.5 or 2.5, upgrade now: both have been end of life for over a decade and receive no security patches.
See also Magic Quotes Joomla. For PHP version changes, see Change PHP Version.
Joomla 3 reached end of life in August 2023. If you are still on Joomla 3, migrate to Joomla 4 or 5. Unsupported versions receive no security patches.
01. Apply the Fix on Ultra Web Hosting
The permanent fix is to update Joomla so its code matches modern PHP. Joomla 4 and 5 run cleanly on PHP 8.x and do not emit these warnings. Update from the Joomla administrator under Components > Joomla Update, or migrate if you are on a version older than 3.10.
If you cannot update immediately, suppress the warnings at the PHP layer. Create or edit a file named .user.ini in the same directory as your Joomla index.php (usually public_html) and add:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
On our servers the .user.ini change is re-read automatically within a few minutes, so there is no service to restart. The same result is available inside Joomla itself: set Global Configuration > Server > Error Reporting to "None" or "Simple".
Do not leave broad error suppression in place long term on a site you are actively developing, because it also hides genuine errors you would want to see. Treat it as a stopgap until the Joomla update is done.
Need Help Updating?
Open a Support TicketFrequently Asked Questions
Are Joomla Strict Standards warnings dangerous?
No. They are PHP compatibility notices, not fatal errors, so the site keeps working. Their only real downside is that they clutter your error logs and can appear on the page when display_errors is on. The fix is to update Joomla or suppress the notices, not to worry about site damage.
How do I stop Strict Standards warnings from showing on my Joomla site?
Set Global Configuration, Server, Error Reporting to "None" in the Joomla administrator, or add error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED to a .user.ini file in your site's root. Both hide the notices, while updating Joomla removes the underlying cause.
What causes "Non-static method should not be called statically" in Joomla?
Old Joomla extensions and core code call methods in a way that newer PHP versions flag as incorrect. The code still runs, but PHP reports it under E_STRICT or E_DEPRECATED. It is the same root cause behind the JLoader, JParameter, JRegistry, and the legacy "Parameter 2 to frontpage() expected to be a reference" messages.
I am still on Joomla 1.5 or 2.5 - what should I do?
Upgrade as soon as possible. Both have been end of life for over a decade and receive no security patches, so suppressing the warning only hides a symptom on software that is a standing security risk. Plan a migration to Joomla 4 or 5, and back up your site and database before you start.
Quick Recap
- Update Joomla for the proper fix
- Suppress via .user.ini as a temporary measure
- Warnings are cosmetic - Site still works
- Joomla 3 is end of life
- Back up before updating
PHP compatibility · Last updated December 2026 · Browse all PHP Scripts articles
