Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: klausguenter on December 21, 2011, 07:31:52 PM

Title: problems enabling plugin
Post by: klausguenter on December 21, 2011, 07:31:52 PM
hi there,

I'm trying to install google_ads plugin on rouncube 0.7 stable.

I downloaded the plugin, configured the config.inc.php in /google_ads - folder and uploaded this folder to the roundcube/plugins-folder on the webserver.

in roundcube/config/main.inc.php I modified the plugins section:
$rcmail_config['plugins'] = array('google_ads');


I think that these are all the modifications / actions I have to do to enable the plugin.

but when I call the webmail-URL in different browsers I don't see any ads. no error-messages - nothing.
what can be wrong?
Title: problems enabling plugin
Post by: TT_ZX on January 18, 2012, 11:10:50 PM
Try renaming the folder without the underscore and updating the array.  I was having the same problem with a different plugin and this fixed it.  I don't know why or if this is a bug that should be reported.
Title: problems enabling plugin
Post by: klausguenter on January 19, 2012, 06:19:42 PM
Thank you for your reply,

but it didn't help in my case :(

Problem still exists
Title: Re: problems enabling plugin
Post by: ASeques on March 28, 2012, 03:23:01 AM
In logs/errors I was seing this:
PHP Parse error:  syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ')' in .../plugins/google_ads/google_ads.php on line 67
I changed the line 67 from
'plugin' => $plugin::about($keys),
into
'plugin' => $plugin->about($keys),
and the error went away, but I am still not able to see the ads
Title: Re: problems enabling plugin
Post by: ASeques on March 28, 2012, 04:32:09 AM
Just opened this ticket in myroundcube project with a patch to fix the issues in google_ads.

You can see the patch here: http://code.google.com/p/myroundcube/issues/detail?id=315here (http://code.google.com/p/myroundcube/issues/detail?id=315here)
Title: Re: problems enabling plugin
Post by: rosali on March 28, 2012, 08:51:33 AM
Upgrade to PHP 5.3 and your problems will disappear.