Fatal error when using PHP8.0 with multisite

Posted in: Newspaper
Post count: 19

When using PHP7.3 in multisite, it works normally, but Fatal error occurs in PHP8.0.
Is this a theme bug?
Any solution?
The error is as follows.

Fatal error: Uncaught TypeError: ftp_fget(): Argument #1 ($ftp) must be of type resource, null given in /home/hogehoge/hogehoge/wp-admin/includes/class-wp-filesystem-ftpext.php:146 Stack trace: #0 /home/hogehoge/hogehoge/wp-admin/includes/class-wp-filesystem-ftpext.php(146): ftp_fget() #1 /home/hogehoge/hogehoge/wp-content/themes/Newspaper/includes/wp-booster/wp-admin/plugins/class-tagdiv-theme-plugins-setup.php(351): WP_Filesystem_FTPext->get_contents() #2 /home/hogehoge/hogehoge/wp-content/themes/Newspaper/includes/wp-booster/wp-admin/plugins/class-tgm-plugin-activation.php(1977): tagdiv_theme_plugins_setup->theme_plugin_has_update() #3 /home/hogehoge/hogehoge/wp-content/themes/Newspaper/includes/wp-booster/wp-admin/plugins/class-tgm-plugin-activation.php(1836): TGM_Plugin_Activation->does_plugin_have_update() #4 /home/hogehoge/hogehoge/wp-content/themes/Newspaper/includes/wp-booster/wp-admin/plugins/class-tgm-plugin-activation.php(422): TGM_Plugin_Activation->is_tgmpa_complete() #5 /home/hogehoge/hogehoge/wp-includes/class-wp-hook.php(308): TGM_Plugin_Activation->init() #6 /home/hogehoge/hogehoge/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #7 /home/hogehoge/hogehoge/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /home/hogehoge/hogehoge/wp-settings.php(617): do_action() #9 /home/hogehoge/hogehoge/wp-config.php(105): require_once(‘…’) #10 /home/hogehoge/hogehoge/wp-load.php(50): require_once(‘…’) #11 /home/hogehoge/hogehoge/wp-admin/admin.php(34): require_once(‘…’) #12 /home/hogehoge/hogehoge/wp-admin/plugins.php(10): require_once(‘…’) #13 {main} thrown in /home/hogehoge/hogehoge/wp-admin/includes/class-wp-filesystem-ftpext.php on line 146

Post count: 27744

Hello,

Please let me know what version of the theme you have.
Usually, if you have the last version 12.1.1, there should be no problems.

Thank you!

Post count: 19

Hi.
Thank you for your prompt response.
The theme version is the latest 12.1.1.
I’m still having problems with the site, so I’m asking here.

Thank you.

Post count: 27744

Hello,

Please let only the tagdiv plugins be activted and check if this error appears after.

Thank you!

Post count: 19

Hi.

I deactivated all plugins except tagdiv as you instructed but the result is the same.
Anything else to try?

Thank you.

Post count: 20

@Ryu234 I’m currently using Newspaper 12.1.1 and php8.1 without any issues.

Did you try another theme other than tagDiv to see if it’s a theme issue or a hosting config issue?

Post count: 19

Hi.

I tried it.
It’s normal for other themes.
Also disabling just the tagDiv Composer works fine.
And I have the same server, same configuration, Newspaper theme on a single site and it works fine.

Thank you.

Post count: 27744

Hello @Ryu234,

So you have more websites that use the Newspaper theme, and this problem does not appear only on this multisite?
Please let me know if you use the child theme.

Thank you!

Post count: 19

Hi

This issue is happening only with multisite.
I am using child theme.
If I am using a child theme, is there any workaround?

Post count: 27744

Hello,

Please try to use the main theme and check the result.

Thank you!

Post count: 19

Hi

I tried using the main theme as you instructed, but I get the same error.
Is there any other workaround?

Post count: 19

Hi.

There was a post saying that there is no problem using PHP8.1, so I will upgrade to PHP8.1 and try it.
I will report the results here at a later date.

Also, if you have any other workarounds, please let me know.

Thank you.

Post count: 27744

Hello,

We can take a look and check the problem.
Please get in touch with us via email at contact@tagdiv.com and provide the wp-admin access and the cPanel access and include a link to this topic.

Thank you!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.