Support

Admin Tools

#29500 Error Message

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Wednesday, 16 May 2018 17:17 CDT

mba90006
I purchased Admin Tools and Akeeba Back Pro versions not too long ago... and I've been periodically getting two deprecation error message on my development site (see below). If you can give me the code snippets to update these files I can make the appropriate edits....thanks.

ERROR 1
Message: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead Line 82 Location: D:\xampp\htdocs\mysite\plugins\system\admintools\autoloader.php

Code Snippet
// Change from camel cased (e.g. FeatureFoobar) into a lowercase array (e.g. 'feature','foobar')
$class = preg_replace('/(\s)+/', '_', $class);

---AND---

ERROR 2 (Not sure if this came from Admin Tools or Akeeba Backup)
Message: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead Line 78 Location: D:\xampp\htdocs\mysite\libraries\fof\autoloader\fof.php

Code Snippet
// Change from camel cased (e.g. ViewHtml) into a lowercase array (e.g. 'view','html')
$class = preg_replace('/(\s)+/', '_', $class);

tampe125
Akeeba Staff
Hello,

are you sure that such messages come from those files?
As you can see there isn't any /e modifier applied to the regular expression.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

mba90006
Yes...im sure...the php error message gave those file locations. The code snippet in the first ticket were taken from those files.

Regards

tampe125
Akeeba Staff
I'm sorry but I can't replicate it in any way.
As you can see, the regular expression we're using has no /e modifier, so I can't understand from where it's getting the notice.
However I have a suspicion: the regular expression engine is a black box for PHP, too. PHP simply passes the arguments to the RegEX engine and fetches its result. It's not the first time that some version of PHP in some platforms perform differently.
Moreover PHP under Windows is a strange beast: since I suspect that's simply a local development server, I'd suggest you to simply ignore it, since when you'll go live there will be no problems.
We never ever had another report about this issue from all other customers.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!