1. gnsbud
  2. RO CSVI
  3. Thursday, 28 May 2015
  4.  Subscribe via email
Hi,

there's a difference between beta 5 and beta 6 with handling after import plugins, I can see in beta 6 there's a statement checking if plugins are enabled. Since beta 6 my csvi after import plugin doesn't work, in beta 5 works fine. Here're parts of code which I had to reverse to beta 5 to get my after import plugin back to work, I'm not sure if all of them are responsible for issue - I'm just posting what did the trick in my case:

in /administrator/components/com_csvi/rantai/plugin/dispatcher.php around line 108 back to this (whole "if class exists" statement):


if (class_exists($classname))
{
// Instantiate the listener
$listener = new $classname;

// Get the methods
$methods = get_class_methods($listener);

foreach ($methods as $method)
{
$this->addListener($method, array($listener, $method));
}
}


and in /administrator/components/com_csvi/rantai/model.php around line 404 (I didn't check if it's necessary for me, but just in case...) back to:


$dispatcher->importPlugins('csvi');



Can you check and possibly fix this? Thanks!

Best regards,
Chris
Accepted Answer Pending Moderation
Hello Chris,

Indeed, the code was added to check if a plugin was enabled to prevent plugins from always running regardless of their state. There is indeed an issue in the dispatcher file because it is hardcoded to load the csvirules plugins where it should be flexible. Line 114 should read:
->where($db->quoteName('folder') . ' = ' . $db->quote($type))
that should make your plugin work with CSVI 6.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!