RE: PHP 4.3.2 Compatability

heddesheimer <[email protected]>
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <14902c1ed31b9bd232a2754fb7b193fa@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=174337#174337
----------------------------------------------------------------

I have a similar problem with a customer running the shop at a german host (strato) with PHP 4.1.2

As far as found out, the session seems not to be stored properly. When I put an item in the cart I get this print_r-output from $cart and $_SESSION:

[code]
shoppingcart Object
(
    [contents] => Array
        (
            [5] => Array
                (
                    [qty] => 1
                )
        )
    [total] => 0
    [weight] => 0
    [content_type] => 
    [cartID] => 33489
)
:::::::::::: session::::::::::
Array
(
    [cart] => shoppingcart Object
        (
            [contents] => Array
                (
                    [5] => Array
                        (
                            [qty] => 1
                        )
                )
            [total] => 0
            [weight] => 0
            [content_type] => 
            [cartID] => 33489
        )
    [language] => german
    [languages_id] => 2
    [currency] => USD
    [navigation] => navigationhistory Object
        (
            [path] => Array
                (
                    [0] => Array
                        (
                            [page] => product_info.php
                            [mode] => NONSSL
                            [get] => Array
                                (
                                    [products_id] => 5
                                    [action] => add_product
                                )
                            [post] => Array
                                (
                                    [products_id] => 5
                                    [x] => 85
                                    [y] => 9
                                )
                        )
                )
            [snapshot] => Array
                (
                )
        )
)
[/code]

after the redirect to shopping_cart.php (i replaced the redirection with a simple link) I got a "your cart is empty". When I place the same item in the cart again, I get this:

[code]
shoppingcart Object
(
    [contents] => Array
        (
            [16] => Array
                (
                    [qty] => 1
                )
        )
    [total] => 0
    [weight] => 0
    [content_type] => 
    [cartID] => 54909
)
:::::::::::: session::::::::::
Array
(
)
[/code]

As you can see, there is no more session information available. I did not dig deeper into this because my customer agreed to change hosts for their shop, because this host was too slow for the shop anyway.

Marian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.