500 error when download excel
-
Hi. When I try to download Excel from the link I see 500 error in console:
http://joxi.ru/YmEq5KKcwP3Ynm
What’s wrong?
And Excel from the top chart downloads normally.
Visualizer version 3.7.0.
Thanks.The page I need help with: [log in to see the link]
-
Hi @nideo!
Thanks for choosing Visualizer!
You could try to create a separate page and add that chart there. If the issue doesn’t appear on that separate page, please provide us the CSV file you use to create that chart so we can check it on our end.
Thank you!
-
This reply was modified 4 years, 7 months ago by
luciamarinescu.
Hi @luciamarinescu
That chart doesn’t work on a separate page too. It’s the same error.
Here is the link to csv: https://drive.google.com/file/d/1Yfyxc0gcJ1oGjAUIGf2YWbhqPjVNy7qX/view?usp=sharingHi @nideo!
I created a chart on my test instance using the CSV file you provided and it downloaded as expected for me, as you can see here, and no errors appeared in the console. This means the issue could be caused by something from your environment. You could try to backup your site, deactivate all plugins except Visualizer and check if the issue is solved this way. If it is solved, it means it was caused by a plugin conflict and you can reactivate the plugins one by one until you find the guilty plugin and replace it with an alternative one.
I hope this helps!
Have a nice day!
@luciamarinescu, I checked error log and saw the description:
feedlot.ru [Thu Oct 21 23:50:51 2021] [php7:error] [pid 69510] [client 217.172.18.156:0] PHP Fatal error: Uncaught PhpOffice\\PhpSpreadsheet\\Exception: Maximum 31 characters allowed in sheet title. in /home/p/pkanardovg/public_html/wp-content/plugins/visualizer/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php:470\nStack trace:\n#0 /home/p/pkanardovg/public_html/wp-content/plugins/visualizer/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(855): PhpOffice\\PhpSpreadsheet\\Worksheet\\Worksheet::checkSheetTitle('%d0%b8%d0%bc%d0...')\n#1 /home/p/pkanardovg/public_html/wp-content/plugins/visualizer/classes/Visualizer/Module.php(340): PhpOffice\\PhpSpreadsheet\\Worksheet\\Worksheet->setTitle('%d0%b8%d0%bc%d0...')\n#2 /home/p/pkanardovg/public_html/wp-content/plugins/visualizer/classes/Visualizer/Module.php(246): Visualizer_Module->_getExcel(Array, '\\xD0\\x98\\xD0\\xBC\\xD0\\xBF\\xD0\\xBE\\xD1\\x80\\xD1\\x82 \\xD0\\xB2...')\n#3 /home/p/pkanardovg/public_html/wp-content/plugins/visualizer/classes/Visualizer/Module/Frontend.php(211): Visualizer_Module->_getDataAs(16443, 'xls')\n#4 /home/p/pkanard in /home/p/pkanardovg/public_html/wp-content/plugins/visualizer/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php on line 470, referer: https://feedlot.ru/category/market-dynamics/va1000/The problem is in sheet title. If I make a cyrillic sheet title (Объем импорта витамина А1000 в Россию), then I become this error.
Sheet title in English works well: http://joxi.ru/52aJp55sEoaZ6A.
Looks strange because the top chart with cyrillic sheet title works normally: http://joxi.ru/823gY99h9Lb462.Hello @nideo ,
Thank you for providing the error log!
From what I am seeing the error states that there cannot be more than 31 characters in the sheet title which explains why this sheet title does not work (contains 36 characters) whilst the one you mentioned at the end of your reply works (contains 28).
Can you please test this spreadsheet with a different title (title must contain less than 31 Cyrillic characters including spaces) and see if the data imports correctly?
Based on the answer we might have to forward this issue to our developers and see why this is happening.
Thank you for your cooperation and we’ll await your response!
Hi @mateithemeisle.
I tried to write less then 31 Cyrillic characters but unsuccessfully.
The problem was solved by installing of the plugin Webcraftic Cyr to Lat reloaded.Hi @nideo!
We’re glad to hear you managed to fix the issue in the meantime! Thanks for letting us know!
Have a nice day!
-
This reply was modified 4 years, 7 months ago by
The topic ‘500 error when download excel’ is closed to new replies.