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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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...) |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| sorry guys, I am still having this problem. Any advice would be appreciated. Many thanks |
|
#3
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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 |
|
#8
| |||
| |||
| 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 |
|
#9
| |||
| |||
| 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. |
|
#10
| ||||
| ||||
| 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 |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |