Quote by rww1960: This is only a problem in IE, the error is below. I used the same jpeg in all situations.
Fatal error: Call to undefined function: error() in /public_html/communitycenter/advt/account.php on line 168
Here is the code from line 168 of account.php
} else error( "Invalid image type, JPEG only" );
Here is the code from line 161 to 175 (It wrapped around in the copy and pasting).
makeThumb( $photo[ $i ], "{$ADVT_PATH}/images/thumb/{$photoid}.jpg" );
}
else
{
copy( $thumb[ $i ], "{$ADVT_PATH}/images/thumb/{$photoid}.jpg" );
}
} else error( "Invalid image type, JPEG only" );
}
}
$moredays != 0 ? $addtime = $moredays * 3600 * 24 : $addtime = 0;
DB_query( "UPDATE {$_TABLES['ad_ads']} SET subject='$subject', descript='$descript', url='$url', exp_date=exp_date+$addtime WHERE ad_id=$pe" ) or error( mysql_error() );
}
elseif( $action == "del_notice" )
What can cause this in IE and not in Forefox or Netscape 7.1. In Netscape 8.0.1 When sisplayed like IE I get the error when displayed like Firefox I do NOT get the error.
Any Help is GREATLY appreciated
RWW1960
User Edit mode errors:
RWW1960 I encountered the same problem. I can't understand why it occurs. I did however stop the fault occuring by doing the following on line 168: (existing) } else error( "Invalid image type, JPEG only" );
line 168: (modified) } //else error( "Invalid image type, JPEG only" );
The error code is not displayed anymore.
I also find that users can upload photo's when listing an add, however if they try to replace a photo through edit mode, the original photo's will be erased and the new ones will not be saved, so no photo's will be available, also the only text that may be edited without any errors codes showing is expirtion date.
I also had to disable the submission que as there was numerous errors I was encountering with this ( it must be another IE error?:
When I enabled the submission function I got the following error:
Fatal error: Call to undefined function: error() in ..../advt/submission.php on line 388
When submission is turned off all works fine.)
I hope this may be helpful, and if anyone has any better solutions it would be greatly appreciated.
Regards
Kev
Live everyday as if it was your last!