• Resolved colmanbyrne

    (@colmanbyrne)


    Getting PHP fatal error on csv import

    I not that some of the dates in the data im trying to import as null , no entry , coudl this be causing the issue ?

    PHP Fatal error: Uncaught Error: Call to a member function format() on boolean in D:\Projects\wpdataaccess\wp-content\plugins\wp-data-access\WPDataAccess\CSV_Files\WPDA_CSV_Import.php:289
    Stack trace:
    #0 D:\Projects\wpdataaccess\wp-content\plugins\wp-data-access\WPDataAccess\CSV_Files\WPDA_CSV_Import.php(90): WPDataAccess\CSV_Files\WPDA_CSV_Import->show_body_import()
    #1 D:\Projects\wpdataaccess\wp-content\plugins\wp-data-access\WPDataAccess\CSV_Files\WPDA_CSV_Import.php(75): WPDataAccess\CSV_Files\WPDA_CSV_Import->show_body()
    #2 D:\Projects\wpdataaccess\wp-content\plugins\wp-data-access\admin\class-wp-data-access-admin.php(570): WPDataAccess\CSV_Files\WPDA_CSV_Import->show()
    #3 D:\Projects\wpdataaccess\wp-content\plugins\wp-data-access\admin\class-wp-data-access-admin.php(560): WP_Data_Access_Admin->import_csv()
    #4 D:\Projects\wpdataaccess\wp-includes\class-wp-hook.php(287): WP_Data_Access_Admin->data_explorer_page(”)
    #5 D:\Projects\wpdataaccess\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #6 D:\Proj in D:\Projects\wpdataaccess\wp-content\plugins\wp-data-access\WPDataAccess\CSV_Files\WPDA_CSV_Import.php on line 289

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter colmanbyrne

    (@colmanbyrne)

    OK if I remove all dates from the mapping of the csv , the import is successful , although without the dates , not an issue as I develop , but will need to understand why to be able to import most u[p to date info form existing table

    Plugin Author Passionate Programmer Peter

    (@peterschulznl)

    Hi @colmanbyrne,

    Strange issue! The plugin was checking for null values but the null values were stored as ‘null’. 🙈 I fix it and added a patch. You can either wait for the next release or patch your current installation. Please follow these steps to install the patch:
    https://wpdataaccess.com/docs/documentation/updates/patches/

    Thank you for reporting this bug! 😊

    Best regards,
    Peter

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

The topic ‘CSV import error’ is closed to new replies.