Issue: Plugin lacks support for PHP 8.1
-
Hey!
I have a website running WordPress 6.0.1 and the latest version of your plugin at the time of writing this, being version 1.5.2. I tried upgrading the server the website is running on to be using PHP 8.1 instead of 7.4. However, when I tried accessing the page after upgrading I was greeted by the usual “The Site Is Experiencing Technical Difficulties” message.
I get an error log printed to my debug.log file and if I’m reading it properly, it seems the problem is originating from your plugin’s main file. The output of my debug.log file is as follows:
Stack trace:
#0 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(230): ftp_pwd(NULL) #1 /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php(450): WP_Filesystem_FTPext->cwd() #2 /var/www/html/wp-content/plugins/pods-alternative-cache/classes/Pods/Alternative/Cache/File.php(335): WP_Filesystem_FTPext->is_dir('/var/www/sites/...') #3 /var/www/html/wp-content/plugins/pods-alternative-cache/classes/Pods/Alternative/Cache/File.php(246): Pods_Alternative_Cache_File->get_path_for_file('000001/2/f33/a8...') #4 /var/www/html/wp-content/plugins/pods-alternative-cache/classes/Pods/Alternative/Cache.php(119): Pods_Alternative_Cache_File->get_value('pods_pods_field...', '') #5 /var/www/html/wp-includes/class-wp-hook.php(307): Pods_Alternative_Cache->has_value(false, 'transient', 'pods_pods_field...', 'pods_field_type...', '') #6 /var/www/html/wp-includes/plugin.php(191): WP_Hook->apply_filters(false, Array) #7 /var/www/html/wp-content/plugins/pods/classes/PodsView.php(207): apply_filters('pods_view_cache...', false, 'transient', 'pods_pods_field...', 'pods_field_type...', '') #8 /var/www/html/wp-content/plugins/pods/includes/general.php(2273): PodsView::get('pods_field_type...', 'transient', '', NULL) #9 /var/www/html/wp-content/plugins/pods/includes/general.php(2374): pods_view_get('pods_field_type...', 'transient', '', NULL) #10 /var/www/html/wp-content/plugins/pods/classes/PodsForm.php(1571): pods_transient_get('pods_field_type...') #11 /var/www/html/wp-content/plugins/pods/includes/general.php(2702): PodsForm::register_field_type('pandarepeaterfi...', '/var/www/sites/...') #12 /var/www/html/wp-content/plugins/panda-pods-repeater-field/panda-pods-repeater-field.php(444): pods_register_field_type('pandarepeaterfi...', '/var/www/sites/...') #13 /var/www/html/wp-includes/class-wp-hook.php(307): panda_repeater_safe_activate('') #14 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #15 /var/www/html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #16 /var/www/html/wp-settings.php(461): do_action('plugins_loaded') #17 /var/www/html/wp-config.php(104): require_once('/var/www/sites/...') #18 /var/www/html/wp-load.php(50): require_once('/var/www/sites/...') #19 /var/www/html/wp-blog-header.php(13): require_once('/var/www/sites/...') #20 /var/www/html/index.php(17): require('/var/www/sites/...') #21 {main} thrown in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230 [24-Aug-2022 10:28:50 UTC] PHP Fatal error: Uncaught TypeError: ftp_pwd(): Argument #1 ($ftp) must be of type FTP\Connection, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php:230
From before the PHP upgrade (when the server was running PHP 7.4) I used to get this error message in my debug.log:
24-Aug-2022 11:56:34 UTC] PHP Warning: ftp_pwd() expects parameter 1 to be resource, null given in /var/www/html/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230
It seems it’s been a problem for a while but before PHP 8.1 it only threw a warning and not an error.
If you believe the error is not coming from the Panda Pods Repeater Field plugin, I’d greatly appreciate it if you could point me in the proper direction.
Thanks in advance!
- The topic ‘Issue: Plugin lacks support for PHP 8.1’ is closed to new replies.