• Resolved tapeter

    (@tapeter)


    I’m having trouble importing a simple spreadsheet (saved in various formats, including CSV, XSL, XSLX). It is throwing this error:

    Fatal error: Call to undefined method PHPExcel_Calculation::unsetInstance() in [location of file] on line 390.

    Any thoughts about what’s going wrong?

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi tapeter,

    It sounds like there may be an issue with your file.

    To test this, can you try importing this file: https://www.etoilewebdesign.com/Screenshots/FAQ_Import_no_cats_or_tags.xlsx

    When attempting to import the file, does the “Fatal error…” message still appear?

    Thread Starter tapeter

    (@tapeter)

    Yes – Getting the following errors:

    Warning: Invalid argument supplied for foreach() in /home/drtimp5/public_html/wp-content/plugins/ultimate-faqs/Functions/EWD_UFAQ_Import.php on line 109
    
    Warning: Invalid argument supplied for foreach() in /home/drtimp5/public_html/wp-content/plugins/ultimate-faqs/Functions/EWD_UFAQ_Import.php on line 114
    
    Fatal error: Call to undefined method PHPExcel_Calculation::unsetInstance() in /home/drtimp5/public_html/wp-content/plugins/ultimate-faqs/PHPExcel/Classes/PHPExcel.php on line 390

    I eliminated the first two errors by adding column heads for Categories and Tags.

    It turns out that your script was still importing the FAQs, just throwing the error. So, I’m not blocked from making progress but it would be nice to figure out exactly what’s going on…

    Hi tapeter,

    Could you let us know what version of PHP you are using?

    When importing, make sure that any categories and tags you are including in the spreadsheet already exist in the plugin, as the import won’t automatically create them.

    Thread Starter tapeter

    (@tapeter)

    5.6.3.1

    I just upgraded to 7.2.1, and I expect that to cure this error, will let you know if otherwise!

    Thanks for your help,
    Tim

    • This reply was modified 8 years, 1 month ago by tapeter.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Import problem: “Fatal Error – Call to undefined method PHPExcel_Calculation’ is closed to new replies.