muneeb456 Posted June 2, 2013 Share Posted June 2, 2013 Hi, I've been working on adding a simple payment module that allows users to enter their credit card information, but does not automatically connect to any payment gateway. The module does work and when I place a test order with dummy credit card data it does insert the order into the database. But, then I get this strange error. ( ! ) Fatal error: require() [<a href='function.require'>function.require</a>]: Cannot redeclare class customermessagecore in C:\wamp\www\prestashop3\classes\Autoload.php on line 112Call Stack#TimeMemoryFunctionLocation10.0002376928{main}( )..\index.php:020.16412218456DispatcherCore->dispatch( )..\index.php:3630.19783652336ControllerCore->run( )..\Dispatcher.php:35340.23594297720CardValidationModuleFrontController->postProcess( )..\Controller.php:16150.36315265856PaymentModule->validateOrder( )..\validation.php:8660.51186425824Autoload->load( )..\validation.php:070.51286451088ReflectionClass->__construct( )..\Autoload.php:9880.51286451328Autoload->load( )..\Autoload.php:0 Further, I'm getting this strange error when I try to use the general purpose search in the admin control panel: ( ! ) Fatal error: require() [<a href='function.require'>function.require</a>]: Cannot redeclare class orderpaymentcore in C:\wamp\www\prestashop3\classes\Autoload.php on line 112Call Stack#TimeMemoryFunctionLocation10.0003378696{main}( )..\index.php:020.17821934624DispatcherCore->dispatch( )..\index.php:5030.23962729072ControllerCore->run( )..\Dispatcher.php:35340.26192789048AdminSearchControllerCore->postProcess( )..\Controller.php:16150.27112897864AdminSearchControllerCore->searchCatalog( )..\AdminSearchController.php:5460.27473165224Product::searchByName( )..\AdminSearchController.php:16970.29303389456ProductCore::getPriceStatic( )..\Product.php:31480.30693602360ProductCore::priceCalculation( )..\Product.php:253790.35344122096Autoload->load( )..\Product.php:0100.35474149592ReflectionClass->__construct( )..\Autoload.php:98110.35484149832Autoload->load( )..\Autoload.php:0 Can anyone please help. Thanks Link to comment Share on other sites More sharing options...
muneeb456 Posted June 2, 2013 Author Share Posted June 2, 2013 Actually, when I place a brand new order, it works fine. But if I try to "reorder" from an existing order, then the error message comes. Link to comment Share on other sites More sharing options...
muneeb456 Posted June 3, 2013 Author Share Posted June 3, 2013 Never mind, it seems that the server or os was having a bad day. Rebooted the computer and the bug disappeared. Link to comment Share on other sites More sharing options...
vekia Posted June 3, 2013 Share Posted June 3, 2013 thanks for the information, so im going to mark this thread as solved regards Link to comment Share on other sites More sharing options...
Recommended Posts