errors

New to the board and want to practice? Do it here. Find a bug in the forum, report it here.

Moderator: Tuna Cowboy

errors

Postby joe » Tue Dec 19, 2006 9:28 am

getting an error when trying to go into this thread

http://www.topdeadcentersc.com/phpbb2/v ... .php?t=577

Fatal error: Maximum execution time of 30 seconds exceeded in f:\Domains\topdeadcentersc.com\wwwroot\phpbb2\viewtopic.php on line 861


goof's avatar?
User avatar
joe
Site Admin
 
Posts: 8233
Joined: Tue Apr 25, 2006 10:06 pm
Location: Sunny Eugene, Oregon

Postby poopShotgun » Tue Dec 19, 2006 9:42 am

I'll take a look at the code and try to track it down. Should have some free time here at work in an hour or so. :twisted:

EDIT: Here's the problem line of code:
Code: Select all
list($width, $height, $type, $attr) = getimagesize($postrow[$i]['user_avatar']);

What's happening is that the board is attempting to get some image attributes from a file and either the file is missing, it's taking too long to get the file from the server, or the server keeps timing out.

I'm not sure what avatar is causing it (it's in the avatar resize code), but images hosted on sites such as Photobucket could be causing the problem, especially since such sites are typically bandwidth-limited.

Three possible solutions:
1. Host all avatar images locally on our server and limit their size. PHPBB can already handle this and we can monitor disk usage every month or so.
2. Tell people to stop using Photobucket and similar services. I can probably write some code to filter out images from certain domains.
3. Limit image attribute retrieval time to a set ammount. If that time is exceeded, do not use the image. Basically, we catch the error before the board code actually errors. This way we can put up a dead image link and the page still loads. I'll see if this is feasible.

The easiest for me is number 1. Not sure how you feel about this, Joe, so pick one you like.
Splash me on in the morning and wear the great smell of me all day long.
User avatar
poopShotgun
 
Posts: 1601
Joined: Fri Apr 28, 2006 7:13 am
Location: Under the evil influence of Uranus

Postby poopShotgun » Tue Dec 19, 2006 10:11 am

Changed Tuna's avatar and now I can get into the message. There's the problem.
Splash me on in the morning and wear the great smell of me all day long.
User avatar
poopShotgun
 
Posts: 1601
Joined: Fri Apr 28, 2006 7:13 am
Location: Under the evil influence of Uranus

Postby joe » Tue Dec 19, 2006 10:46 am

sounds like Geoof's temporary image hosting is the culpret.
User avatar
joe
Site Admin
 
Posts: 8233
Joined: Tue Apr 25, 2006 10:06 pm
Location: Sunny Eugene, Oregon

Postby Tuna Cowboy » Tue Dec 19, 2006 5:36 pm

ok, then i vote we have a hosting for our own avatars on our site. i liked my infini-hoff
Cheers,
Geoff
User avatar
Tuna Cowboy
Forum Moderator
 
Posts: 4976
Joined: Mon May 01, 2006 6:21 pm
Location: Eugene, Or

Postby joe » Tue Dec 19, 2006 5:37 pm

email it to me and I'll upload it for you. we'll create a way to upload stuff for you, but it will take some time.
User avatar
joe
Site Admin
 
Posts: 8233
Joined: Tue Apr 25, 2006 10:06 pm
Location: Sunny Eugene, Oregon

Postby Tuna Cowboy » Tue Dec 19, 2006 5:39 pm

i'll send you one next time i find something i like.
Cheers,
Geoff
User avatar
Tuna Cowboy
Forum Moderator
 
Posts: 4976
Joined: Mon May 01, 2006 6:21 pm
Location: Eugene, Or


Return to Test Messages and Forum Updates

Who is online

Users browsing this forum: No registered users and 2 guests

cron