Page 1 of 2 12 LastLast
Results 1 to 10 of 11

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 ...

      
  1. #1
    New Member
    Join Date
    May 2005
    Posts
    6
    Rep Power
    0


    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...)

  2. #2
    New Member
    Join Date
    May 2005
    Posts
    6
    Rep Power
    0


    Default

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

    Many thanks

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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

  4. #4
    New Member
    Join Date
    May 2005
    Posts
    6
    Rep Power
    0


    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

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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

  6. #6
    New Member
    Join Date
    May 2005
    Posts
    6
    Rep Power
    0


    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

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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

  8. #8
    Member
    Join Date
    Mar 2003
    Posts
    77
    Rep Power
    0


    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

  9. #9
    New Member
    Join Date
    May 2005
    Posts
    6
    Rep Power
    0


    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.

  10. #10
    New Member blum's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    21
    Rep Power
    0


    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

Page 1 of 2 12 LastLast

Similar Threads

  1. Warning: htmlspecialchars() error
    By warrenthewindmill in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 08-13-2006, 09:31 AM
  2. Fresh Install = meta_tags.php error
    By Lobotaman in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 09-18-2005, 03:50 PM
  3. Fresh Install Ms2-Max Installation Error
    By edwardbob in forum osCMax v1.7 Installation
    Replies: 4
    Last Post: 05-28-2005, 03:35 PM
  4. Fresh Install.....
    By ProjectShadow in forum osCMax v1.7 Installation
    Replies: 8
    Last Post: 10-18-2004, 03:54 AM
  5. Fresh install error
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 02-10-2004, 07:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •