Jump to content

Problem With Thumbnails Generation


asdf1

Recommended Posts

Hello,
Sorry if I confused the section where I post my topic.
I have the following problem ...
I am with version of Prestashop 1.4.6.2
I have a site with ~ 10,000 products and ~ 85,000images in them
I want to generate new thumbnails, but there is a problem.
I deleted all thumbnails via SSH to:

cd public_html/img/p/
rm -f *-home.jpg
rm -f *-large.jpg
rm -f *-medium.jpg

So far everything went well. The problem comes when I want to create new ones. Choose from the menu Preferences> Images> Generete thumbnails> Select images - Products> Select format - home
The function starts and begins to create pictures, but stops somewhere.
When generating thumbnails stop and want to play it again, nothing happens. Does not begin to generate new thumbnails. I understand that because in the directory img/p/ I have a php script that tracks the number of photos.
And another interesting ....
Connect with SSH and use the commands:

ls *-home.jpg | wc
ls *-large.jpg | wc

This command shows me how many files are in the directory with names -home.jpg and -large.jpg
The answer is the following:

user@web [~/public_html/img/p]# ls *-large.jpg | wc
46806 46806 980350
user@web [~/public_html/img/p]# ls * -home.jpg | wc
46806 46806 933544

Both files have the same number - 46 806 - equal number
Can you tell me how to fix it?
Thank you in advance!

Edited by asdf1 (see edit history)
Link to comment
Share on other sites

The first possible issue can be limited execution time.  As you said there are too many images your PHP execution stops before it get completed. Just check your max_execution_time by 

echo ini_get('max_execution_time');

anywhere in your site. May be it will help you.

Link to comment
Share on other sites

Thenk you, for your reply.

I have tried with max_execution_time, but it does not work.

At this moment max_execution_time are 1000

I've changed max_execution_time from 60 in 1000

 

The first possible issue can be limited execution time.  As you said there are too many images your PHP execution stops before it get completed. Just check your max_execution_time by 

echo ini_get('max_execution_time');

anywhere in your site. May be it will help you.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...