![]() |
XML error
I am using the page search.php in the root of phpdig folder.
I then try to perform a search . If there are no results it seems to be ok, but when there are results to display I get this error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. I am using Windows2000 IIS. I noticed in a similar post that this may be a safe_mode issue so I checked php.ini and they are set to off (safe_mode and safe_mode_gid) Is it a server/safe mode issue or just a newbie XML problem ? (I am XML challenged at the moment) Any input would be greatly appreciated. Paul L cdncc@cdncc.com |
addition
this was the next line from the error page , i forgot to include it in the original post:
Only one top level element is allowed in an XML document. Error processing resource 'http://me.homeunix.org/phpdig/search.php?template_demo=.%2Ftemplates%2Fphpdig.html&site=0&path=&result_pa ge=search.php&query_string=cdn&search=Go...&limite=10&option=start'. Line 2, Position 2 <b>Notice</b>: Undefined variable: match_this_spot in <b>c:\inetpub\wwwroot\phpdig\libs\search_function.php</b> on line <b>332</b><br /> -^ |
Hi. In the search_function.php file, change:
PHP Code:
PHP Code:
|
thank you
Thanks Charter-Administrator
that did the trick !!! |
All times are GMT -8. The time now is 12:22 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.