can be seen repetitively on my error_log within the Joomla directory on my site and also the administrator directory.
(should be no errors in the error_log)
[21-Nov-2019 14:39:00 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgSystemCanonical has a deprecated constructor in /public_html/plugins/system/canonical/canonical.php on line 17
OS: Linux n
PHP: 7.2.24
MySQLi: 5.6.45
Time: 14:50
Caching: Disabled
Gzip: Enabled
Just wanted to report this, not sure if its something urgent or not, but I'd like to learn if there is a way to fix that?
Thanks for the reply.
Is there a way to learn what extension it could be?
Or (since I don't install much extensions to Joomla) is there a quick way to list all the extensions that I've installed in the ACP?
Through Extension Manager. The extension is System - Canonical plugin (could be named differently). If update isn't available, you can solve this issue by changing plgSystemCanonical
on line 17 in plugins/system/canonical/canonical.php
to __construct
. Though if the plugin is not maintained anymore, more issues could pop up in the future.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-11-21 15:31:09 |
Closed_By | ⇒ | SharkyKZ |
Closed_By | SharkyKZ | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/27118
Closing as non-core issue.
Okay, I found the plugin and it's called: System - Canonical -- but I don't recall if I was the one that installed that -- unless it came bundled with something else?
Is this something that belongs to Joomla? I wonder? So if it is a Joomla plugin that may have been there since an older Joomla version, would it be best to remove it or disable it? I mean who would I report this to?
Oh, here is more info about it, next to that file I found a XML file with the developer's info:
<?xml version="1.0" encoding="utf-8"?> <extension version="3.1" type="plugin" group="system" method="upgrade"> <name>System - Canonical</name> <author>StyleWare</author> <creationDate>2015-12-01</creationDate> <copyright>Copyright (C) 2010 - 2015 StyleWare.EU. All rights reserved.</copyright> <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license> <authorEmail>paypal@styleware.eu</authorEmail> <authorUrl>www.styleware.eu</authorUrl> <version>3.1.2</version> <description>Content plugin that puts canonical tag to all the correct URL for content items.</description> <files> <filename plugin="canonical">canonical.php</filename> </files> </extension>
That us a notice from an extension that you have installed. You should contact the developer of that extension to see if they have an update etc.