Web Hosting Forum | Lunarpages
News: December 1st, 2008 - Submit Your URL in our Site of the Month Contest!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2008, 09:51:07 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Warning: htmlspecialchars() expects parameter 1 to be string, array given in /ho  (Read 414 times)
twinthings
Trekkie
**
Offline Offline

Posts: 18


« on: July 28, 2008, 04:19:35 AM »

Hi everybody,
I apologise if I asking this question in the wrong place.
When you log into my account on my oscommerce site. www.twinthings.com.au, and view your past purchases this is the code that shows;



Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/twint1/public_html/includes/functions/general.php on line 42

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/twint1/public_html/includes/functions/general.php on line 42


Can anyone help me to fix this please Confused

fiona


Logged
voyageofthedolphins
Intergalactic Cowboy
*****
Offline Offline

Posts: 55



« Reply #1 on: July 28, 2008, 11:23:46 AM »

Looks like the function has been used on an array instead of a string. Could be because its been used with array_map and the data being passed is an array, which would throw the error. Can you give us the exact code on line 42 of:

includes/functions/general.php
Logged

VOTD
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3522



« Reply #2 on: August 12, 2008, 08:50:48 AM »

I looked through all the calls to tep_output_string() and tep_output_string_protected(), and didn't see anything suspicious. This was in a vanilla osC system -- by any chance do you have any mods/add-ons installed? Perhaps one of them is miscoded and is calling the function with an array or object rather than a string.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM