kilrathi Posted April 11, 2015 Share Posted April 11, 2015 Hi. I have been trying to regenerate my thumbnails, but after some 5 minute, it only appears this : > Unable to process this directive.. I have my server timeout set to : > Set KeepAlive On in Apachemax_execution_time is set to 300 in PHP can someone please help me ? Link to comment Share on other sites More sharing options...
NemoPS Posted April 11, 2015 Share Posted April 11, 2015 Altogether or one type/size at time? How many products do you have? Link to comment Share on other sites More sharing options...
kilrathi Posted April 11, 2015 Author Share Posted April 11, 2015 Altogether or one type/size at time? How many products do you have? I tried regenerating Altogether, part by part ... the same.. I have about 1000 products. Link to comment Share on other sites More sharing options...
NemoPS Posted April 13, 2015 Share Posted April 13, 2015 Hm, are some of the images being generated? Or none at all? 1 Link to comment Share on other sites More sharing options...
kilrathi Posted April 13, 2015 Author Share Posted April 13, 2015 Hm, are some of the images being generated? Or none at all? Ironically, today all my images have watermarks on it ... I have no idea what happened ?? Anyways it is solved for now ) Thanks Nemo1 for assisting me all these while. Link to comment Share on other sites More sharing options...
Khundo Posted June 11, 2015 Share Posted June 11, 2015 Hi help please, I come to buy from prestashop official site, but not work, impossibe to use regeneratethumbnails Fatal error: Cannot use object of type stdClass as array in /homepages/29/xxx/htdocs/modules/regeneratethumbnails/regeneratethumbnails.php on line 157 I use prestashop 1.4.0.17 Please help me to resolve the problem Thanks you by advance Link to comment Share on other sites More sharing options...
NemoPS Posted June 12, 2015 Share Posted June 12, 2015 I don't honestly recall any standard module with that name, is it a custom one? Link to comment Share on other sites More sharing options...
Khundo Posted June 12, 2015 Share Posted June 12, 2015 (edited) Hi, Thinking save time I bought this module € 59 on the official website stating that Prestashop is compatible with version 1.0.0 to 1.6 of PrestaShop is to generate the images and avoid the error 500Here is the link http://addons.prestashop.com/fr/outils-administration-modules-prestashop/676-regenerer-les-miniatures.html 1. First step: - The installation of the module is correct - When I click generate images, it causes me Fatal error: Can not use object of the type stdClass as array in/homepages/29/d361608112/htdocs/modules/regeneratethumbnails/classes/Samdha/RegenerateThumbnails/Tools.php on line 81After each time when I click on module "configuration" it causes me the same Fatal error "Fatal error: Cannot use object of type stdClass as array in /homepages/29/d361608112/htdocs/modules/regeneratethumbnails/regeneratethumbnails.php on line 157" Thank you by advance, Regards Edited June 12, 2015 by Khundo (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted June 13, 2015 Share Posted June 13, 2015 Well it's obviously broken, try pasting here that line 157 of the module's php file Link to comment Share on other sites More sharing options...
Khundo Posted June 13, 2015 Share Posted June 13, 2015 (edited) Hi Here code Tool.php line 70 to 91 // let's begin $images_datas = $this->getImagesDatas($type, $image_type); if ($restart) { return $this->module->samdha_tools->jsonEncode(array( 'error' => '', 'current' => 0, 'number' => $images_datas['number'], 'finish' => empty($images_datas['images']) )); }line error 81 if (empty($images_datas['images'])) { $this->deleteImagesDatas($type, $image_type); return $this->module->samdha_tools->jsonEncode(array( 'error' => $this->module->l('Nothing to regenerate'), 'current' => $images_datas['number'], 'number' => $images_datas['number'], 'finish' => true )); } And Here regeneratethumbnails.php code error line 157 $datas = $this->tools->getImagesDatas($type, $format); if ((int)$datas['number']) { $global_number += (int)$datas['number']; $number += (int)$datas['number']; $data_current = (int)$datas['number'] - count($datas['images']); if ($data_current > 0) { Thank you so much to help me Edited June 13, 2015 by Khundo (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted June 15, 2015 Share Posted June 15, 2015 It appears getImagesDatas returns and object. Try replacing those array accesses with, say $datas->number Link to comment Share on other sites More sharing options...
Khundo Posted June 16, 2015 Share Posted June 16, 2015 Hi Nemo They are update the version, that's ok now Thank you was to help me Regards 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