Support

Admin Tools for WordPress

#39014 Timezone Problem with Admintools after transfer to new server with AkeebaBackup

Posted in ‘Admin Tools for WordPress’
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

WordPress version
6.2.2
PHP version
8.1
Admin Tools version
1.6.1

Latest post by nicholas on Thursday, 25 May 2023 04:03 CDT

deranaloge

hi,
after transferring the site to the live server with akeeba backup, i get the following error in the dashboard.

 Deprecated: Return type of Akeeba\AdminTools\Library\Date\Date::setTimezone($tz) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/www/web****/html/wp-content/plugins/admintoolswp/app/library/date/date.php on line 236

can you help me here?
thanks in advance

Harald

 

 

deranaloge

this error only occurs when enabling wp_debug is true. :)

greetings

nicholas
Akeeba Staff
Manager

When you enable WP_DEBUG it displays all deprecated notices. These are simple notices produced by PHP about things which will change in future version of PHP.

This particular deprecation notice is there since PHP 8.1. It cannot be fixed until we drop PHP 7 compatibility from our software. This will only happen when PHP 9 is released. According to the current release plan for PHP, this won't happen until December 2025 at the earliest.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

deranaloge

Hi,
ah okay then that's no problem. Thanks for the quick reply.
Have a nice day.
Greetings
Harald

nicholas
Akeeba Staff
Manager

You're welcome!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!