Jonss Posted March 6, 2019 Share Posted March 6, 2019 I'm new to Prestashop (1.7.5.1) and I'm having a serious issue with Prestashop native module (Link Widget) I don't know why but I keep getting this "500 Internal Server Error" every time I try to open the (Design --> Link Widget) : https://company.com/admin-97521/index.php/modules/link-widget/list?_token=-37sb79hXhJmHBYvsqNqXoeWZhVZRjOj3Vxk1x2ndRM Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. I have tried to - RESET, DELETE and REINSTALL the module yet nothing is working, I have no clue what I should do to make it work. Is this module somehow dependent on some other file or module. How do I fix this please help me Link to comment Share on other sites More sharing options...
Jonss Posted March 7, 2019 Author Share Posted March 7, 2019 When I click on the (Link Widget in Debug Mode) I get these Errors in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php (line 180) if (!class_exists($class)) { throw new \InvalidArgumentException(sprintf('Class "%s" does not exist.', $class)); } ***** ControllerResolver->createController('PrestaShop\\Module\\LinkList\\Controller\\Admin\\Improve\\Design\\LinkBlockController::listAction') in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ContainerControllerResolver.php (line 63) if (false !== strpos($controller, '::')) { return parent::createController($controller); } ***** ContainerControllerResolver->createController('PrestaShop\\Module\\LinkList\\Controller\\Admin\\Improve\\Design\\LinkBlockController::listAction') in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php (line 43) $resolvedController = parent::createController($controller); ***** ControllerResolver->createController('PrestaShop\\Module\\LinkList\\Controller\\Admin\\Improve\\Design\\LinkBlockController::listAction') in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php (line 88) $callable = $this->createController($controller); ***** ControllerResolver->getController(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ContainerControllerResolver.php (line 41) $controller = parent::getController($request); ***** ContainerControllerResolver->getController(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/TraceableControllerResolver.php (line 49) $ret = $this->resolver->getController($request); ***** TraceableControllerResolver->getController(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 134) // load controller if (false === $controller = $this->resolver->getController($request)) { throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo())); } ***** HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) return $this->handleRaw($request, $type); ***** HttpKernel->handle(object(Request), 1, false) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200) return $this->getHttpKernel()->handle($request, $type, $catch); ***** Kernel->handle(object(Request), 1, false) in admin-ps/index.php (line 88) try { require_once __DIR__.'/../autoload.php'; $response = $kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, false); $response->send(); $kernel->terminate($request, $response); } catch (NotFoundHttpException $exception) { define('ADMIN_LEGACY_CONTEXT', true); // correct Apache charset (except if it's too late) Please tell me how to fix these. Link to comment Share on other sites More sharing options...
thomasharko Posted March 13, 2019 Share Posted March 13, 2019 Bonjour, Same error in one of my shop, don't find the way to fix the problem. Will be interested is somebody know how to fix it. Thanks Link to comment Share on other sites More sharing options...
gbouille Posted March 27, 2019 Share Posted March 27, 2019 Hi, I have the same issue with "Prestashop 1.7.5.1" and all modules updated... Link to comment Share on other sites More sharing options...
Jonss Posted March 27, 2019 Author Share Posted March 27, 2019 I managed to fix the issue by deleting the [cache folder] the Root install folder. I don't know if this is the best solution, but you can test if this will work for you. Backup before you delete. Link to comment Share on other sites More sharing options...
thomasharko Posted March 27, 2019 Share Posted March 27, 2019 Il y a 3 heures, Jonss a dit : I managed to fix the issue by deleting the [cache folder] the Root install folder. I don't know if this is the best solution, but you can test if this will work for you. Backup before you delete. Thanks for your post Jonss, you delete the /cache folder in the root folder or in the /var/cache ? Thanks & regards Link to comment Share on other sites More sharing options...
Jonss Posted March 28, 2019 Author Share Posted March 28, 2019 I deleted the cache folder in the (Root Folder) In other words the cache folder inside the (public_html folder) if you are using C-Panel. Link to comment Share on other sites More sharing options...
thomasharko Posted March 28, 2019 Share Posted March 28, 2019 Il y a 7 heures, Jonss a dit : I deleted the cache folder in the (Root Folder) In other words the cache folder inside the (public_html folder) if you are using C-Panel. Ok thanks. This no solve the solution for me. Link to comment Share on other sites More sharing options...
Jonss Posted March 28, 2019 Author Share Posted March 28, 2019 After deleting the cache folder, you should also clear your browser history. Another thing you could try is open cmd as admin and type ipconfig /release enter ipconfig /flushdns enter ipconfig /renew enter If this does not work then sorry man, you are left with the only option of re-installing prestashop from scratch ! Link to comment Share on other sites More sharing options...
JBW Posted March 28, 2019 Share Posted March 28, 2019 cache folder on root level is depreceated on 1.7.5 - the new location is /var/cache - wondering how the deleting could have solved your issue. @thomasharko try with renaming /var/cache to /var/cache_old Link to comment Share on other sites More sharing options...
thomasharko Posted March 28, 2019 Share Posted March 28, 2019 il y a 27 minutes, JBW a dit : cache folder on root level is depreceated on 1.7.5 - the new location is /var/cache - wondering how the deleting could have solved your issue. @thomasharko try with renaming /var/cache to /var/cache_old Thanks JBW, renaming /var/cache to /var/cache_old unfortunately don't solve the problem. Link to comment Share on other sites More sharing options...
Janett Posted March 28, 2019 Share Posted March 28, 2019 Try to replace your ps_linklist by this one ps_linklist.zip Link to comment Share on other sites More sharing options...
thomasharko Posted March 28, 2019 Share Posted March 28, 2019 Il y a 2 heures, Janett a dit : Try to replace your ps_linklist by this one ps_linklist.zip Thanks Janet but still no success. Remove the module, remove cache, install the new one but still the same error. Class "PrestaShop\Module\LinkList\Controller\Admin\Improve\Design\LinkBlockController" does not exist. Link to comment Share on other sites More sharing options...
Janett Posted March 28, 2019 Share Posted March 28, 2019 (edited) I think your composer autoload is broken. Did you know execute CLI commands ? Because you should execute composer dump-autoload —no-dev On the root folder of your PrestaShop Then do the same command in /modules/ps_linklist directory Edited March 28, 2019 by Janett (see edit history) Link to comment Share on other sites More sharing options...
thomasharko Posted March 30, 2019 Share Posted March 30, 2019 Le 28/03/2019 à 7:07 PM, Janett a dit : I think your composer autoload is broken. Did you know execute CLI commands ? Because you should execute composer dump-autoload —no-dev On the root folder of your PrestaShop Then do the same command in /modules/ps_linklist directory Bonjour Jannet, Thanks I execute the command, find below the results On root folder of the shop : Composer could not find a composer.json file in /var/www/vhosts/domaine.fr/httpdocs/domaine.fr To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section On ps_linklist module folder : Generated autoload files containing 1 classes For the root folder command, should I start again with an empty composer.json or copy the composer.lock to a composer.json file ? Thanks again Have a nice day and a nice week-end Thomas Link to comment Share on other sites More sharing options...
Janett Posted March 30, 2019 Share Posted March 30, 2019 You can retrieve from here : https://github.com/PrestaShop/PrestaShop/blob/1.7.5.x/composer.json Link to comment Share on other sites More sharing options...
thomasharko Posted March 30, 2019 Share Posted March 30, 2019 Il y a 2 heures, Janett a dit : You can retrieve from here : https://github.com/PrestaShop/PrestaShop/blob/1.7.5.x/composer.json Thanks Janett. Ok I execute the command on both and empty var/cache but no success. Still the same error on the module ps_linklist page. Result of the command on the root folder : Deprecation warning: Your package name PrestaShop/PrestaShop is invalid, it should not contain uppercase characters. We suggest using presta-shop/presta-shop instead. Make sure you fix this as Composer 2.0 will error. Deprecation warning: require.beberlei/DoctrineExtensions is invalid, it should not contain uppercase characters. Please use beberlei/doctrineextensions instead. Make sure you fix this as Composer 2.0 will error. Generated autoload files containing 110 classes Link to comment Share on other sites More sharing options...
Janett Posted March 30, 2019 Share Posted March 30, 2019 3 hours ago, thomasharko said: On ps_linklist module folder : Generated autoload files containing 1 classes Here there are a problem, there more than 1 class in /modules/ps_linklist/src Composer should add it in autoload 🤔 Link to comment Share on other sites More sharing options...
El Cuartito diseño Posted April 2, 2019 Share Posted April 2, 2019 1-Uninstall the module 2- Clears cahe smarty 3- Delete modules / ps_linklist in the server 4 - Reinstall the module version v2.1.6 it works correctly NO UPDATE THIS MODULE againg Link to comment Share on other sites More sharing options...
thomasharko Posted April 11, 2019 Share Posted April 11, 2019 Bonjour, Going back to 2.1.6 works. Thanks 1 Link to comment Share on other sites More sharing options...
FaheemTariq Posted April 28, 2019 Share Posted April 28, 2019 Dear thomasharko, can you please tell me how did you do that? i mean how did you downgrade to 2.1.6? Link to comment Share on other sites More sharing options...
thomasharko Posted May 3, 2019 Share Posted May 3, 2019 Bonjour FaheemTariq, You need to uninstall and delete the actual module Then remove all files and folders in /var/cache/ And install the module downlodable to the link https://github.com/PrestaShop/PrestaShop/blob/1.7.5.x/composer.json Have a nice day Best regards Thomas Link to comment Share on other sites More sharing options...
FaheemTariq Posted May 3, 2019 Share Posted May 3, 2019 Thank you so much Thomas, it worked. 🤗 Link to comment Share on other sites More sharing options...
Muzzamil Posted December 25, 2019 Share Posted December 25, 2019 On 5/3/2019 at 12:07 PM, thomasharko said: Bonjour FaheemTariq, You need to uninstall and delete the actual module Then remove all files and folders in /var/cache/ And install the module downlodable to the link https://github.com/PrestaShop/PrestaShop/blob/1.7.5.x/composer.json Have a nice day Best regards Thomas Hey guys, Thanks for all the effort and help you are offering to the community. Forgive me I am newbie so I need some guidance. I have this issue with the latest version of Prestashop 1.7.6.2. Everything was working fine but then I installed this theme and I got the same internal 500 error as described above. I have renamed the ps_linklist folder in the modules section and most of the issues are sorted sorted except the link widget itself. I can not access it cause obviously the module is not present now so I need to downgrade it. I am not exactly sure how to perform the following action : " install the module downlodable to the link https://github.com/PrestaShop/PrestaShop/blob/1.7.5.x/composer.json" I would really appreciate if someone can refer me a video link or an article or make some basic bullet points on how to downgrade link widget. Thanks in advance. Regards Link to comment Share on other sites More sharing options...
diego dz Posted April 28, 2020 Share Posted April 28, 2020 On 3/5/2019 at 12:12, FaheemTariq said: Muchas gracias Thomas, funcionó. 🤗 Hola, podrías indicarme como conseguiste descargar el modulo en su versión 2.1.6 . Gracias. Link to comment Share on other sites More sharing options...
rzk_voyager Posted May 5, 2020 Share Posted May 5, 2020 I have the same problem, ("Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused."), followed all the instructions and the problem persists. If I can't fix this I might as well de-install the whole thing, as the shop is useless if you can't configure that module. 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