ColinHarbut Posted February 26, 2007 Share Posted February 26, 2007 Can anybody tell me what to do to fix this problem? http://www.jewellery-connection.com/search-jewelry/productSearch.php I dont know much about PHP but really want and need this search function to work. Thank you for your help. Colin Harbut http://www.colinharbut.com Link to comment https://forums.phpfreaks.com/topic/40133-php-search-error/ Share on other sites More sharing options...
magnetica Posted February 26, 2007 Share Posted February 26, 2007 Error: Fatal error: Class 'SoapClient' not found in /usr/www/users/charbut/jewellery-connection/search-jewelry/productSearch.php on line 56 Could you tell us what code you have on line 56? Link to comment https://forums.phpfreaks.com/topic/40133-php-search-error/#findComment-194157 Share on other sites More sharing options...
Hooker Posted February 26, 2007 Share Posted February 26, 2007 Do you have PHP5 installed on the server? Link to comment https://forums.phpfreaks.com/topic/40133-php-search-error/#findComment-194188 Share on other sites More sharing options...
skali Posted February 26, 2007 Share Posted February 26, 2007 PHP documentation states regarding SoapClient extension that This extension is only available if PHP was configured with --enable-soap. So you can put a phpinfo page on your server and check if your php is compiled with this extension. Link to comment https://forums.phpfreaks.com/topic/40133-php-search-error/#findComment-194223 Share on other sites More sharing options...
GT2007 Posted February 26, 2007 Share Posted February 26, 2007 Hello, I found this information on another site that may help you out. There is a place in the php.ini file where you load all the extensions you want to use. You need to add the SOAP extension there, something like: extension=php_soap.dll Also make sure the "extension_dir" line has the correct path to the extensions. Example: extension_dir = ".ext" Link to comment https://forums.phpfreaks.com/topic/40133-php-search-error/#findComment-194427 Share on other sites More sharing options...
ColinHarbut Posted February 26, 2007 Author Share Posted February 26, 2007 Thank you for all your help. Line 56 says: $client = new SoapClient('productSearchService.wsdl', array('trace'=> true)); I dont think PHP5 is on the server but I am using a .htaccess file which now shows the search document as before it wouldn't even load. I really dont know much about PHP so I took a php.ini file from here: http://cvs.php.net/viewvc.cgi/php4.fubar/php.ini-recommended?revision=1.140 And I can see the extension_dir line you are referring to, but Im not exactly sure how to manipulate that file. Can you please help me from here? I'm PHP illiterate. Maybe somebody out there can even find a second to do it for me? Where exactly do I put the PHP.ini file? In the web site directory (jewellery-connection.com) or the directory above that where all my other unqiue my web site directories are located? This is what my hosting comapny said about the issue. Hello, This problem looks to be an authoring issue that we probably cannot help with. The "//This requires PHP 5" line that is echoed to the browser is the first line of the script, not an error message. It looks like it should be commented out, but is not. It is possible that the script is trying to load a feature not available in our configuration. Specifically, the productSearchService.wsdl file. You may be able to install and configure this manually, but we cannot offer support for how to do that. ------ Thanks again for all your help, Colin Link to comment https://forums.phpfreaks.com/topic/40133-php-search-error/#findComment-194606 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.