wanted_design Posted March 30, 2023 Share Posted March 30, 2023 (edited) Hi, We have just developed a Prestashop module to automatically generate mock-ups on the product. We developed it primarily to address our own issue as we couldn't find a module that met our needs. This is our first Prestashop module, so please don't hesitate to give us your feedback (suggestions, bugs, ...) :D. Best regards, The Wanted Design team mockupgenerator-1.0.2.zip Edited March 30, 2023 by wanted_design Edit title (see edit history) 2 1 Link to comment Share on other sites More sharing options...
Sashok Posted March 30, 2023 Share Posted March 30, 2023 [2023-03-30 20:58:22] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "link_rewrite" of class "PrestaShop\PrestaShop\Adapter\Tools". Did you mean to call "linkRewrite"?" at /var/www/vhosts/testsite.com/modules/mockupgenerator/src/MGMockupUploader.php line 16 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"link_rewrite\" of class \"PrestaShop\\PrestaShop\\Adapter\\Tools\".\nDid you mean to call \"linkRewrite\"? at /var/www/vhosts/testsite.com/modules/mockupgenerator/src/MGMockupUploader.php:16)"} [] [2023-03-30 20:58:22] request.CRITICAL: Exception thrown when handling an exception (Twig\Error\LoaderError: Template "::base.html.twig" is not defined in "@PrestaShop/Admin/Exception/error.html.twig" at line 26. at /var/www/vhosts/testsite.com/vendor/twig/twig/src/Loader/ChainLoader.php line 99) {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Template \"::base.html.twig\" is not defined in \"@PrestaShop/Admin/Exception/error.html.twig\" at line 26. at /var/www/vhosts/testsite.com/vendor/twig/twig/src/Loader/ChainLoader.php:99)"} [] Link to comment Share on other sites More sharing options...
wanted_design Posted March 31, 2023 Author Share Posted March 31, 2023 (edited) Thank you for your feedback. Can you explain how you came across this bug? Could you also provide us with some screenshots? What is the version of Prestashop you are using? The Wanted Design team. Edited March 31, 2023 by wanted_design Edit question (see edit history) Link to comment Share on other sites More sharing options...
Sashok Posted March 31, 2023 Share Posted March 31, 2023 PS 8.0.2 php 8.2 Link to comment Share on other sites More sharing options...
DNK-LUIFER Posted March 31, 2023 Share Posted March 31, 2023 hace 20 horas, Sashok dijo: [2023-03-30 20:58:22] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "link_rewrite" of class "PrestaShop\PrestaShop\Adapter\Tools". Did you mean to call "linkRewrite"?" at /var/www/vhosts/testsite.com/modules/mockupgenerator/src/MGMockupUploader.php line 16 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"link_rewrite\" of class \"PrestaShop\\PrestaShop\\Adapter\\Tools\".\nDid you mean to call \"linkRewrite\"? at /var/www/vhosts/testsite.com/modules/mockupgenerator/src/MGMockupUploader.php:16)"} [] [2023-03-30 20:58:22] request.CRITICAL: Exception thrown when handling an exception (Twig\Error\LoaderError: Template "::base.html.twig" is not defined in "@PrestaShop/Admin/Exception/error.html.twig" at line 26. at /var/www/vhosts/testsite.com/vendor/twig/twig/src/Loader/ChainLoader.php line 99) {"exception":"[object] (Twig\\Error\\LoaderError(code: 0): Template \"::base.html.twig\" is not defined in \"@PrestaShop/Admin/Exception/error.html.twig\" at line 26. at /var/www/vhosts/testsite.com/vendor/twig/twig/src/Loader/ChainLoader.php:99)"} [] Yes, same error. Prestashop 8.0.1 - Php 8.1.17 - Openlitespeed 1.7.16. Waiting fix but... Replace line 16 on "/src/MGMockupUploader.php" by: $imageName = $name . '.' . $ext; And working. Grettings. 1 Link to comment Share on other sites More sharing options...
wanted_design Posted March 31, 2023 Author Share Posted March 31, 2023 We are on Prestashop 1.7.8.x and we have not tested on Prestashop 8.x. We will investigate and get back to you as soon as we have fixed the bug. The Wanted Design team 1 Link to comment Share on other sites More sharing options...
wanted_design Posted March 31, 2023 Author Share Posted March 31, 2023 Please find the corrected version to work on Prestashop 8.0.x. The Wanted Design team mockupgenerator-1.0.3.zip 1 Link to comment Share on other sites More sharing options...
wanted_design Posted April 3, 2023 Author Share Posted April 3, 2023 Hi, I just fixed another bug regarding the saving of product data in the database. The Wanted Design team mockupgenerator-1.0.4.zip 1 Link to comment Share on other sites More sharing options...
wanted_design Posted April 6, 2023 Author Share Posted April 6, 2023 Hi, We have just updated our module. This update fixes a bug when trying to change an existing template. Best regards, The Wanted Design Team mockupgenerator-1.0.5.zip 1 1 Link to comment Share on other sites More sharing options...
Cruelicon Posted April 13, 2023 Share Posted April 13, 2023 Can you send url of your website where you have installed this module? 1 Link to comment Share on other sites More sharing options...
wanted_design Posted April 13, 2023 Author Share Posted April 13, 2023 Hi, https://shop.wanteddesign.fr/ Best regards, The Wanted Design Team 1 Link to comment Share on other sites More sharing options...
Sashok Posted December 7, 2023 Share Posted December 7, 2023 Link to comment Share on other sites More sharing options...
wanted_design Posted December 7, 2023 Author Share Posted December 7, 2023 Hi, Thank you for your return. I have not tested on PHP 8.2.x yet. I'm going to check that. Thank you for you patient. Best regards, The Wanted Design Team 1 Link to comment Share on other sites More sharing options...
Yabber Posted December 10, 2023 Share Posted December 10, 2023 On 12/7/2023 at 2:17 PM, wanted_design said: I have not tested on PHP 8.2.x yet. None of the prestashop versions are compatible with PHP 8.2 and 8.3. 1 1 Link to comment Share on other sites More sharing options...
Sashok Posted December 10, 2023 Share Posted December 10, 2023 bye-bye PHP 8.1 we need PHP8.2 !!! ) 1 Link to comment Share on other sites More sharing options...
Nickz Posted December 10, 2023 Share Posted December 10, 2023 1 hour ago, Sashok said: we need PHP8.2 !!! No one needs PHP8.2, if it weren't for the update pressure many sites would glady work unter php4. Go VPS if you wish to maintain a versions but monitor your shop. 1 Link to comment Share on other sites More sharing options...
Yabber Posted December 11, 2023 Share Posted December 11, 2023 10 hours ago, Nickz said: No one needs PHP8.2, if it weren't for the update pressure many sites would glady work unter php4. Go VPS if you wish to maintain a versions but monitor your shop. No one needs those computers and all that internet. If it weren't for the pressure of the advance of civilization, ordinary stationary stores would continue to operate. 1 Link to comment Share on other sites More sharing options...
Nickz Posted December 11, 2023 Share Posted December 11, 2023 10 hours ago, Yabber said: No one needs those computers and all that internet. If it weren't for the pressure of the advance of civilization, ordinary stationary stores would continue to operate. There is big gap between needing and using it voluntarily. With such an extreme view you need to slow down a little, IMHO. There are many shades between black and white. 😉 Link to comment Share on other sites More sharing options...
Yabber Posted December 12, 2023 Share Posted December 12, 2023 20 hours ago, Nickz said: There is big gap between needing and using it voluntarily. With such an extreme view you need to slow down a little, IMHO. There are many shades between black and white. 😉 This was not my view just a joke. On a great many hostings, if a particular PHP version loses support, the hosting admins remove such version from the servers (very rightly, by the way). A few days after the release of the official PHP 8.3 version, there was already a wordpress version compatible with PHP 8.3. And prestashop? Several years of delay and legacy code itself. Link to comment Share on other sites More sharing options...
mati7716 Posted December 29, 2023 Share Posted December 29, 2023 Module not work. PS 8.1.4 Link to comment Share on other sites More sharing options...
Nickz Posted December 29, 2023 Share Posted December 29, 2023 3 hours ago, mati7716 said: Module not work. Which module does not work? What happened? 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