csvExport PHP 8.1

8 posts by 3 authors in: Forums > CMS Builder
Last Post: January 30, 2023   (RSS)

By Dave - November 17, 2022

Hi Kenny, 

Thanks for the report.  Can you try this fix and let me know if it works for you?

  • Search for "function _csvExport_escapeAsCSV"
  • Add the second line below: 
function _csvExport_escapeAsCSV($value) {
$value = $value ?? '';

Let me know if that works for you.  Thanks!

Dave Edis - Senior Developer
interactivetools.com

By KennyH - November 18, 2022

Hi Dave - 

Another successful fix! Worked like it should

Thanks,

Kenny

By Dave - November 18, 2022

Ok great, thanks for your help testing that fix.

I've released a new version of the plugin with this patch included for anyone else who needs them in future: 
https://www.interactivetools.com/plugins/csv-export/

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By KennyH - December 8, 2022

Hi Dave - 

There might be another issue that I am facing with php 8.1 and this plugin. It seems that all of my exports now change the characters to default windows encoding instead UTF-8 HTML entities such as:

  • Apostrophes are displayed as don’t  (don't)
  • Double spaces are displayed as Â

I'm not modifying or opening the files after export. Export from one installation and then import to another - so I'm pretty sure it's being generated like this

Kenny

By Dave - December 22, 2022

Hi Kenny, 

Are you still having issues with this?  If so could you fill out a second-level support request and we can take a look? 
https://www.interactivetools.com/support/request/

Thanks!

Dave Edis - Senior Developer
interactivetools.com

csvExport PHP 8.1...was going to report a slightly diff issue, but your v1.06 corrected this...

By Codee - January 26, 2023

Hi Dave,

I was going to report the error: #1467 - UNCAUGHT_EXCEPTION: Cannot access offset of type string on string
/xxx/xxxx.com/xxxAdminxxx/plugins/csvExport_1-04/csvExport/csvExport.php (line 101)
https://xxxx.com/xxxxAdminxxx/admin.php

B U U T...your version 1.06 eliminated the error.

Thank you!

csvExport PHP 8.1...was going to report a slightly diff issue, but your v1.06 corrected this...

By Dave - January 30, 2023

Okay great, let us know if anything else pops up.  Thanks!

Dave Edis - Senior Developer
interactivetools.com