Gossamer Forum
Quote Reply
AdCycle2.0 BUG
Hi Alex,

it seems there is a bug in the new AdCycle 2.0 -Plugin :
------------------------------------

A fatal error has occured:

Unable to load plugin: Adcycle (syntax error at /home/strato/www/sh/www.shop-netz.de/htdocs/cgi-bin/shop/admin/Plugins/Adcycle.pm line 34, near ");"
syntax error at /home/strato/www/sh/www.shop-netz.de/htdocs/cgi-bin/shop/admin/Plugins/Adcycle.pm line 65, near ");"
syntax error at /home/strato/www/sh/www.shop-netz.de/htdocs/cgi-bin/shop/admin/Plugins/Adcycle.pm line 89, near ");"
)
Please enable debugging in setup for more details
---------------------------------------------------------

Can you please fix it ?

I think, it has something to do with the following syntax :
-----------------------
my $db =
DBI->connect("DBI:mysql:$db_ad_cfg->{_db_database}->{adcycle}:$db_ad_cfg->{_db_ip}->{adcycle}",
my $query=$db->prepare("select WIDTH,HEIGHT from groups where GID=$gid");
$query->execute();
-------------------------

it is always the same (line 34, 65, 89 )



Quote Reply
Re: AdCycle2.0 BUG In reply to
THere looks to be a missing right bracket here.....

DBI->connect("DBI:mysql:$db_ad_cfg->{_db_database}->{adcycle}:$db_ad_cfg->{_db_ip}->{adcycle}",

Try changing it to....

DBI->connect("DBI:mysql:$db_ad_cfg->{_db_database}->{adcycle}:$db_ad_cfg->{_db_ip}->{adcycle}");




Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: AdCycle2.0 BUG In reply to
Thanks Paul,

in deed the brackets are missing.

I fixed it and now another error occurs :
---------------------------
A fatal error has occured:

Unable to load plugin: Adcycle (Compilation failed in require at admin.cgi line 103.
)
Please enable debugging in setup for more details.


Stack Trace
======================================
Links (1231): Links::environment called at /home/strato/www/sh/www.shop-netz.de/htdocs/cgi-bin/shop/admin/Links.pm line 446 with no arguments.Links (1231): Links::fatal called at admin.cgi line 104 with arguments (Unable to load plugin: Adcycle (Compilation failed in require at admin.cgi line 103.
)).Links (1231): main::plugin called at admin.cgi line 42 with no arguments.Links (1231): main::main called at admin.cgi line 24 with no arguments.
-------------

Must be somthing in admin.cgi with :

-------
sub plugin {
# ------------------------------------------------------------------
# Run a plugin function.
#
my $plugin = $IN->param('plugin');
my $func = $IN->param('func');
{
local ($@, $!, $SIG{__DIE__});
eval { require "Plugins/$plugin.pm"; };
if ($@) {
Links::fatal ("Unable to load plugin: $plugin ($@)");
}
}
no strict 'refs';
my $code = ${"Plugins::" . $plugin . "::"}{$func};
use strict 'refs';

if (!defined $code) {
Links::fatal ("Invalid plugin function: $func");
}
$code->();
}
------------


But what is it ? I can't find it out.


Quote Reply
Re: AdCycle2.0 BUG In reply to
Hi,

Sorry about that, this should now be fixed.

Cheers,

Alex

--
Gossamer Threads Inc.