Title: Export error &#8211; PHP Fatal error
Last modified: October 18, 2021

---

# Export error – PHP Fatal error

 *  Resolved [spyder108](https://wordpress.org/support/users/spyder108/)
 * (@spyder108)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/)
 * Error thrown in the server, we cannot continue. Please check console to see full
   details about the error.
 * WARNING: [pool ourwebsite.com] child 13917 said into stderr: “PHP message: PHP
   Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array,
   null given in /var/www/vhosts/ourwebsite.com/httpdocs/wp-content/plugins/import-
   users-from-csv-with-meta/classes/batch_exporter.php:49”

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14983772)
 * Thanks for reporting.
 * It should be fixed in latest version. Please update.
 *  Thread Starter [spyder108](https://wordpress.org/support/users/spyder108/)
 * (@spyder108)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14984909)
 * I updated and am still getting the error.
    -  This reply was modified 4 years, 7 months ago by [spyder108](https://wordpress.org/support/users/spyder108/).
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14984922)
 * [@spyder108](https://wordpress.org/support/users/spyder108/),
 * Uhm, I have no error… and we have tested in many sites.
 * Which of the vars inside the merge is not an array in your case?
 *  Thread Starter [spyder108](https://wordpress.org/support/users/spyder108/)
 * (@spyder108)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14984956)
 * This is the new error:
 * [19-Oct-2021 10:00:23] PHP Fatal error: Uncaught Error: Non-static method ACUI_Helper::
   get_roles_by_user_id() cannot be called statically in /var/www/vhosts/psychologicalsafetysummit.
   com/httpdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/batch_exporter.
   php:576
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14984962)
 * [@spyder108](https://wordpress.org/support/users/spyder108/),
 * Are you using PHP 8?
 *  Thread Starter [spyder108](https://wordpress.org/support/users/spyder108/)
 * (@spyder108)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14984990)
 * Yes
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14984992)
 * That’s the problem.
 * Anyway, I am going to fix it.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14985151)
 * Solved please update and tell me if some new error raise.
 *  Thread Starter [spyder108](https://wordpress.org/support/users/spyder108/)
 * (@spyder108)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14985241)
 * New error:
 * Console:
    PHP Fatal error: Uncaught TypeError: strlen(): Argument #1 ($str) must
   be of type string, array given in /var/www/vhosts/psychologicalsafetysummit.com/
   httpdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/batch_exporter.
   php:624
 * Log:
 *     ```
       2021-10-19 11:01:08	Error		500	POST /wp-admin/admin-ajax.php?_fs_blog_admin=true HTTP/1.0	https://psychologicalsafetysummit.com/wp-admin/tools.php?page=acui&tab=export	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36	860	Apache SSL/TLS access
   
       2021-10-19 11:01:08	Error	AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: strlen(): Argument #1 ($str) must be of type string, array given in /var/www/vhosts/psychologicalsafetysummit.com/httpdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/batch_exporter.php:624\nStack trace:\n#0 /var/www/vhosts/psychologicalsafetysummit.com/httpdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/batch_exporter.php(598): ACUI_Batch_Exporter->clean_bad_characters_formulas()\n#1 /var/www/vhosts/psychologicalsafetysummit.com/httpdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/batch_exporter.php(581): ACUI_Batch_Exporter->prepare()\n#2 /var/www/vhosts/psychologicalsafetysummit.com/httpdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/batch_exporter.php(455): ACUI_Batch_Exporter->prepare_data_to_export()\n#3 /var/www/vhosts/psychologicalsafetysummit.com/httpdocs/wp-content/plugins/import-users-from-csv-with-meta/classes/export.php(216): ACUI_Batch_Exporter->generate_file()\n#4 /var/www/vhosts/psych...', referer: https://psychologicalsafetysummit.com/wp-admin/tools.php?page=acui&tab=export
       ```
   
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-14985282)
 * OK so, better than this.
 * I am going to prepare a installation with PHP 8, I am going to leave it fixed…
   and then I will come here again with a new version.
 * You can downgrade PHP to 7.4 to make it works while.
 *  Thread Starter [spyder108](https://wordpress.org/support/users/spyder108/)
 * (@spyder108)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-15026727)
 * Just wondering if you have an update on this.
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-15026761)
 * I have fixed it in previous version.
 * You have also a new error message with log into JavaScript console in order to
   get more info to debug your problem.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Export error – PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

## Tags

 * [export](https://wordpress.org/support/topic-tag/export/)
 * [fatal](https://wordpress.org/support/topic-tag/fatal/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 12 replies
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/export-error-php-fatal-error/#post-15026761)
 * Status: resolved