Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call to undefined function


Vger

Recommended Posts

I am test running this contribution at the moment on my own computer, using Xitami web server. As I go through the checkout process I get this error (which relates to 'htmlspecialchars' in general.php)

 

Fatal error: Call to undefined function: htmlspecialchar() in

C:\Xitami\htdocs\mondberg\includes\functions\general.php on line 42

 

this is the code it is tripping up on

 

return htmlspecialchar($string);

 

If I rem that out then the process goes through, but with no customer name, billing address, shipping address etc., (obviously no good doing that!)

 

Anyone have any idea as to what is going wrong here?

 

Many Thanks - Vger

Edited by Vger
Link to comment
Share on other sites

In catalog/includes/functions/general.php line 42 should read:

 

      return htmlspecialchars($string);

 

You have an 's' missing :blink:

 

Matti

Link to comment
Share on other sites

OK, ignore that last post. Found the missing 's' just don't know why it showed in one text editor, and not show in another. I now progress onto the next screen (checkout_confirmation.php), but where the entries for billing and delivery address should be I get this error.

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\Xitami\htdocs\mondberg\includes\functions\general.php on line 42

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\Xitami\htdocs\mondberg\includes\functions\general.php on line 42

 

Any ideas would be appreciated.

 

Vger

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...