[ic] Interpolation problem in search profiles

Mike Heins mikeh@minivend.com
Sun, 19 Nov 2000 17:57:22 -0500

Quoting B.J. Bezemer (bas.bezemer@wxs.nl):
> Hi all,
> I'm trying to migrate my minivend 3.14 shop to the latest interchange
> (Impressive administration tool!). I desided that it could not wait any
> longer.
> I have a problem with the search profiles defined in etc/search.profiles. While
> the profiles in 3.14 could contain any given tag ([data ..], [value ..]), it
> generates an error in interchange: 
> 39yViGnN: - [15/November/2000:13:28:11 +0100] verspuy2 /cgi-bin/verspuy2/browse_collection Runtime error: Undefined subroutine &Vend::Scan::interpolate_html called at /home/mvend/interchange-4.6.0/lib/Vend/Scan.pm line 342.
> If I remove the tags from the profiles, or define the search profile in the
> page, things seems to work fine.
> Is this a bug? Should I set a flag somewhere?

This is bizarre. It also fails for me, but shouldn't. Scan.pm uses
Vend::Interpolate and Vend::Interpolate exports &interpolate_html. There
is something causing a problem with the namespace.

Change the call at line 343 to ::interpolate_html and it will work.

Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

When the only tool you have is a hammer, all your problems tend to look
like nails.  -- Abraham Maslow