[Chameleon] LocateByAttribute Error message

Delfos, Jacob Jacob.Delfos at maunsell.com
Mon Mar 10 18:57:53 EDT 2008


Hi Mariette,
 
For some reason, MapServer feels it has to throw an error if a query
does not return anything. This results in a PHP warning. I think it
started doing this since version 5. I do not think you can prevent
mapserver from throwing this error, but you can configure PHP not to
output warnings. In php.ini, look for "error_reporting". You would have
to set it to something like "E_ERROR" to prevent it from displaying
warnings. There is obviously the risk that you'd miss meaningful
warnings, though.
 
regards,
 
Jacob
 
 
 


________________________________

	From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Mariette
	Sent: 11 March 2008 00:35
	To: chameleon at lists.maptools.org
	Subject: [Chameleon] LocateByAttribute Error message
	
	

	Greetings,

	 

	I am getting the following error message when a
querybyattributes returns no results.

	 

	Warning: [MapServer Error]: msQueryByAttributes(): No matching
record(s) found. in
C:\ms4w\apps\chameleon\htdocs\widgets\LocateByAttribute\searchresults.ph
tml on line 364
	No results found for 'Jake'

	 

	How do I prevent the Mapserver Error message, so that the only
message you see is "No results found for 'Jake'"

	 

	Thank You

	 

	********************************

	Mariette Hachey

	GIS Technologist

	GeoNet Technologies Inc.

	Box 22, Suite 211

	90 University Ave

	Charlottetown, PE

	Canada, C1A 4K9

	********************************

	 


	No virus found in this outgoing message.
	Checked by AVG.
	Version: 7.5.518 / Virus Database: 269.21.7/1319 - Release Date:
3/8/2008 10:14 AM
	



This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20080311/435cf83b/attachment.html


More information about the Chameleon mailing list