All posts in the topic Zip/Postal Codes (Short link)
Summary
- There are 4 posts — by 2 authors — in this topic.
- Latest post made by Chis Shreve at 2007 Oct 29 23:39 UTC
To lazy to search it out. When entering one zip/postalcode
this error comes up
"Sorry: you are unable to save data.
Reason: Zipcode should have a integral value" were to change it so you can
enter alphanumeric data as this is important? any ideas guys & gals
Ah, an unnecessarily American error, that one! I hadn't complained
about this one as in New Zealand we also have numerical postcodes, but I
can see it being a problem in many other countries ;-)
The quickest way I know of to find things like this is to grep for the
error... in your PA source root, do this:
grep -r "Zipcode should have a integral value" .
That brings up this:
web/languages/english/MessagesHandler.php: 3000
=> 'Zipcode should have a integral value.',
So now:
grep -r get_message . | grep 3000
That brings up:
web/BetaBlockModules/EditProfileModule/general_info.tpl: $msg =
MessagesHandler::get_message(3000);
If you open that file in a text editor, you'll see this bit:
//check for invalid zipcode in general profile.
$postal_code = @trim($_POST['postal_code']['value']);
if (!empty($postal_code) && !is_numeric($postal_code)) {
$msg = MessagesHandler::get_message(3000);
$error = TRUE;
}
Just delete all of that code to get rid of this error.
I've disabled this in our current bleeding-edge code, so it'll end up on
the updates.peopleaggregator.org website next time we do a release.
It's been a while since the last release, but we're going to try to do
one soon.
Cheers,
Phil
Chis Shreve wrote:
> To lazy to search it out. When entering one zip/postalcode
> this error comes up
> "Sorry: you are unable to save data.
> Reason: Zipcode should have a integral value" were to change it so you can
enter alphanumeric data as this is important? any ideas guys & gals
Thanks Phillip
In Canada we have the alpha numeric pc thanks for the info. Any time table for
the next release. Love this program it's so far ahead of anything else out
there.
Regards Chris