Support

Admin Tools for WordPress

#40745 PHP fatal error on PHP 8.1 and WP 6.5.3

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.5.3
PHP version
8.1
Admin Tools version
1.6.5

Latest post by nicholas on Monday, 27 May 2024 00:08 CDT

Asav

I had an error updating my site's php version with AdminTools version 1.6.5 (i tried to rollback versions until 1.6.0 and the error continues).

Below is the error log:

PHP Fatal error:  Uncaught Error: Call to a member function downloadAndReturn() on null in /home/wwjesu/public_html/wp-content/plugins/admintoolswp/app/library/transfer/transfer.php:164
Stack trace:
#0 /home/wwjesu/public_html/wp-content/plugins/admintoolswp/app/model/update.php(280): Akeeba\AdminTools\Library\Transfer\Transfer->getFromURL('http://cdn.akee...')
#1 /home/wwjesu/public_html/wp-content/plugins/admintoolswp/helpers/admintoolswpupdater.php(462): Akeeba\AdminTools\Admin\Model\Update->load(true)
#2 /home/wwjesu/public_html/wp-content/plugins/admintoolswp/helpers/admintoolswpupdater.php(124): AdminToolsWPUpdater::getUpdateInfo()
#3 /home/wwjesu/public_html/wp-includes/class-wp-hook.php(324): AdminToolsWPUpdater::getUpdateInformation(Object(stdClass), 'update_plugins')
#4 /home/wwjesu/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array)
#5 /home/wwjesu/public_html/wp-includes/option.php(2368): apply_filters('pre_set_site_tr...', Object(stdClass), 'update_plugins')
#6 /home/wwjesu/public_html/wp-includes/update.php(393): set_site_transient('update_plugins', Object(stdClass))
#7 /home/wwjesu/public_html/wp-includes/class-wp-hook.php(324): wp_update_plugins()
#8 /home/wwjesu/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#9 /home/wwjesu/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#10 /home/wwjesu/public_html/wp-cron.php(191): do_action_ref_array('wp_update_plugi...', Array)
#11 {main}
  thrown in /home/wwjesu/public_html/wp-content/plugins/admintoolswp/app/library/transfer/transfer.php on line 164

The environment infos:

  • WP-Version: 6.5.3
  • PHP-Version: 8.1
  • AdminTools-Version: 1.6.5

 

nicholas
Akeeba Staff
Manager

Is the cURL PHP extension installed and enabled on your site? If not, enable it (ask your host how).

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!