HansSolid Posted April 22, 2019 Share Posted April 22, 2019 I have a 500 error (unable to connect to the server 500 error) in the backend of Sendcloud (shipping module) if I try to connect to the Prestashop server. If debug modus in ON, the request of Sendcloud goes fine. (???) I also get a 500 error in the backend when I try to clear the cache. The 500 error is not 100% persistent! (+ 80% of the time). If I reload the page with the 500 error (1 or 2 times) the request to clear cache passes (about +90% of the time). A couple of time I had a white screen and I was unable to login to the backend. (needed to change config file or do a complete backup) Frontend keeps working ok, while having 500 errors in backend. What I tried: Contacted my hosting hosting provider and they researched the server. They could not detect a server issue. In the error logs they could see the following error: ------ error.log.1.gz:[Thu Apr 18 14:15:37.817149 2019] [error] [pid 23339] mod_proxy_fcgi.c(860): [client IP ADDRESS ] AH01071: Got error 'PHP message: PHP Fatal error: Interface 'PrestaShop\\PrestaShop\\Core\\Grid\\Query\\DoctrineQueryBuilderInterface' not found in /data/sites/web/mywebsiteeu/www/src/PrestaShopBundle/Entity/Repository/RequestSqlRepository.php on line 38\n' ---- I checked and the file 'DoctrineQueryBuilderInterface.php' is in directory /www/src/Core/Grid/Query RequestSqlRepository.php states on line 31 "use PrestaShop\PrestaShop\Core\Grid\Query\DoctrineQueryBuilderInterface;" When working in debug modus after a couple of trials, I finally got 1 debug error: ---- Compile Error: ContainerUt0lms3\appDevDebugProjectContainer::load(): Failed opening required '/data/sites/web/ website eu/www/var/cache/dev/ContainerUt0lms3/getPrestashop_Module_Zip_ManagerService.php' (include_path=‘/data/sites/web/ website eu/www/tools/htmlpurifier/standalone:/data/sites/web/otsudreamseu/www/vendor/pear/pear_exception:/data/sites/web/ website eu/www/vendor/pear/console_getopt:/data/sites/web/ website eu/www/vendor/pear/pear-core-minimal/src:/data/sites/web/ website eu/www/vendor/pear/archive_tar:.') --- Aftre checking the forum I deleted dev & prod directories and files in path => /www/var/cache/ but this makes no difference. I enabled and disabled smart cache, but the error persists. PrestaShop version: 1.7.4.2 Server information Linux Server software version: Apache PHP version: 7.2.15 Memory limit: 256M Max execution time: 300 Upload Max File size: 256M Datbase: MySQL version: 5.7.22-22 Anyone the encountered this problem yeT Please can someone advice or help me? Thanks in advance! Link to comment Share on other sites More sharing options...
Eloise SendCloud Posted April 23, 2019 Share Posted April 23, 2019 Hi Hans, We just found your review concerning the connection between Prestashop and SendCloud. I'm sorry to hear that the connection doesn't work properly. Could you indicate what your shop name is? In that case we can take a look at what is going wrong. Thanks in advance. Link to comment Share on other sites More sharing options...
HansSolid Posted April 23, 2019 Author Share Posted April 23, 2019 (edited) I don't think it's a Sencloud issue but a Prestashop issue. Edited June 11, 2019 by HansSolid seo (see edit history) Link to comment Share on other sites More sharing options...
cyssoo Posted April 23, 2019 Share Posted April 23, 2019 Hello, Have you tried to rename or delete cache folders (/var/cache) ? Source (french) : https://www.team-ever.com/problemes-et-resolutions-sous-prestashop/#mustdebug Link to comment Share on other sites More sharing options...
HansSolid Posted April 23, 2019 Author Share Posted April 23, 2019 35 minutes ago, cyssoo said: Hello, Have you tried to rename or delete cache folders (/var/cache) ? Source (french) : https://www.team-ever.com/problemes-et-resolutions-sous-prestashop/#mustdebug Thanks for your answer. I did this already a couple of times, but makes no difference Link to comment Share on other sites More sharing options...
cyssoo Posted April 23, 2019 Share Posted April 23, 2019 Hum, sorry, thought it would help... Could you try to update your PS version on a subdirectory ? I cannot reproduce (deleting /var/cache folders helped me on 1.7.4.2 and older 1.7 versions). Link to comment Share on other sites More sharing options...
HansSolid Posted April 24, 2019 Author Share Posted April 24, 2019 (edited) What do you mean with updating on a subdirectory? Edited June 11, 2019 by HansSolid seo (see edit history) Link to comment Share on other sites More sharing options...
cyssoo Posted April 24, 2019 Share Posted April 24, 2019 I mean, copying your current Prestashop to a subfolder (database included) on your server, then upgrading it using this free module : https://addons.prestashop.com/fr/migration-donnees-sauvegarde/5496-.html Do not upgrade actual shop, please try on your computer or n a subfolder on your shop. At least, that's an upgrade, so you should save the shop before 1 Link to comment Share on other sites More sharing options...
HansSolid Posted May 2, 2019 Author Share Posted May 2, 2019 On 4/23/2019 at 7:08 PM, cyssoo said: Hum, sorry, thought it would help... Could you try to update your PS version on a subdirectory ? I cannot reproduce (deleting /var/cache folders helped me on 1.7.4.2 and older 1.7 versions). Hello Cyssoo, Your solution works! Updated PS to the new version and everything works fine now. thx a lot! 1 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