bruce-rez Posted July 20, 2013 Share Posted July 20, 2013 (edited) Hi, After upgrading the PayPal module to 3.5.5, now when I click on the PayPal Logo in my front office I am redirected to a blank page. Any idea how to fix it? I'm using Prestashop 1.5.4.1, default theme Thank you Edited July 23, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 20, 2013 Share Posted July 20, 2013 it's a 500 internal server error: turn on error reporting or follow guides here: http://www.prestashop.com/forums/topic/224525-how-to-get-debug-information-for-500-error-or-blank-page/ You can also check the php error log file (if you've got an access) then please paste the error code here. Link to comment Share on other sites More sharing options...
bruce-rez Posted July 20, 2013 Author Share Posted July 20, 2013 (edited) Hi vekia, I changed the define('_PS_MODE_DEV_', false); To define('_PS_MODE_DEV_', true); and then uploaded again via FTP, I went to my site but I don't see any error report. By the way I don't get the 500 internal server error as your screenshot, I am only redirected to a blank page without any warning. My browser is FireFox 22 for Mac. Please advice. Thanks Edited July 20, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 20, 2013 Share Posted July 20, 2013 I get Fatal error: Cannot redeclare class BWDisplay in /home3/david008/public_html/modules/paypal/backward_compatibility/Display.php on line 24 this post might help http://www.prestashop.com/forums/index.php?/topic/189878-paypal-bwdisplay-express-checkout/page__view__findpost__p__939302 Link to comment Share on other sites More sharing options...
bruce-rez Posted July 20, 2013 Author Share Posted July 20, 2013 (edited) El Patron, Thanks. I've already read and tried this workaround (your link) but it didn't work for me. I think this solution is not for v 1.5.4.1. This is what I tried with no success: $display = new BWDisplay(); With : if (_PS_VERSION_ < '1.5') $display = new BWDisplay(); else $display = new FrontController(); Thanks. Edited July 20, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 20, 2013 Share Posted July 20, 2013 my understanding ( I could be wrong) is the backward compatibility module is only for 1.4. Maybe you should uninstall it (don't delete it) and try again. Link to comment Share on other sites More sharing options...
bruce-rez Posted July 20, 2013 Author Share Posted July 20, 2013 (edited) ...backward compatibility module I searched for this module in my BO but couldn't find it. Could be it under another name? El Patron I getFatal error: Cannot redeclare class BWDisplay in /home3/david008/public_html/modules/paypal/backward_compatibility/Display.php on line 24 I confirm that I get the same error message after turn on error reporting. Edited July 20, 2013 by bruce-rez (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted July 20, 2013 Share Posted July 20, 2013 good lawd...I hate looking through threads....you get one thread on subject...and people post every sort of issue they might have that is not even related to the original post....the in ref to the Fatal error: Cannot redeclare class BWDisplay search. if you can't find the module then it's not loaded. There are some fixes suggested there but at this point not sure what advice to give you...other than maybe finding an earlier version of paypal 3.5.5 and/or unintalling the paypal you have and reinstalling... Link to comment Share on other sites More sharing options...
bruce-rez Posted July 20, 2013 Author Share Posted July 20, 2013 El Patron, Thanks for your assistance, I understand that could be sometimes frustration as a moderator to read and find the solution to different threads. Anyway I found the Display.php file, I am going to copy/paste it here and hopefully get some help . Thanks anyway. Here is the error message I get: Fatal error: Cannot redeclare class BWDisplay in /home3/david008/public_html/modules/paypal/backward_compatibility/Display.php on line 24 Here is the /my theme/modules/paypal/backward_compatibility/Display.php: <?php /** * Class allow to display tpl on the FO */ class BWDisplay extends FrontController { // Assign template, on 1.4 create it else assign for 1.5 public function setTemplate($template) { if (_PS_VERSION_ >= '1.5') parent::setTemplate($template); else $this->template = $template; } // Overload displayContent for 1.4 public function displayContent() { parent::displayContent(); echo Context::getContext()->smarty->fetch($this->template); } } Link to comment Share on other sites More sharing options...
El Patron Posted July 20, 2013 Share Posted July 20, 2013 look in override/classes and see if there is an orphaned BWDisplay class if there is then rename by prefixing with _ now I am just shooting up in the air...hopefully none of the bullets comes down and hits anyone Link to comment Share on other sites More sharing options...
Recommended Posts