The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I get a Fatal Error Maximum execution time of 30 seconds exceeded on line 19.
Code:
while($counter <= count($photos_uploaded)) {
if($photos_uploaded['size'][$counter] > 0) {
if(!array_key_exists($photos_uploaded['type'][$counter], $photo_types)) {
$result_final .= 'File ' . ($counter + 1) .
' is not a photo<br />';
} else {
// Great the file is an image, we will add this file
}
}
}
|
|
#2
|
||||
|
||||
|
don't allow to much photo uploads at the same time
|
|
#3
|
||||
|
||||
|
Oddly enough, not even one will go through.
![]() I downloaded a file that was already done, from the tutorial I was reading and it works just fine. I must of missed something. Ok, the uploading works well already. Granted, I still need testing with it. But here's the viewgallery page. http://www.pro-photos.com/uploading/viewgallery.php If you give it time, or maybe right off the bat, you'll get errors. In a short time, they'll go away and it'll be as if they were never there. In time, they'll show up again. Why does that happen? I really don't understand. |
|
#4
|
|||
|
|||
|
Increment your counter.
|
|
#5
|
||||
|
||||
|
oops ^^
right, you are not incrementing the counter variable, so it's an endless loop |
|
#6
|
||||
|
||||
|
uh huh. o.o;
Sorry, that's one thing I'm not sure how to do. Here's my block of code: Code:
$result = mysql_query( "SELECT c.album_id,c.album_name,COUNT(photo_id)
FROM gallery_albums
WHERE customer = '".$customer."' as c
LEFT JOIN gallery_photos as p ON p.photo_album = c.album_id
GROUP BY c.album_id" );
line 27-> while( $row = mysql_fetch_array( $result ) )
{
$result_array[] = "<a href='viewgallery.php?aid=".$row[0]."'>".$row[1]."</a> "."(".$row[2].")";
}
line 31-> mysql_free_result( $result );
Quote:
|
|
#7
|
|||
|
|||
|
The query probably failed (and certainly did given it's not syntactually valid).
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|