In trying to submit a listing/item, I keep getting this error:
Fatal error: Call to undefined method onelink::country() in /home/xxxxxx/xxxxxxx/dir/includes/commonfuncs.php on line 2285
I haven't changed anything with the javacript or fields... and I've made sure my customized templates are up to date by downloading fresh untouched version (5.0.26) yesterday.
Most of the time I've just breezed through the sign up in testing and skip the address. I hadn't even notice this error.
As soon as the item has an address submitted or edited with an address, this error appears.
Here are lines 2277-2287 from my commonfunctions.php
{ // must use these fields: street (or address, or address1), city, country. optional: zip if ($alink->address) $street = $alink->address; else if ($alink->address1) $street = $alink->address1; else $street = $alink->street; if (!$street) return false; // don't generate coordinates for country, just if there's an address $q = urlencode($street) .', '. urlencode($alink->city); if ($alink->state) $q .= ', '. urlencode($alink->state); if ($alink->zip) $q .= ', '. $alink->zip; $q .= ', '. urlencode($alink->country()); $q = urlencode($q); }
It's when the field for state is clicked on to reveal the drop down list. Once you've picked a state, you can't do anything...submit or edit a listing.
Fatal error: Call to undefined method onelink::country() in /home/..../public_html/dir/includes/commonfuncs.php on line 2285
Comments on Fatal Error
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
In trying to submit a listing/item, I keep getting this error:
Fatal error: Call to undefined method onelink::country() in /home/xxxxxx/xxxxxxx/dir/includes/commonfuncs.php on line 2285
I haven't changed anything with the javacript or fields... and I've made sure my customized templates are up to date by downloading fresh untouched version (5.0.26) yesterday.
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
The error comes when I add an address to my item.
Most of the time I've just breezed through the sign up in testing and skip the address. I hadn't even notice this error.
As soon as the item has an address submitted or edited with an address, this error appears.
Here are lines 2277-2287 from my commonfunctions.php
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
Update:
I've been narrowing down when the error occurs.
It's when the field for state is clicked on to reveal the drop down list. Once you've picked a state, you can't do anything...submit or edit a listing.
Fatal error: Call to undefined method onelink::country() in /home/..../public_html/dir/includes/commonfuncs.php on line 2285
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
2285 $q .= ', '. urlencode($alink->country());
Shouldn't it be
2285 $q .= ', '. urlencode($alink->country);
??
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Error introduced in redesigning the countries to allow adding missing ones. Fixed.
Forum Regular
Usergroup: Customer
Joined: Nov 26, 2003
Total Topics: 70
Total Comments: 211
Thanks!