1. roderic
  2. RO CSVI
  3. Monday, 29 April 2024
  4.  Subscribe via email
Joomla 5.1 / RO 8.10.0

I get this message when I try to upload a XLSX file. Used to work before in J4. Also still works when using cronjob. Just not when trying to upload manually.


{"error":true,"process":false,"url":"administrator\/index.php?option=com_csvi&view=templates","message":"Failed to start the session because headers have already been sent by xx/\/administrator\/components\/com_csvi\/assets\/vendor\/phpoffice\/phpspreadsheet\/src\/PhpSpreadsheet\/Style\/NumberFormat.php\" at line 476."}


Also the following message is in there many times:


Deprecated: Use of "self" in callables is deprecated in /xx/administrator/components/com_csvi/assets/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat.php on line 502


I know it's not a real issue as it's just a deprecated warning, but it does make it harder to find the real errors. Perhaps easy to fix?

Cheers
Accepted Answer
Accepted Answer Pending Moderation
Hello Roderic,

So I had another look at this and I believe it has been solved now. Reproducing the problem was easy luckily and the solution not too hard. The solution is to load the classmaps as usually loaded by the compatibility plugin. RO CSVI only loads them if the compatibility plugin is enabled.

The patch has been installed on the test site you provided earlier and I have attached it here in case you want to use it on another site.
Attachments (1)
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.