Jump to content

Unable to Regenerate Thumbnails


Recommended Posts

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 Apache
max_execution_time is set to 300 in PHP

 

can someone please help me ?

Link to comment
Share on other sites

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

  • 1 month later...

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

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 500
Here 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 81

After 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 by Khundo (see edit history)
Link to comment
Share on other sites

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 by Khundo (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...