- Posts: 49
- Thank you received: 0
Missing some thumbnails
- sa
- Topic Author
- Offline
- Senior Member
Less
More
12 years 10 months ago #374
by sa
Missing some thumbnails was created by sa
Hi,
Our site is very large with over 5000 articles. We noticed some thumbnails are not being generated for some articles. I looked in components/com_customproperties/images and I see that some directories and images have been created but there are missing directories.
The directory has sufficient permissions as the presence of some generated directories would show. I have retried refreshing the thumbnails in the backend a few times, and the old directories are deleted and new ones created, but it never fully populated with all the directories it should.
Any ideas on what is happening? Is it possible that because there are so many directories, the script is timing out before finishing? if so, what settings would i need to change to correct this?
Thanks
Our site is very large with over 5000 articles. We noticed some thumbnails are not being generated for some articles. I looked in components/com_customproperties/images and I see that some directories and images have been created but there are missing directories.
The directory has sufficient permissions as the presence of some generated directories would show. I have retried refreshing the thumbnails in the backend a few times, and the old directories are deleted and new ones created, but it never fully populated with all the directories it should.
Any ideas on what is happening? Is it possible that because there are so many directories, the script is timing out before finishing? if so, what settings would i need to change to correct this?
Thanks
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 10 months ago #377
by andrea_4g
Replied by andrea_4g on topic Re: Missing some thumbnails
I don't think the problem is caused by a timeout issue. Thumbnails are (re)created upon the fist display of the article in the result list, thus only a handful are created at one time.
It'll be helpful to visit your site to troubleshoot the problem. (no need to post it here, send an email please)
It'll be helpful to visit your site to troubleshoot the problem. (no need to post it here, send an email please)
Please Log in or Create an account to join the conversation.
- sa
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
12 years 10 months ago #379
by sa
Replied by sa on topic Re: Missing some thumbnails
Ahh ok, that's good to know.
I turned on error reporting and it came up with this:
<b>Warning</b>: Division by zero in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>299</b><br />
<br />
<b>Warning</b>: imagecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>621</b><br />
<br />
<b>Warning</b>: imagecopyresampled() expects parameter 1 to be resource, boolean given in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>623</b><br />
<br />
<b>Warning</b>: imagejpeg() expects parameter 1 to be resource, boolean given in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>626</b><br />
<br />
<b>Warning</b>: imagedestroy() expects parameter 1 to be resource, boolean given in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>627</b><br />
I turned on error reporting and it came up with this:
<b>Warning</b>: Division by zero in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>299</b><br />
<br />
<b>Warning</b>: imagecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>621</b><br />
<br />
<b>Warning</b>: imagecopyresampled() expects parameter 1 to be resource, boolean given in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>623</b><br />
<br />
<b>Warning</b>: imagejpeg() expects parameter 1 to be resource, boolean given in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>626</b><br />
<br />
<b>Warning</b>: imagedestroy() expects parameter 1 to be resource, boolean given in <b>/var/www/vhosts/mysite.com/httpdocs/components/com_customproperties/helper.php</b> on line <b>627</b><br />
Please Log in or Create an account to join the conversation.
- sa
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
12 years 10 months ago #380
by sa
Replied by sa on topic Re: Missing some thumbnails
Also when I look at the code the height and width of the img is set to 0?
Please Log in or Create an account to join the conversation.
- sa
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
12 years 10 months ago #381
by sa
Replied by sa on topic Re: Missing some thumbnails
Ahhhhhhh
nevermind. i figured it out. I had set the height to auto... didn't realize it only accepts px...
now it's working
nevermind. i figured it out. I had set the height to auto... didn't realize it only accepts px...
now it's working
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 10 months ago #382
by andrea_4g
Replied by andrea_4g on topic Re: Missing some thumbnails
Glad the problem is solved and thanks for the feedback.
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds