Mailing List Archive

5.10 Issue
I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
following error in search pages:

Can't locate object method "new" via package "Vend::DbSearch" (perhaps
you forgot to load "Vend::DbSearch"?) at
/home/interch/interchange/lib/Vend/Scan.pm line 523.

same code works without problem in IC 5.8.2
some clue??

Salvador.



_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: 5.10 Issue [ In reply to ]
Quoting Salvador Caballe (scaballe@gmail.com):
>
> I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
> following error in search pages:
>
> Can't locate object method "new" via package "Vend::DbSearch"
> (perhaps you forgot to load "Vend::DbSearch"?) at
> /home/interch/interchange/lib/Vend/Scan.pm line 523.
>
> same code works without problem in IC 5.8.2
> some clue??
>

Is this 5.10 release, or latest from the git repository?

--
Socialism -- ideas so good they have to be enforced at gunpoint.
-- unknown

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: 5.10 Issue [ In reply to ]
On 31/07/16 12:48, M Heins wrote:
> Quoting Salvador Caballe (scaballe@gmail.com):
>>
>> I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
>> following error in search pages:
>>
>> Can't locate object method "new" via package "Vend::DbSearch"
>> (perhaps you forgot to load "Vend::DbSearch"?) at
>> /home/interch/interchange/lib/Vend/Scan.pm line 523.
>>
>> same code works without problem in IC 5.8.2
>> some clue??
>>
>
> Is this 5.10 release, or latest from the git repository?
>

The 5.10 stable release tar file, dated Jan-6-2016

http://ftp.icdevgroup.org/interchange/5.10/tar/interchange-5.10.0.tar.gz

regards
Salvador


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: 5.10 Issue [ In reply to ]
Quoting EA3KZ Salvador Caballé (scaballe@gmail.com):
> On 31/07/16 12:48, M Heins wrote:
> >Quoting Salvador Caballe (scaballe@gmail.com):
> >>
> >>I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
> >>following error in search pages:
> >>
> >>Can't locate object method "new" via package "Vend::DbSearch"
> >>(perhaps you forgot to load "Vend::DbSearch"?) at
> >>/home/interch/interchange/lib/Vend/Scan.pm line 523.
> >>
> >>same code works without problem in IC 5.8.2
> >>some clue??
> >>
> >
> >Is this 5.10 release, or latest from the git repository?
> >
>
> The 5.10 stable release tar file, dated Jan-6-2016
>
> http://ftp.icdevgroup.org/interchange/5.10/tar/interchange-5.10.0.tar.gz

I asked because I recently made a change to Vend::Scan, albeit a minor
one.

I now wonder if you have some embedded Perl which uses the Search
object and some upgrade to some other module now causes it to violate
Safe. The Vend::DbSearch module is included, and you shouldn't get
this error in the normal search.

--
Mike Heins
End Point -- Expert Internet Consulting http://www.endpoint.com/
phone +1.765.253.4194 <mikeh@endpoint.com>

Making the simple complex, that is easy -- anyone can do that.
But to make the complex simple, awesomely simple, that is
true creativity. -- Charles Mingus

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: 5.10 Issue [ In reply to ]
On 31/07/16 22:06, Mike Heins wrote:
> Quoting Salvador Caballé (scaballe@gmail.com):
>> On 31/07/16 12:48, M Heins wrote:
>>> Quoting Salvador Caballe (scaballe@gmail.com):
>>>>
>>>> I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
>>>> following error in search pages:
>>>>
>>>> Can't locate object method "new" via package "Vend::DbSearch"
>>>> (perhaps you forgot to load "Vend::DbSearch"?) at
>>>> /home/interch/interchange/lib/Vend/Scan.pm line 523.
>>>>
>>>> same code works without problem in IC 5.8.2
>>>> some clue??
>>>>
>>>
>>> Is this 5.10 release, or latest from the git repository?
>>>
>>
>> The 5.10 stable release tar file, dated Jan-6-2016
>>
>> http://ftp.icdevgroup.org/interchange/5.10/tar/interchange-5.10.0.tar.gz
>
> I asked because I recently made a change to Vend::Scan, albeit a minor
> one.
>
> I now wonder if you have some embedded Perl which uses the Search
> object and some upgrade to some other module now causes it to violate
> Safe. The Vend::DbSearch module is included, and you shouldn't get
> this error in the normal search.
>

Mike,

Thanks for the information, I'll check the code in the results page

best regards
Salvador


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: 5.10 Issue [ In reply to ]
On 01/08/16 22:02, Salvador Caballe wrote:
> On 31/07/16 22:06, Mike Heins wrote:
>> Quoting Salvador Caballé (scaballe@gmail.com):
>>> On 31/07/16 12:48, M Heins wrote:
>>>> Quoting Salvador Caballe (scaballe@gmail.com):
>>>>>
>>>>> I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
>>>>> following error in search pages:
>>>>>
>>>>> Can't locate object method "new" via package "Vend::DbSearch"
>>>>> (perhaps you forgot to load "Vend::DbSearch"?) at
>>>>> /home/interch/interchange/lib/Vend/Scan.pm line 523.
>>>>>
>>>>> same code works without problem in IC 5.8.2
>>>>> some clue??
>>>>>
>>>>
>>>> Is this 5.10 release, or latest from the git repository?
>>>>
>>>
>>> The 5.10 stable release tar file, dated Jan-6-2016
>>>
>>> http://ftp.icdevgroup.org/interchange/5.10/tar/interchange-5.10.0.tar.gz
>>
>> I asked because I recently made a change to Vend::Scan, albeit a minor
>> one.
>>
>> I now wonder if you have some embedded Perl which uses the Search
>> object and some upgrade to some other module now causes it to violate
>> Safe. The Vend::DbSearch module is included, and you shouldn't get
>> this error in the normal search.
>>
>
> Mike,
>
> Thanks for the information, I'll check the code in the results page
>
> best regards
> Salvador

I found 2 problems, one was the ncheck_category tag, was an old version.

the other problem is in an ActionMap subroutine

the following code not work with 5.10

Actionmap brand <<EOR
sub {
my ($action, $brand) = split ('/', shift);
$CGI->{mv_todo} = 'search';
$CGI->{mv_value} = 'more_link=';
$CGI->{mv_searchspec} = "$brand";
$CGI->{mv_profile} = 's3';
$CGI->{mv_nextpage} = 'results.html';
$Tag->update('process');
return 1;
}
EOR

returns this error:

Sorry, there was an error in processing this form action. Please report the
error or try again later. (Can't locate object method "new" via package
"Vend::DbSearch" (perhaps you forgot to load "Vend::DbSearch"?) at
/home/interch/interchange/lib/Vend/Scan.pm line 523. )

same ActionMap code on 5.8.2 works ok

best regards
Salvador


_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: 5.10 Issue [ In reply to ]
Quoting S. Caballe (scaballe@gmail.com):
> On 01/08/16 22:02, Salvador Caballe wrote:
> >On 31/07/16 22:06, Mike Heins wrote:
> >>Quoting Salvador Caballé (scaballe@gmail.com):
> >>>On 31/07/16 12:48, M Heins wrote:
> >>>>Quoting Salvador Caballe (scaballe@gmail.com):
> >>>>>
> >>>>>I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
> >>>>>following error in search pages:
> >>>>>
> >>>>>Can't locate object method "new" via package "Vend::DbSearch"
> >>>>>(perhaps you forgot to load "Vend::DbSearch"?) at
> >>>>>/home/interch/interchange/lib/Vend/Scan.pm line 523.
> >>>>>
> >>>>>same code works without problem in IC 5.8.2
> >>>>>some clue??
> >>>>>
> >>>>
> >>>>Is this 5.10 release, or latest from the git repository?
> >>>>
> >>>
> >>>The 5.10 stable release tar file, dated Jan-6-2016
> >>>
> >>>http://ftp.icdevgroup.org/interchange/5.10/tar/interchange-5.10.0.tar.gz
> >>
> >>I asked because I recently made a change to Vend::Scan, albeit a minor
> >>one.
> >>
> >>I now wonder if you have some embedded Perl which uses the Search
> >>object and some upgrade to some other module now causes it to violate
> >>Safe. The Vend::DbSearch module is included, and you shouldn't get
> >>this error in the normal search.
> >>
> >
> >Mike,
> >
> >Thanks for the information, I'll check the code in the results page
> >
> >best regards
> >Salvador
>
> I found 2 problems, one was the ncheck_category tag, was an old version.
>
> the other problem is in an ActionMap subroutine
>
> the following code not work with 5.10
>
> Actionmap brand <<EOR
> sub {
> my ($action, $brand) = split ('/', shift);
> $CGI->{mv_todo} = 'search';
> $CGI->{mv_value} = 'more_link=';
> $CGI->{mv_searchspec} = "$brand";
> $CGI->{mv_profile} = 's3';
> $CGI->{mv_nextpage} = 'results.html';
> $Tag->update('process');
> return 1;
> }
> EOR
>
> returns this error:
>
> Sorry, there was an error in processing this form action. Please
> report the error or try again later. (Can't locate object method
> "new" via package "Vend::DbSearch" (perhaps you forgot to load
> "Vend::DbSearch"?) at /home/interch/interchange/lib/Vend/Scan.pm
> line 523. )
>
> same ActionMap code on 5.8.2 works ok

If that is in catalog.cfg, it may not work. Again, that depends
on the underlying Perl, not so much on Interchange.

If you were to move that ActionMap to interchange.cfg to make
it global, it probably would work.

--
Mike Heins
End Point -- Expert Internet Consulting http://www.endpoint.com/
phone +1.765.253.4194 <mikeh@endpoint.com>

Being against torture ought to be sort of a bipartisan thing.
-- Karl Lehenbauer

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: 5.10 Issue [ In reply to ]
On 02/08/16 15:48, Mike wrote:
> Quoting S. Caballe (scaballe@gmail.com):
>> On 01/08/16 22:02, Salvador Caballe wrote:
>>> On 31/07/16 22:06, Mike Heins wrote:
>>>> Quoting Salvador Caballé (scaballe@gmail.com):
>>>>> On 31/07/16 12:48, M Heins wrote:
>>>>>> Quoting Salvador Caballe (scaballe@gmail.com):
>>>>>>>
>>>>>>> I try to upgrade a catalog from IC 5.8.2 to 5.10 and I have the
>>>>>>> following error in search pages:
>>>>>>>
>>>>>>> Can't locate object method "new" via package "Vend::DbSearch"
>>>>>>> (perhaps you forgot to load "Vend::DbSearch"?) at
>>>>>>> /home/interch/interchange/lib/Vend/Scan.pm line 523.
>>>>>>>
>>>>>>> same code works without problem in IC 5.8.2
>>>>>>> some clue??
>>>>>>>
>>>>>>
>>>>>> Is this 5.10 release, or latest from the git repository?
>>>>>>
>>>>>
>>>>> The 5.10 stable release tar file, dated Jan-6-2016
>>>>>
>>>>> http://ftp.icdevgroup.org/interchange/5.10/tar/interchange-5.10.0.tar.gz
>>>>
>>>> I asked because I recently made a change to Vend::Scan, albeit a minor
>>>> one.
>>>>
>>>> I now wonder if you have some embedded Perl which uses the Search
>>>> object and some upgrade to some other module now causes it to violate
>>>> Safe. The Vend::DbSearch module is included, and you shouldn't get
>>>> this error in the normal search.
>>>>
>>>
>>> Mike,
>>>
>>> Thanks for the information, I'll check the code in the results page
>>>
>>> best regards
>>> Salvador
>>
>> I found 2 problems, one was the ncheck_category tag, was an old version.
>>
>> the other problem is in an ActionMap subroutine
>>
>> the following code not work with 5.10
>>
>> Actionmap brand <<EOR
>> sub {
>> my ($action, $brand) = split ('/', shift);
>> $CGI->{mv_todo} = 'search';
>> $CGI->{mv_value} = 'more_link=';
>> $CGI->{mv_searchspec} = "$brand";
>> $CGI->{mv_profile} = 's3';
>> $CGI->{mv_nextpage} = 'results.html';
>> $Tag->update('process');
>> return 1;
>> }
>> EOR
>>
>> returns this error:
>>
>> Sorry, there was an error in processing this form action. Please
>> report the error or try again later. (Can't locate object method
>> "new" via package "Vend::DbSearch" (perhaps you forgot to load
>> "Vend::DbSearch"?) at /home/interch/interchange/lib/Vend/Scan.pm
>> line 523. )
>>
>> same ActionMap code on 5.8.2 works ok
>
> If that is in catalog.cfg, it may not work. Again, that depends
> on the underlying Perl, not so much on Interchange.
>
> If you were to move that ActionMap to interchange.cfg to make
> it global, it probably would work.
>

Mike,

thanks for the info
actionmap moved to interchange.cfg and
now works perfectly.


regards
Salvador

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users