• Resolved maddoctor

    (@maddoctor)


    I’m having this error, that I have no idea how to troubleshoot:

    PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given

    Stack trace:

    0 /httpdocs/wp-content/plugins/wp-all-import/controllers/admin/import.php(2797): fwrite()

    1 /httpdocs/wp-content/plugins/wp-all-import/plugin.php(622): PMXI_Admin_Import->process()

    2 /httpdocs/wp-includes/class-wp-hook.php(324): PMXI_Plugin->adminInit()

    3 /httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

    4 /httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()

    5 /httpdocs/wp-admin/admin.php(175): do_action()

    Any ideas why it’s giving a bool instead of a resource? I tried de-activating and re-activating the plugin, but it doesn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is your php version new enough? Older versions may not have the resource data type. So, it is being converted internally to a bool.

    Thread Starter maddoctor

    (@maddoctor)

    I’m using PHP 8.1.29 atm, isn’t it enough?

    Plugin Author WP All Import

    (@wpallimport)

    Hi @maddoctor,

    This means that the import history log file can’t be written to. Sometimes that can happen due to restrictions in your hosting environment. Please try setting the “Log Storage” setting to 0 via All Import ? Settings to see if that fixes it.

    In the meantime, I will report this to our dev team so we can look into a fix for it in a future release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Argument must be of type resource, bool given’ is closed to new replies.