[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] SOLVED(?) - Saved carts cause internal server error 500
****** message to minivend-users from Ed LaFrance <newmedia@newmediaems.com> ******
Well, I didn't really solve it, but in the process of trying to, I found a
workaround. Adding this statement to the end of the set_cart routine in
UserDB.pm makes the problem go away...I really don't know why:
::logError("");
I added this right after "$self->{DB}->set_field( $self->{USERNAME},
$field_name, $s);". When I started the server again, I could save and
retrieve carts all I want without trouble. Take this line out and the
thing bombs again, always on the second sequential call to set_cart.
If anyone has an idea why this worked, I would be happy to hear it. Of
course this means the error log will slowly fill up, but I can just
periodically delete it with a crontab command...
- Ed L.
At 03:27 PM 6/4/00 -0700, you wrote:
>****** message to minivend-users from Ed LaFrance
><edl@newmediaems.com> ******
>
>I am still musing over this problem of getting an error 500 when saving
>and retrieving carts in the simple demo (mv 3.14) I have found a few
>other posts in the archives about this same problem, but no solutions.
>
>I noticed a difference in the session database for the catalog, as
>compared to others I have running on other servers that don't exhibit the
>problem. The session database in the affected catalog contains some
>double-quotes in the cart string:
>
>'code' => \"00-0011\"
>
>...the double-quotes always appear around the value, not the variable
>name, and also precede the > character at the beginning of the saved cart
>definitions: ">
>
>In the catalogs that work fine, values are enclosed in escaped single
>quotes, like this:
>
>\'code\' => \'00-341\',
>
>and the opening gt symbol is preceded by a single quote as well: '>
>
>What determines whether to use double-quotes or escaped singles? Could
>this be the problem, and if so, how do I correct it. Is there a way to
>configure this.
>
>Thanks in advance to anyone who can help me figure this one out!
>
>- Ed L.
>
>
>- Ed L.
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>| New Media E.M.S. Software Solutions for Business |
>| 12831 Blanco Ct. Consulting |
>| Poway, CA 92064 U.S.A. Custom Programming |
>| 858-486-6508 Internet and eCommerce |
>| 630-604-4265 eFax |
>| edl@newmediaems.com |
>| http://www.newmediaems.com |
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>-
>To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New Media E.M.S. - Software Solutions and Consulting for Business
12831 Blanco Ct.
Poway, CA 92064 U.S.A.
(858) 486-6508
(630) 604-4265 eFax
http://www.newmediaems.com
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list