buzzworm Posted September 3, 2014 Share Posted September 3, 2014 (edited) Hi, I'm using 1.6.0.9 and I noticed the following problem with the csv export feature: (note: sensitive info replaced with xxxxx's) 1) When exporting customers, extra html and apparently linebreaks are included on the data lines which screws up the csv file e.g., "516","","xxxxxxx","xxxxxx","[email protected]","","1","<a class="list-action-enable action-enabled" href="index.php?tab=AdminCustomers&id_customer=516&changeNewsletterVal&token=xxxxxxxxxxxxxx"> <i class="icon-check"></i></a>","<a class="list-action-enable action-enabled" href="index.php?tab=AdminCustomers&id_customer=516&changeOptinVal&token=xxxxxxxxxxxxxx"> <i class="icon-check"></i></a>","2014-09-01 19:54:22","2014-09-02 16:03:58", 2) When exporting orders, no page is loaded at all. For example, Firefox shows this error: This webpage is not availableLess The webpage at http://www.yorkshireyarns.com/adminxxxx/index.php?controller=AdminOrders&exportorder&token=xxxxxxxxxxxxxx might be temporarily down or it may have moved permanently to a new web address. Error code: ERR_INVALID_RESPONSE Edited September 3, 2014 by buzzworm (see edit history) Link to comment Share on other sites More sharing options...
tonithomas Posted September 3, 2014 Share Posted September 3, 2014 Same trouble with me too! Happnd when i updated from the previous version yesterday...Any solutions?? Link to comment Share on other sites More sharing options...
prestaden Posted October 18, 2014 Share Posted October 18, 2014 ...and same trouble here. Link to comment Share on other sites More sharing options...
afshop Posted October 21, 2014 Share Posted October 21, 2014 ...and same trouble here. I have the same error me too. Did you fix it? thanks Angela Link to comment Share on other sites More sharing options...
afshop Posted October 23, 2014 Share Posted October 23, 2014 Hi, the solutions of the problem in this link: https://github.com/PrestaShop/PrestaShop/commit/006dcbee13a492d0cad566dc9ea634e100fc8b00 1 Link to comment Share on other sites More sharing options...
jaychennai Posted October 27, 2014 Share Posted October 27, 2014 is that the solution ??? i think that has to do something with pdf Link to comment Share on other sites More sharing options...
nickfromtq Posted November 13, 2014 Share Posted November 13, 2014 Did anyone manage to resolve this issue. ? Link to comment Share on other sites More sharing options...
afshop Posted November 13, 2014 Share Posted November 13, 2014 Did anyone manage to resolve this issue. ? Hi I solved this issue with this link: https://github.com/PrestaShop/PrestaShop/commit/006dcbee13a492d0cad566dc9ea634e100fc8b00 is that the solution ??? i think that has to do something with pdf Yes it's the solutions. I did the same changes and now the export in csv works. 1 Link to comment Share on other sites More sharing options...
sjaakie3 Posted November 17, 2014 Share Posted November 17, 2014 Yes it's the solutions. I did the same changes and now the export in csv works. It really is the solution, works great now. Link to comment Share on other sites More sharing options...
fherrard Posted November 18, 2014 Share Posted November 18, 2014 hello I have applied the patch but I still have this error csv file <a class=list-action-enable action-enabled" href="index.php?tab=AdminCustomers& Thank you for help Link to comment Share on other sites More sharing options...
AzerT1 Posted December 1, 2014 Share Posted December 1, 2014 Hello I've got the same issue, but if I've try your patch but that broke all the admin, i've got a white page. I'm using last version of PrestaShop. Link to comment Share on other sites More sharing options...
internetespecialista Posted December 2, 2014 Share Posted December 2, 2014 Me too, I receive an empty page. Prestashop 1.6.09 Link to comment Share on other sites More sharing options...
David Eschmeyer Posted December 4, 2014 Share Posted December 4, 2014 Hi I solved this issue with this link: https://github.com/PrestaShop/PrestaShop/commit/006dcbee13a492d0cad566dc9ea634e100fc8b00 Yes it's the solutions. I did the same changes and now the export in csv works. nice, works perfectly now. Link to comment Share on other sites More sharing options...
zwagger Posted December 9, 2014 Share Posted December 9, 2014 I made the changes from the given link, but it breakes my BO too.. I only get a white empty page in chrome .. Link to comment Share on other sites More sharing options...
runningz Posted December 12, 2014 Share Posted December 12, 2014 Hi, this is problem of PHP memory limit. You can see this in error_log in admin folder. Link to comment Share on other sites More sharing options...
Orphee Posted December 16, 2014 Share Posted December 16, 2014 (edited) Hi ! Export orders generate a not-found page here too… I have try to change the AdminController.php, but the line numbers do not match between the fix in the Github and my file, so I don't know if I should try to correct my file all the same or not… EDIT : I tried to modify my file, and all is OK now, the csv export is working. Edited December 16, 2014 by Orphee (see edit history) 1 Link to comment Share on other sites More sharing options...
Crazyweb Posted December 21, 2014 Share Posted December 21, 2014 Hi, I also tried to export the orders in csv, then getting a csv file thats only 128 kb. No information in it. Then tried to update the controller file with the Github fix, but then I can't acces my Admin after this update. Any body know what this is? I have btw also a test prestashop where i tried this on, but also on this no acces to admin Link to comment Share on other sites More sharing options...
zwagger Posted December 23, 2014 Share Posted December 23, 2014 I made the changes from the given link, but it breakes my BO too.. I only get a white empty page in chrome .. Edit.. |I tried the changes from github again on a fresh Admincontroller.php and now it works! I can now export without problems.. Don't forget to delete the old lines completely.... Also for me the line numbers were different than the ones on Github, but is working nevertheless.. Link to comment Share on other sites More sharing options...
Crazyweb Posted December 23, 2014 Share Posted December 23, 2014 Any chance someone can upload the file as zip. I assume its for everyone the same Link to comment Share on other sites More sharing options...
mostlyharmless Posted January 6, 2015 Share Posted January 6, 2015 Ive tried the correction and so on but either i break my whole BO or i just cant export.Normal with the normal file i cant export.With the corrections i cant even acces the BO.Hope someone has an idea, because im fast running out of them Link to comment Share on other sites More sharing options...
misspython Posted February 17, 2015 Share Posted February 17, 2015 (edited) the changes related to the problem of export are very subtile - { - $callback_obj = (isset($params['callback_object'])) ? $params['callback_object'] : $this->context->controller; - $field_value = call_user_func_array(array($callback_obj, $params['callback']), array($field_value, $row)); - } + { + $callback_obj = (isset($params['callback_object'])) ? $params['callback_object'] : $this->context->controller; + $field_value = call_user_func_array(array($callback_obj, $params['callback']), array($field_value, $row)); + } aren't they ? You can try if (isset($params['callback'])) { $callback_obj = (isset($params['callback_object'])) ? $params['callback_object'] : $this->context->controller; - $field_value = call_user_func_array(array($callback_obj, $params['callback']), array($field_value, $row)); + if (!preg_match('/<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)/ism', call_user_func_array(array($callback_obj, $params['callback']), array($field_value, $row)))) + $field_value = call_user_func_array(array($callback_obj, $params['callback']), array($field_value, $row)); } $content[$i][] = $field_value; } It didn't work for me, but It looks a more appropriate step to investigate.. I wish the other bugs of Prestashop let me enough time to brush up my Regex .. and solve it by myself ... In the meantime, I don't find it "normal" ... Prestashop is free OK, I deserve what I pay for ...maybe but It generates plenty of money ... for the time being .. edit: the not so magic link .. [-] BO : Fix PSCSX-3195 detect if callback return html 1.6.0.11 https://github.com/PrestaShop/PrestaShop/commit/9501318143b2 Edited February 17, 2015 by misspython (see edit history) 1 Link to comment Share on other sites More sharing options...
edarioq Posted February 20, 2015 Share Posted February 20, 2015 edit: the not so magic link .. [-] BO : Fix PSCSX-3195 detect if callback return html 1.6.0.11 https://github.com/PrestaShop/PrestaShop/commit/9501318143b2 This did it for me, now customer data exports correctly without HTML. Link to comment Share on other sites More sharing options...
Andy1234 Posted March 9, 2015 Share Posted March 9, 2015 No luck for me. Broke the back office. Its just the customer list that I can't export. All others seem to be ok. Thanks Andy Link to comment Share on other sites More sharing options...
misspython Posted March 9, 2015 Share Posted March 9, 2015 Any relevant errors' messages ? Link to comment Share on other sites More sharing options...
Andy1234 Posted March 9, 2015 Share Posted March 9, 2015 Most pages blank others with fatal error in the php file. Can't remember exact as I have undone the change. Luckily I saved the old file and put it back in place. Link to comment Share on other sites More sharing options...
J&B in BK Posted September 26, 2015 Share Posted September 26, 2015 We tried the suggesgted patch. I am trying to export all product info. It didn't work for us. I was mistakenly editing an older version of our site and now i can't even export it - so it's hours and hours of copy-n-paste?! ugh Link to comment Share on other sites More sharing options...
9smiths Posted November 20, 2015 Share Posted November 20, 2015 (edited) I tried both suggestions on this page, but also got the broken admin like others. Then I found this solution and it worked: https://www.prestashop.com/forums/topic/146645-module-page-not-loading-increase-your-memory-limit-value-on-your-server-configuration/ Never mind. While it did allow me to export the orders, the file just contained this: <span class="btn-group-action"> <span class="btn-group"> <a class="btn btn-default" target="_blank" href="<br /> <b>Fatal error</b>: Call to a member function getAdminLink() on a non-object in <b>/home4/flgames/public_html/pledgemanager.stonesterrain.com/cache/smarty/compile/16/37/9d/16379de0a2fba103e38269095078692fd8d151b4.file._print_pdf_icon.tpl.php</b> on line <b>34</b><br /> Edited November 20, 2015 by 9smiths (see edit history) Link to comment Share on other sites More sharing options...
ChDUP Posted December 5, 2017 Share Posted December 5, 2017 Hi. I have same problem with my 1.6.1.13 version. And this fix has already been included in this version.https://github.com/PrestaShop/PrestaShop/commit/006dcbee13a492d0cad566dc9ea634e100fc8b00 So, I don't understand how to fix it. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now