Frits van Leeuwen Posted August 23, 2013 Share Posted August 23, 2013 Hello everyone, Our users can not choose a payment. They get a white page. What can I do? We use prestashop 1.4.11.0 kind regards, Frits van Leeuwen Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 23, 2013 Share Posted August 23, 2013 re white page: http://www.prestashop.com/forums/topic/224525-how-to-get-debug-information-for-500-error-or-blank-page/ you need to know the error that is occurring and resulting in white page Link to comment Share on other sites More sharing options...
Frits van Leeuwen Posted August 23, 2013 Author Share Posted August 23, 2013 Thanks for your quick answare. Yes,... I know. But when I tray to order some thing by myself I get the white page. So do you know how I can get the error code? Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 23, 2013 Share Posted August 23, 2013 to obtain the error code, follow this 'how to' http://www.prestasho...-or-blank-page/ then reproduce the error, you should see on the blank page, the error if not then you need to check your error log in your hosting account Link to comment Share on other sites More sharing options...
Frits van Leeuwen Posted August 23, 2013 Author Share Posted August 23, 2013 Thanks... Now I get: Fatal error: Call to a member function assign() on a non-object in /home/geschenkenlaantje.nl/www/modules/cashondelivery/cashondelivery.php on line 77 Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 23, 2013 Share Posted August 23, 2013 great now search using your fav search engine for prestashop modules/cashondelivery/cashondelivery.php on line 77 see if you can find the solution... you can disable this module until you find a fix...assuming there is another payment method... Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 23, 2013 Share Posted August 23, 2013 downlaod (using ftp) and back up (copy to another folder) your modules/cashondelivery/cashondelivery.php using your fav editor like notepad++, open cashondelivery.php delete all the lines of code copy and paste this code and place in your cashondelivery.php the code can be found here: https://raw.github.com/PrestaShop/PrestaShop-1.4/development/modules/cashondelivery/cashondelivery.php save the file and re ftp to modules/cashondelivery/cashondelivery.php Link to comment Share on other sites More sharing options...
Frits van Leeuwen Posted August 23, 2013 Author Share Posted August 23, 2013 did take a look in the file. I read this: $this->context->smarty->assign(array( 'this_path' => $this->_path, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/' )); return $this->display(__FILE__, 'payment.tpl'); But I don't know what to do there. Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 23, 2013 Share Posted August 23, 2013 see my previous post...this fixed the same issue for another community member...and does not require you to code/understand the code... http://www.prestashop.com/forums/index.php?/topic/269872-users-cannt-see-the-payments/page__view__findpost__p__1350272 Link to comment Share on other sites More sharing options...
Frits van Leeuwen Posted August 23, 2013 Author Share Posted August 23, 2013 (edited) oke, I have downloaded the file. And I made a copy of it. So you say: delete the code of this file. Then copy and paste the code. So I deleted the code, and copied from the copy-file and paste it. Then I use FTP to transfer the file. But I get the same result. When I watch this procidure, It looks to me... I do nothing... Edited August 23, 2013 by frits1969 (see edit history) Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 23, 2013 Share Posted August 23, 2013 oke, I have downloaded the file. And I made a copy of it. So you say: delete the code of this file. Then copy and paste the code. So I deleted the code, and copied from the copy-file and paste it. Then I use FTP to transfer the file. But I get the same result. When I watch this procidure, It looks to me... I do nothing... you used the code from this file? https://raw.github.c...hondelivery.php here is the cashondelivery.php file with the code from the 'supposed' fix for this...just upload it to modules/cashondelivery/cashondelivery.php cashondelivery.php Link to comment Share on other sites More sharing options...
Frits van Leeuwen Posted August 23, 2013 Author Share Posted August 23, 2013 (edited) Yes.... Perfect.... I don't know what I did. Can you explane? It works... Thanks a lot. Edited August 23, 2013 by frits1969 (see edit history) Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 23, 2013 Share Posted August 23, 2013 I will mark this as solved... happy prestashopping 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