[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] VendURL directive - ERROR SOLVED
****** message to minivend-users from Cameron Prince <PRINCECB@novachem.com> ******
I love it when I figure stuff out…
To fix the bogus VendURL directive error when using MiniMate, follow these
steps:
1. cd mvend/lib/Vend/
2. chmod 744 Config.pm
3. edit Config.pm and change as follows:
ORIGINAL CODE
sub parse_url {
my($var, $value) = @_;
config_warn(
"The $var directive (now set to '$value') should probably\n" .
"start with 'http:' or 'https:'")
unless $value eq '/mv_admin' or $value =~ m/^https?:/i
or $Vend::InternalHTTP;
$value =~ s./$..;
$value;
}
MODIFIED CODE
sub parse_url {
my($var, $value) = @_;
config_warn(
"The $var directive (now set to '$value') should probably\n" .
"start with 'http:' or 'https:'")
unless $value eq '/mv_admin' or $value =~ m/^https?:/i or
'/config/menu'
or $Vend::InternalHTTP;
$value =~ s./$..;
$value;
}
All you need to do is add or '/config/menu' and it will make the error go
away.
Be sure to chmod Config.pm back to 444
Hope this helps…
Cameron
-
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