Posted on: 05/18/05 05:58pm
By: rww1960
Fatal error: Call to undefined function: error() in /public_html/communitycenter/advt/account.php on line 168
Users are getting this error when trying to ad pics to an existing ad. I have duplicated this. One may have gotten one similiar when editing pics, I am unable to duplicate this.
Thanks in advance,
RWW1960
zClassifeds Fatal Error
Posted on: 05/20/05 03:09pm
By: rww1960
If anyone has a suggestion please let me know, we start promotion of the website by radio on Monday.
Thanks for your time,
RWW
zClassifeds Fatal Error
Posted on: 05/20/05 04:21pm
By: beewee
Pfft, I'm running zClassifieds and tried it over and over, but no problem like that is found or reproduced.
Did you check the permissions for the images+thums directories?
The mentioned line is at the end of the code for making thumbnails. Do you resize the thumbs with GDlib, or do people have to upload thumbs as well? Are you sure they did not try to upload GIF or PNG images (only JPG allowed)?
However, your directory structure is different. If the above is OK, and you still get the error, there is a path on line 89 of functions.inc.php to the public advt directory:
$menuitems[$LANG_ADVT['menuitem']] = $_CONF['site_url'] . "/advt/index.php";
Did you change that path already? If not, you might try to change that path to:
$menuitems[$LANG_ADVT['menuitem']] = $_CONF['site_url'] . "/communitycenter/advt/index.php";
Changing that path is just a wild guess, so change it back immediately if it doesn't help. Good luck!
zClassifeds Fatal Error
Posted on: 05/20/05 04:59pm
By: rww1960
Error only happens in Internet Explorer 6.0, works fine using Firefox 1.0.1 and Netscape 7.1. What now??
beewee thanks for the help have not changed anything since it only happens in IE. My daughter is getting married tomorrow have to go for now but will try changes tomorrow.
RWW
zClassifeds Fatal Error
Posted on: 05/20/05 05:00pm
By: beewee
How many people are having trouble? Could it be a problem with some security setting from IE?
zClassifeds Fatal Error
Posted on: 05/20/05 05:06pm
By: machinari
if it is only happening in IE, then I would take a look at the form's source in order to see if there are an abundance of consecutive spaces within input tags or if there are any unclosed tags, etc... IE can't handle some of that stuff where real browsers can.
zClassifeds Fatal Error
Posted on: 05/20/05 05:07pm
By: rww1960
I have been able to recreate this problem in IE. 2 users have had this problem both I think use IE, according to my site logs 100% IE.
RWW
zClassifeds Fatal Error
Posted on: 05/23/05 12:26pm
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
zClassifeds Fatal Error
Posted on: 05/27/05 12:32pm
By: rww1960
Had another complaint on this error....Help...
RWW
zClassifeds Fatal Error
Posted on: 05/31/05 01:57pm
By: rww1960
Using zClassifieds on another website have same problem. Does anybody have any ideas.
Thanks
zClassifeds Fatal Error
Posted on: 08/11/05 03:32am
By: k74
The following error is occuring when users are in edit mode tying to update images.
Fatal error: Call to undefined function: error() in ..../html/advt/account.php on line 168
Can anyone help with this error.
Regards
Kev
zClassifeds Fatal Error
Posted on: 08/12/05 01:22pm
By: rww1960
Still have this problem, is anyone interested in fixing this?
Thanks,
RWW1960
zClassifeds Fatal Error
Posted on: 08/12/05 07:28pm
By: trinity
i dont have zclasifides installed anywhere st the moment but i can tell you the problem is probaly loacted in the template files. Try doing a view source on the last page that renders before the error
zClassifeds Fatal Error
Posted on: 08/14/05 09:04pm
By: k74
[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[/QUOTE]
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