osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Warning: htmlspecialchars() error

This is a discussion on Warning: htmlspecialchars() error within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Code: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/domains/wargamestore.com/user/htdocs/includes/functions/general.php on line 42 Line 42 says: Code: ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-06-2003, 02:52 PM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
Default Warning: htmlspecialchars() error

Code:
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/domains/wargamestore.com/user/htdocs/includes/functions/general.php on line 42
Line 42 says:
Code:
return htmlspecialchars ($string)
I replaced with
Code:
echo($string)
to see what was being returned and it displays:
Code:
firstnamelastnameline1ofaddressline2ofaddresscityofcustomerpostcodeArray

,
Don't know what Array is at the end of this string? Firstname, lastname etc are the details I created the test account with but the Array then all the spaces and the , really has me beat.
I searched and found a similar problem to do with country processing and I notice I do not show country anywhere on my site after the account is created.
Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-06-2003, 04:57 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,079
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

It would help if you gave us some background on the mod you did to create the error. Thanks!
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-07-2003, 12:19 AM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
Default

I had installed:
http://forums.oscommerce.com/index.p...=64545&hl=
but was unable to get it working, so I replaced the modded files with my backup versions.

I won't mention the name here but after wrestling with this for 2 days I decided to try a certain well known brand of file comparison software. I ran it against a backup from about 7 days ago. Problem solved! I don't know how it happened but there was a difference in general.php line 265 which should have been:
Code:
return $country_array['countries_name'];
but which in my later file was:
Code:
return $country_array['my_country'];
I've checked through the code for the above mod and can find nothing that suggests this change so I cannot figure how I came to do this, but I must have. I won't ever be without file comparison software again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-13-2006, 09:31 AM
New Member
 
Join Date: Apr 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cherven
Default

I have this same error, is there a fix for it yet?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
htmlspecialchars() -error in fresh install mazhar osCMax v2 Installation issues 10 08-13-2006 09:27 AM
BTS 1.2/Max1.5.5 warning & fatal error jptechnical osCMax v1.7 General Mods Discussion 12 01-15-2005 09:47 AM
Error Message Help, Warning: session_start ????? emerge23 osCMax v1.7 Discussion 3 11-16-2004 11:43 AM
Installation problems (fatal error and warning) Martin_J osCommerce 2.2 Installation Help 1 02-04-2004 06:27 AM
Help about warning Anonymous osCommerce 2.2 Installation Help 2 11-09-2002 01:11 PM


All times are GMT -8. The time now is 05:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax