[ic] one store gone nuts - Different, anyway.
Glenn McCalley
techlist at bnetmd.net
Sun Sep 9 16:47:42 EDT 2007
----- Original Message -----
From: "Kevin Walsh" <kevin at cursor.biz>
To: <interchange-users at icdevgroup.org>
Sent: Sunday, September 09, 2007 4:09 PM
Subject: Re: [ic] one store gone nuts - Different, anyway.
> "Glenn McCalley" <techlist at bnetmd.net> wrote:
>> Each order placed fails the first time through on "Place Order" at
>> checkout
>> with
>> There were errors in your last submission:
>> (Customer record creation): There was an error adding you to the
>> customer
>> table.
>>
>> icdebug file shows the following:
>> Number found where operator expected at (eval 1003) line 2, near "1
>> 1"
>> (Missing operatore before
>> 1?)
>>
> It would help if you could post the code to which the error relates.
> I suspect that there is a problem on line 2, but I could be wrong.
>
Agreed - however I take your comment to mean Perl code? There is no
indication of a module name.
Below are excerpts from log_transaction and the icdebug output.
It looks to me like it's dying in the [userdb function=new_account... area
that creates the new user? About 11 lines into the excerpt below. I
suspected a blank username of password so put value display tags into the
line that logs to logs/log and the 5-digit zip and U00003 are there.
It almost acts like:
- it really -does- create a user the first time
- but thinks it hasn't done so
- then processed the order the second time because it thinks you are
logged in already?
Let me know if there is anything I missed?
Thanks Kevin,
Glenn.
---------------------------------------------------------------------
log_transaction excerpt is:
[try]
[calc]Debug('checking logged_in or not');[/calc]
[if session logged_in]
[calc]Debug('logged_in');[/calc]
[userdb function=logout clear=0 clear_cart=0]
[/if]
[calc]Debug('not logged_in');[/calc]
[tmp auto_create]1[/tmp]
[if type=explicit compare=|
[calc]Debug('creating user loc 1');[/calc]
[userdb
function=new_account
assign_username=1
password='[value zip]'
verify='[value zip]'
]
|]
[calc]Debug('creating user loc 2');[/calc]
[seti mv_autocreate]
[calc]Debug('creating user loc 3');[/calc]
mv_username=[data session username]
mv_password=[value zip]
[calc]Debug('creating user loc 4');[/calc]
[/seti]
Auto-created user [seti auto_username][data session
username][/seti][scratch auto_username].
[calc]Debug('creating user loc 5');[/calc]
[else]
[calc]Debug('autocreate user failed');[/calc]
Auto-create of user failed.[value zip].[data session username]
[perl] die errmsg("Auto-create of user failed."); [/perl]
[/else]
[/if]
[/try]
----------------------------------------------------------------------------
Debug output to icdebug (first submission) is:
main:debug: start
main:debug: create user start
main:debug: checking logged_in or not
main:debug: not logged_in
main:debug: creating user loc 1
Number found where operator expected at (eval 1003) line 2, near "1
1"
(Missing operator before
1?)
main:debug: autocreate user failed
main:debug: check for order desk
main:debug: end of user add process
main:debug: order added to xtn table
main:debug: xtn logging completed
----------------------------------------------------------------------------
Debug output to icdebug (re-submission) is:
main:debug: start
main:debug: create user start
main:debug: check for order desk
main:debug: end of user add process
main:debug: order added to xtn table
main:debug: user info saved
main:debug: xtn logging completed
> --
> _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
> _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
> _/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
> _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
More information about the interchange-users
mailing list