It still doesn't work. When you add a site, it does not wait for the thumbnail to be created before posting. This was annoying all the way back to the first 7 and it has not been dealt with. The underlying code needs to make the page WAIT for the thumbnail creation to be completed BEFORE the page is posted to the site.
If you hit the refresh button about a dozen times, it will EVENTUALLY create the thumb.
http://towtalk.net ... Hosted by Zarconia.net! |
I found my old post on this. You can continue here or there if you wish.
#topic/Bug-Report-Sites-mod-thumbnails.htm
http://towtalk.net ... Hosted by Zarconia.net! |
Well, that would be nice, but also a problem.
PHP scripts cannot be made to wait indefinitely. After a certain period of time(Configurable on the server) the server will kill a script that has been running longer than that set time.
This timeout exists to prevent hung scripts from taking down a server.
So. The only real option i see is after the site is submitted, the member should be presented with a message that says something to the effect of.
"Your site has been submitted to our database. Please allow bla, bla, bla time for the site to be fetched and for the thumbnail to appear"
And then bring the member back to the sites main list or whatever. I am sure something can be done, but forcing the script to wait is not really a viable option due to the way PHP works. If something goes wrong, the script will sit there until it is eventually killed by the server.
https://www.deanbassett.com |
Really? Then how come it doesn't kill the video conversion script. I've seen that take 20 minutes or more. We're only talking a few minutes here on average. I don;t see why the script can't suspend itself for a short period, then go back and check for the thumb. http://towtalk.net ... Hosted by Zarconia.net! |
Those are scripts called from cron. A bit different. I have generally only seen the timeout occur for scripts run from the web server. Which this is.
And your right, it should be able to be done, but i know it will open up another can of worms. There are a lot of programming, browser and buffer flushing issues that have to be dealt with when putting a script to sleep. Hmm, and i just remembered that putting a script to sleep also suspends the timeout clock.
Ah, anyway, boonex would have to figure that out.
https://www.deanbassett.com |
Irf you follow that link above, you'll find DeeEmm's fix. It does just what you were describing. I added the fix and I think it will help for now. http://towtalk.net ... Hosted by Zarconia.net! |