Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 12:02 pm EST

Geeklog Forums

zClassifeds Fatal Error


Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
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
 Quote

Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
If anyone has a suggestion please let me know, we start promotion of the website by radio on Monday.

Thanks for your time,

RWW
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
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:
Text Formatted Code
    $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:
Text Formatted Code
    $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!
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
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
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
How many people are having trouble? Could it be a problem with some security setting from IE?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
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.
 Quote

Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
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
 Quote

Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
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

Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
Had another complaint on this error....Help...

RWW
 Quote

Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
Using zClassifieds on another website have same problem. Does anybody have any ideas.

Thanks
 Quote

Status: offline

k74

Forum User
Full Member
Registered: 09/19/04
Posts: 128
Location:Australia
cold
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
Live everyday as if it was your last!
 Quote

Status: offline

rww1960

Forum User
Junior
Registered: 04/28/05
Posts: 16
Still have this problem, is anyone interested in fixing this?

Thanks,
RWW1960
 Quote

Status: offline

trinity

Forum User
Regular Poster
Registered: 01/30/05
Posts: 80
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
glFusion - Technology Fused with Style - www.gllabs.org
 Quote

Status: offline

k74

Forum User
Full Member
Registered: 09/19/04
Posts: 128
Location:Australia
determined
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.)

Can someone help me I hope this may be helpful, and if anyone has any better solutions it would be greatly appreciated.

Regards

Kev Very Happy



Live everyday as if it was your last!
 Quote

All times are EST. The time is now 12:02 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content