[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] Error when creating new account
****** message to minivend-users from Greg Peters <greg@olysoft.com> ******
Hello Again.
I created a 'simple' store, and started minivend with a
-t option. I get the 'Can't use an undefined value as an ARRAY
reference' error while starting the imple store. The start is
aborted.
I set use diagnostics in minivend and InMemory.pm. The
'minivend.debug'
is simply minivend with the ::logdebugs uncommented.
The output of use diagnostics has quite a few complaints. I am
new enough
to perl not to know if these are serious. I realize minivend is
billed as 'complex, so don't expect a quick point and click
solution' but
shouldn't the demo stores work?
-Greg
Attachment
==========
use diagnostics; output from a minivend -t
Ambiguous call resolved as CORE::ref(), qualify as such or use &
at
/usr/minivend/mvend/lib/Vend/Table/Common.pm line 475
(#1)
(W ambiguous) A subroutine you have declared has the same
name as a Perl keyword,
and you have used the name without qualification for calling
one or the
other. Perl decided to call the builtin because the
subroutine is
not imported.
To force interpretation as a subroutine call, either put an
ampersand
before the subroutine name, or qualify the name with its
package.
Alternatively, you can import the subroutine (or pretend that
it's
imported with the use subs pragma).
To silently interpret it as the Perl operator, use the CORE::
prefix
on the operator (e.g. CORE::log($x)) or by declaring the
subroutine
to be an object method (see perlsub/"Subroutine Attributes"
or attributes).
Unrecognized escape \s passed through at
/usr/minivend/mvend/lib/Vend/Table/Common.pm line 881.
Unrecognized escape \s passed through at
/usr/minivend/mvend/lib/Vend/Table/Common.pm line 881.
Subroutine row_hash redefined at
/usr/minivend/mvend/lib/Vend/Table/InMemory.pm
line 220 (#2)
(W redefine) You redefined a subroutine. To suppress this
warning, say
{
no warnings;
eval "sub name { ... }";
}
/[\w-#/.]+/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 203.
/[\w-:#=/.%]+/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 204.
/\s+([\w-:#=/.%]+)/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 205.
/(?:%20|\s)+([\w-#/.]+)/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 206.
/(?:\s+)?([\w-:#=/.%]+)?/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 209.
/\s+([\w-#/.]+)/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 210.
/(?:\s+)?([\w-#/.]+)?/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 211.
/\s+([\w-:#/.]+)\]/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 2947.
"my" variable $fa masks earlier declaration in same scope at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 3134
(#3)
(W misc) A "my" or "our" variable has been redeclared in the
current scope or statement,
effectively eliminating all access to the previous instance.
This is almost
always a typographical error. Note that the earlier variable
will still exist
until the end of the scope or until all closure referents to
it are
destroyed.
Unrecognized escape \s passed through at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 4300.
/[-_][Aa][Ll][Tt][Ee][Rr][Nn][Aa][Tt][Ee](?:\s+)?([\w-#/.]+)?\]([
\000-\377]*?)/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Cc][Hh][Aa][Nn][Gg][Ee]\s+([\w-#/.]+)\] \s*
\[[Cc][Oo][Nn][Dd][Ii][Tt][Ii][Oo][Nn]\]
([\000-\377]*?)
\[//: false []
range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Dd][Ii][Ss][Cc][Oo][Uu][Nn][Tt](?:\s+(?:quantity=)?"?(\d+)"
?)?(?:\s+)?([\w-:#=/.%]+)?\]/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Ff][Ii][Ee][Ll][Dd](?:%20|\s)+([\w-#/.]+)\]/: false []
range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Ff][Ii][Ee][Ll][Dd](?:%20|\s)+(!?)\s*([\w-#/.]+)\]([\000-\3
77]*?)/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Ff][Ii][Ee][Ll][Dd](?:%20|\s)+(!?)\s*([\w-#/.]+)\]/: false
[] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Mm][Oo][Dd][Ii][Ff][Ii][Ee][Rr](?:%20|\s)+(!?)(?:%20|\s)*([
\w-#/.]+)\]([\000-\377]*?)/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Pp][Aa][Rr][Aa][Mm](?:%20|\s)+([\w-#/.]+)\]/: false []
range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Pp][Aa][Rr][Aa][Mm](?:%20|\s)+(!?)\s*([\w-#/.]+)\]([\000-\3
77]*?)/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Pp][Rr][Ii][Cc][Ee](?:\s+(\d+))?(?:\s+)?([\w-:#=/.%]+)?\]/:
false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/[-_][Ss][Uu][Bb][Tt][Oo][Tt][Aa][Ll](?:\s+)?([\w-#/.]+)?\]/:
false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\[[Dd][Ii][Ss][Cc][Oo][Uu][Nn][Tt][-_][Pp][Rr][Ii][Cc][Ee](?:\s+
(\d+))?(?:\s+)?([\w-#/.]+)?\]/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\[[Dd][Ii][Ss][Cc][Oo][Uu][Nn][Tt][-_][Ss][Uu][Bb][Tt][Oo][Tt][A
a][Ll](?:\s+)?([\w-#/.]+)?\]/: false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\[[Mm][Oo][Rr][Ee][-_][Ll][Ii][Ss][Tt](?:\s+)?([\w-:#=/.%]+)?(?:
\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]/:
false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\[[Mm][Oo][Rr][Ee][-_][Ll][Ii][Ss][Tt](?:\s+)?([\w-:#=/.%]+)?(?:
\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]/:
false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\[[Mm][Oo][Rr][Ee][-_][Ll][Ii][Ss][Tt](?:\s+)?([\w-:#=/.%]+)?(?:
\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]/:
false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\[[Mm][Oo][Rr][Ee][-_][Ll][Ii][Ss][Tt](?:\s+)?([\w-:#=/.%]+)?(?:
\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]/:
false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\[[Mm][Oo][Rr][Ee][-_][Ll][Ii][Ss][Tt](?:\s+)?([\w-:#=/.%]+)?(?:
\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]+)?(?:\s+)?([\w-:#=/.%]/:
false [] range "\w-" in regexp at
/usr/minivend/mvend/lib/Vend/Interpolate.pm line 288.
/\s+([\w-:#/.]+)\]([\000-\377]*?)/: false [] range "\w-" in
regexp at /usr/minivend/mvend/lib/Vend/Interpolate.pm line 2948.
Subroutine change_catalog_directive redefined at
/usr/local/lib/perl5/5.6.0/autouse.pm line 67, <DATA>
line 1 (#2)
Subroutine change_global_directive redefined at
/usr/local/lib/perl5/5.6.0/autouse.pm line 67, <DATA>
line 1 (#2)
/[^\w-_:~#/.]/: false [] range "\w-" in regexp at
./minivend.debug line 2160, <DATA> line 1.
Name "Global::LockoutCommand" used only once: possible typo at
./minivend.debug
line 1634, <DATA> line 1 (#4)
(W once) Typographical errors often show up as unique
variable names.
If you had a good reason for having a unique name, then just
mention
it again somehow to suppress the message. The our
declaration is
provided for this purpose.
Name "Vend::CC2" used only once: possible typo at
./minivend.debug line 2055,
<DATA> line 1 (#4)
Name "Vend::CC3" used only once: possible typo at
./minivend.debug line 2071,
<DATA> line 1 (#4)
Name "Vend::CC3server" used only once: possible typo at
./minivend.debug line
2072, <DATA> line 1 (#4)
Name "Vend::ForeGround" used only once: possible typo at
./minivend.debug line
2225, <DATA> line 1 (#4)
Name "Vend::BuildSpec" used only once: possible typo at
./minivend.debug line
1934, <DATA> line 1 (#4)
Name "FindBin::RealBin" used only once: possible typo at
./minivend.debug line
1629, <DATA> line 1 (#4)
Name "File::Find::prune" used only once: possible typo at
./minivend.debug line
1626, <DATA> line 1 (#4)
Use of uninitialized value in -x at ./minivend.debug line 118,
<DATA> line 1 (#5)
(W uninitialized) An undefined value was used as if it were
already defined. It was
interpreted as a "" or a 0, but maybe it was a mistake. To
suppress this
warning assign a defined value to your variables.
/^(\S+)?(\s*)?<\s*([\w-_#/.]+)$/: false [] range "\w-" in regexp
at /usr/minivend/mvend/lib/Vend/Config.pm line 1040, <GLOBAL>
line 2.
Sending debug to /tmp/mvdebug.
Low traffic settings.
Calling MiniMate....
Minimate is loaded.
main:debug: {
'netSnapShot-simple' => {
'dir' => '/usr/minivend/catalogs/netSnapShot-simple',
'script' => '/cgi-bin/ipa/netSnapShot-simple',
'alias' => [
'/netSnapShot-simple'
],
'name' => 'netSnapShot-simple'
},
'netSnapShot-basic' => {
'dir' => '/usr/minivend/catalogs/netSnapShot-basic',
'script' => '/cgi-bin/ipa/netSnapShot-basic',
'alias' => [
'/netSnapShot-basic'
],
'name' => 'netSnapShot-basic'
}
}
MiniVend V4.04
Configuring catalog netSnapShot-basic...done.
Configuring catalog netSnapShot-simple...netSnapShot-simple
config error: Uncaught exception from user code:
Can't use an undefined value as an ARRAY reference at
/usr/minivend/mvend/lib/Vend/Table/InMemory.pm line 123.
Vend::Table::InMemory::columns('Vend::Table::InMemory=ARRAY(0x8bd
9134)') called at ./minivend.debug line 930
require 0 called at ./minivend.debug line 862
main::config_named_catalog('netSnapShot-simple', 'at
server startup') called at ./minivend.debug line 2137
require 0 called at ./minivend.debug line 2136
main::main_loop() called at ./minivend.debug line 2218
require 0 called at ./minivend.debug line 2218
netSnapShot-simple: error in configuration. Skipping.
netSnapShot-simple: config error. Skipping.
| Subject: Error when creating new account
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
|
| Hi -
|
| I get the following error when I try to create a new
account under
| minivend 404:
|
|
| Sorry, there was an error in processing this form action.
Please report
| the error or try again later. (Can't use an undefined
value as an ARRAY
| reference at
/usr/minivend/mvend/lib/Vend/Table/InMemory.pm line 123. )
|
|
| This also happens when I try to log in to minimate, or if
I try to use
| the test/test account given
| as a default.
|
| Perl is 5.6.0, os is sco 3.2v504. Apache 1.3.0. Store
type is 'basic'.
| There are no errors in the catalog or mvend error.log
files.
|
| I have debug turned on, with DebugFile set to
/tmp/mvdebug, but all the
| debug went to the
| screen, rather than the file. I don't see obvious errors
in the
| screen: session info, path and arg info.
| Looking for click MMLogin or new_account, got scratch
click MMLogin or
| new_account.
|
| Then the first stanza of mv code fromthe top of new
accounts is run, the
| error out put says, end dispatch, closed all, and the
above error is
| returned to the browser.
|
| Help please. I'll try a simple store - perhaps the basic
store is error
| prone - there are no prices
| for any item.
|
| For what it's worth, I was able to create users and log
in with minivend
| 3.13-4 and perl 5.004_04 using
| a simple store and a flycat store.
|
| -Greg
|
|
_-_-_-_-_-_-_
Greg Peters
Manager of Technical Support
Senior Consultant
Pacific CodeWorks, Inc.
Voice: (831)426-7582
Fax: (831)426-7584
greg@pacificcodeworks.com
www.PacificCodeWorks.com
www.netSnapShot.com
-The Easiest Way To Share Snapshots on the Web-
-Get your account today - It's free!-
_-_-_-_-_-_-_
-
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