|
#1
|
|||
|
|||
|
Fatal error when generating thumbs
Okay, so I just got into this photoblog thing, and decided to go all out and add like 117 photos all at once. I used the Copy Folder addon thing and that was succesful, but it doesn't generate thumbnails for the images. So, with instruction, I went to the options page and tried to Re-Generate Thumbs but after thirty seconds, it gives me this message
Fatal error: Maximum execution time of 30 seconds exceeded in /home/consciou/public_html/tommyblue/theotherside/admin/index.php on line 1164 I would assume generating thumbs for over 100 images would take over 30 seconds, but it gives me an error message each time and only about 50 of them actually got thumbnails. I'm on a reasonably fast connection, and don't have access to anything faster, so what can I do? I don't see any way of just generating for sections of images, and I'm dreading manually importing the remaining 67 images. Is there any hope for me? Shouldn't pixelpost support blogs with over 50 images in them? Is regenerating impossible once you go past that point? Thanks for any help you can give... :wink: -Tommy |
|
#2
|
||||
|
||||
|
I can regenerate 107 thumbs on my own blog. It's a matter of server speed, so if you're on a slow server the maximum execution time will be reached and the script exits with a fatal error.
You can set a max execution time for the script that differs from the default value in php.ini, and be generous in that value, I can check out the exact line of code you need to enter later (tonight or tomorrow) if you don't do it yourself. All in all you brought up a good point and I will adress the issue. // punk
__________________
icq: 66760929 |
|
#3
|
|||
|
|||
|
Thanks for the reply... I'm sure I could figure out the code if only I knew where the php.ini file was? I checked the index.php file but couldn't find any code relating to a max execution time... Could you help me out? Oh and happy holydaze to everyone.
|
|
#4
|
|||
|
|||
|
Did you check with the most classical php already to find out about php settings?
Code:
<? print phpinfo(); ?> |
|
#5
|
||||
|
||||
|
Probably set_time_limit or max_execution_time.
set_time_limit(60); or max_execution_time(120); Add any of the line close to the top of the script (admin/index.php) and see what happens. Change the numbers, they are seconds. I have not tested or investigated any further, no time! 800 km in car tomorrow, happy holidays! // punk
__________________
icq: 66760929 |
| Post Reply |
| Thread Tools | |
|
|