osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

htmlspecialchars() -error in fresh install

This is a discussion on htmlspecialchars() -error in fresh install within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/domains/wargamestore.com/user/htdocs/includes/functions/general.php on line 42 The above error is occuring ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-24-2005, 03:59 PM
New Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mazhar
Default htmlspecialchars() -error in fresh install

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/domains/wargamestore.com/user/htdocs/includes/functions/general.php on line 42



The above error is occuring in a fresh installation of OSCMAX v2.

The error is cited in these threads :

http://www.oscdox.com/index.php?name...pic&t=1664

http://www.oscdox.com/PNphpBB2-viewtopi ... chars.html

http://www.oscdox.com/PNphpBB2-viewtopi ... chars.html

Anyone know why this is occuring? Any advice would be helpful


Many thanks.

(Something to do with the states and countries. and only occurs via checkout procedure...)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-27-2005, 07:20 AM
New Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mazhar
Default

sorry guys, I am still having this problem. Any advice would be appreciated.

Many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-27-2005, 10:00 AM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default

give us the name of the file where the problem occurs. These are probable files that might be encountered during checkout:

checkout_confirmation.php
checkout_payment.php
checkout_shipping_address.php
address_book.php
account_history_info.php
account_history.php
account.php

--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-27-2005, 10:15 AM
New Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mazhar
Default

Thanks for your reply

The error occurs during 'proceed to checkout' . The actual checkout procedure is ok until the page:

checkout_confirmation.php

The error shows under the billing address
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-27-2005, 02:57 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default

paste this same code into line 52 and 152 of checkout_process.php, then buy some stuff and go through checkout... then copy the resulting variable output to this forum.

echo '<pre>';
print_r($order->billing);
echo '</pre>';

Also helpful: which payment and shipping modules do you have active, and which did you use to produce this error?


--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 07-27-2005, 03:38 PM
New Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mazhar
Default

Payment is default (cash on delivery) Shipping is default too. Even if i use paypal, the same error occurs

Following your instructions above i got...



Array
(
[firstname] =>
[lastname] =>
[company] =>
[street_address] =>
[suburb] =>
[city] =>
[postcode] =>
[state] =>
[zone_id] =>
[country] => Array
(
[id] =>
[title] =>
[iso_code_2] =>
[iso_code_3] =>
)

[country_id] =>
[format_id] =>
)

Array
(
[firstname] =>
[lastname] =>
[company] =>
[street_address] =>
[suburb] =>
[city] =>
[postcode] =>
[state] =>
[zone_id] =>
[country] => Array
(
[id] =>
[title] =>
[iso_code_2] =>
[iso_code_3] =>
)

[country_id] =>
[format_id] =>
)


Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/stores/store1/catalog/checkout_process.php:53) in /var/www/html/stores/store1/catalog/includes/functions/general.php on line 29
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 07-27-2005, 09:30 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default

hehehe... well that does not look too good...

you can delete the lines you added... the problem is earlier in the checkout process (like you said). It appears that somewhere the order is being reset.

Did you add any contributions or make any of the patches from the bugtracker to this installation?

I am doing some testing to my own set of newly installed shops... one modded, others not, as I am having a problem that when the item gets added to the cart the products_id is not added to the shopping_cart class ->contents array... the interesting thing is that I cannot reproduce YOUR error... hmmm.

I would recomend that you put off any more work until the next release candidate as 2.0rc1 seems quite unstable... probably just a few glitches here and there, but hold off for now... except you can work on the theme... that part of the shop seems to work well

see my newest shop here: windwhisperer.com

--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-27-2005, 10:08 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default

OK, when you add your product to the shopping cart, does it actually show up in the shopping cart? Is there a subtotal in the shopping cart?

In my installs that is where I run into the "first" problem in checkout... basically if there is a $cart with no product ids, this is possibly the root issue for the $orders variables not getting populated.

--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 07-28-2005, 01:19 AM
New Member
 
Join Date: May 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mazhar
Default

Hi

No additional contributions or patches. The product does show up in the cart. However, whilst the shippining in the previous tests were set to 'free',
i just redid the test with a shipping flat rate charge and this was neither showing nor accountable anywhere.

Yes I will put off v2 till the next release candidate. Thanks for your help anyway.

Best regards.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 03-24-2006, 08:46 AM
blum's Avatar
New Member
 
Join Date: Oct 2004
Location: Canada
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
blum
Default I have the same problem in a fresh install

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/html/shop/includes/functions/general.php on line 48

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/html/shop/includes/functions/general.php on line 48
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
Warning: htmlspecialchars() error warrenthewindmill osCommerce 2.2 Modification Help 3 08-13-2006 09:31 AM
Fresh Install = meta_tags.php error Lobotaman osCMax v2 Installation issues 2 09-18-2005 03:50 PM
Fresh Install Ms2-Max Installation Error edwardbob osCMax v1.7 Installation 4 05-28-2005 03:35 PM
Fresh Install..... ProjectShadow osCMax v1.7 Installation 8 10-18-2004 03:54 AM
Fresh install error Anonymous osCMax v1.7 Installation 2 02-10-2004 07:38 AM


All times are GMT -8. The time now is 12:16 PM.


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