Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] MV3 -> MV4 strangeness



Hi,

We're building a new server using MV4.03 and migrating our MV3 stores
over to it.  Most are going fine with minor problems we've already
sorted out.  A few of them are causing no end of problems though.

For the problem catalogs, all derived from the same base by the way,
I get 

"FATAL error

 Data was not stored in SessionDBM"

when first entering checkout.html.  You can see the items in the
cart at this time, the error comes up after the contents are
displayed.

The directory session does exist and does in fact have session info
in it.  Changing the session type to DB_File and writing to
session.db eliminates the error, but probably only because the test is
skipped in DB_File mode.  The following is all based on file based
sessions.

And yes, all files and dirs are modes 664 or 775 and owned by
minivend.minivend

When we start a new session on first hit.  Looks good

Vend::Session:debug: init_session 6kTFK6ZC:dpcsys.com is: {
  'values' => {
    'mv_shipmode' => 'upsg'
  },
  'scratch' => {},
  'arg' => undef,
  'referer' => undef,
  'browser' => 'Mozilla/4.7 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386)',
  'carts' => {
    'main' => []
  },
  'ohost' => '206.16.184.7'
}

SELECT A CATEGORY
Vend::Session:debug: read session id=6kTFK6ZC  name=6kTFK6ZC:dpcsys.com 

Vend::Session:debug: Session:
HASH(0x8a8d21c)

SELECT A SUBCATEGORY
Vend::Session:debug: open_session: File_sessions=1 Sub=CODE(0x83b56dc)
Vend::Session:debug: read session id=6kTFK6ZC  name=6kTFK6ZC:dpcsys.com 

Vend::Session:debug: Session:
HASH(0x8a8d2d0)

SELECT A PRODUCT, ditto
PLACE IN BASKET, ditto

CHECKOUT
Vend::Session:debug: open_session: File_sessions=1 Sub=CODE(0x83b56dc)
Vend::Session:debug: read session id=6kTFK6ZC  name=6kTFK6ZC:dpcsys.com 

Vend::Session:debug: Session:
HASH(0x8a82398)

Vend::Session:debug: write session id=6kTFK6ZC  name=6kTFK6ZC:dpcsys.com

Global symbol "$VAR1" requires explicit package name at (eval 102) line 63, <UNEV> chunk 1.
BAM! ^^^^^^^^^^^^^^^^^^

At this point if you click on "Place Order!" anyway you get
Vend::Session:debug: Session:


Vend::Session:debug: new session id=6kTFK6ZC  name=6kTFK6ZC:dpcsys.com

Vend::Session:debug: name session user= host=dpcsys.com (dpcsys.com)

Vend::Session:debug: name session id=jBGD3Rhb  name=jBGD3Rhb:dpcsys.com

Vend::Session:debug: init_session jBGD3Rhb:dpcsys.com is: {
  'values' => {
    'mv_shipmode' => 'upsg'
  },
  'scratch' => {},
  'arg' => undef,
  'referer' => 'http://newstore.lightoutlet.com/cgi-bin/lighting/process?id=6kTFK6ZC&mv_pc=27',
  'browser' => 'Mozilla/4.7 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386)',
  'carts' => {
    'main' => []
  },
  'ohost' => '206.16.184.7'
}

A nice neat, empty new session.

If you look at the session file right after entering the checkout page
you see this.

 'carts' => {
    'UNKNOWN' => [
      {
        'code' => '30462',
        'mv_ip' => 0,
        'mv_ib' => 'products',
        'quantity' => '1'
      }
    ],
    'mv_shipping' => undef,
    'main' => [
      $VAR1->{'carts'}{'UNKNOWN'}[0]
    ]
  },

I'm only using one cart and none of the [order] tags include a cart name.
I've grepped for "[cart" and mv_cartname in etc, pages and pages/ord finding 
nothing.

So something on the checkout.html page is causing
a) problems recording the session
b) resulting in a new session.
c) g-d knows what :(

This is using basic/pages/checkout.html with *no* changes.
We've converted several other catalogs with nothing but the
minor problems you'ld expect after reading WHATSNEW

I've attached two session files, one named good_session, this is
when the user is looking at basket.html.  The other, bad_session,
is when the user is looking at checkout.html.

Anyone have a clue for me????

Thanks,
Dan
-- 
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82
{
  'browser' => 'Mozilla/4.7 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386)',
  'one_time_path_alias' => {},
  'last_url' => '/ord/basket',
  'pageCount' => '74',
  'scratch' => {
    'sessarg1' => 'AVC-Door',
    'urlcat' => 'Built-In Household Products',
    'urlmodel0' => 'Built-In_Household_Products',
    'Continue shopping' => '
mv_todo=return
mv_nextpage=categories
',
    'urlmodel1' => 'NuTone',
    'Check out' => '
mv_todo=return
mv_nextpage=ord/checkout
',
    'urlman' => 'NuTone'
  },
  'discount' => {},
  'accesses' => '11',
  'referer' => 'http://newstore.lightoutlet.com/cgi-bin/lighting/products?id=6kTFK6ZC&mv_arg=H%2d9112%2d890&mv_pc=24',
  'id' => '78K9VMM5',
  'ohost' => '206.16.184.7',
  'time' => 955399204,
  'values' => {
    'mv_checkout' => 'ord/checkout',
    'mv_action' => 'refresh',
    'mv_session_id' => '78K9VMM5',
    'mv_orderpage' => 'ord/basket',
    'mv_shipmode' => 'upsg',
    'mv_order_item' => '1074',
    'quantity0' => '2'
  },
  'path_alias' => {},
  'latest_subtotal' => '745.81',
  'arg' => undef,
  'carts' => {
    'main' => [
      {
        'code' => '2133',
        'mv_ip' => 0,
        'mv_ib' => 'products',
        'quantity' => '2'
      },
      {
        'mv_ip' => 1,
        'code' => '1074',
        'mv_ib' => 'products',
        'quantity' => 1
      }
    ]
  },
  'host' => 'dpcsys.com',
  'user' => undef
}
{
  'browser' => 'Mozilla/4.7 [en] (X11; I; FreeBSD 2.2.5-RELEASE i386)',
  'one_time_path_alias' => {},
  'pageCount' => '76',
  'last_url' => '/process',
  'scratch' => {
    'Place Order!' => '
mv_todo=submit
mv_nextpage=ord/receipt
',
    'urlmodel0' => 'Built-In_Household_Products',
    'urlmodel1' => 'NuTone',
    'Check out' => '
mv_todo=return
mv_nextpage=ord/checkout
',
    'mv_item_object' => undef,
    'sessarg1' => 'AVC-Door',
    'urlcat' => 'Built-In Household Products',
    'base' => '(745.81 * 0.07) < 15.00 ? 15.00 : (745.81 * 0.07)',
    'Continue shopping' => '
mv_todo=return
mv_nextpage=categories
',
    'urlman' => 'NuTone'
  },
  'discount' => {},
  'accesses' => 0,
  'referer' => 'http://newstore.lightoutlet.com/cgi-bin/lighting/products?id=6kTFK6ZC&mv_arg=H%2d9112%2d890&mv_pc=24',
  'ohost' => '206.16.184.7',
  'id' => '78K9VMM5',
  'time' => 955400997,
  'latest_total' => '798.0167',
  'values' => {
    'quantity1' => '1',
    'mv_action' => 'refresh',
    'state' => '',
    'save_country' => 'US',
    'mv_session_id' => '78K9VMM5',
    'zip' => '',
    'country' => 'US',
    'mv_checkout' => 'ord/checkout',
    'mv_orderpage' => 'ord/basket',
    'mv_shipmode' => 'upsg',
    'mv_order_item' => '1074',
    'quantity0' => '2'
  },
  'path_alias' => {},
  'ship_message' => '',
  'latest_subtotal' => '745.81',
  'arg' => undef,
  'errors' => {},
  'carts' => {
    'UNKNOWN' => [
      {
        'mv_ip' => 0,
        'code' => '2133',
        'mv_ib' => 'products',
        'quantity' => '2'
      },
      {
        'code' => '1074',
        'mv_ip' => 1,
        'mv_ib' => 'products',
        'quantity' => '1'
      }
    ],
    'mv_shipping' => undef,
    'main' => [
      $VAR1->{'carts'}{'UNKNOWN'}[0],
      $VAR1->{'carts'}{'UNKNOWN'}[1]
    ]
  },
  'host' => 'dpcsys.com',
  'user' => undef
}

Search for: Match: Format: Sort by: