Background Switcher module does not install on 7.0.9

I've tried twice to install Background Switcher version 1.0 by Boonexpert on Dolphin version 7.0.9 and both times it does not install properly.  I trade emails with Boonexpert and have been waiting several days for help to resolve this issue.  It appears the module partially installs... meaning the module installation shows as "Done" yet the mod remains listed in the Not Installed list... yet it is listed in the Admin >> Module list... but when I click on it I get an error message that the module was not found.   

Any suggestions on how to solve this?  Has anyone else had this problem with a module that appears to install yet "was not found" when trying to open the admin GUI?

http://pkforum.dolphinhelp.com
Quote · 9 Feb 2012

I just realized that it can't be installing... if I try to install it twice in a row it shows as "Done" each time... but if it had been properly installed after the first attempt then it would have "Failed" on the second attempt... but it doesn't.  Something is messed up.  Because it's not listed as installed I can't attempt to uninstall it.

The vendor "Boonexpert" mentioned in an email to me that this type of thing has happened before... how does it get resolved?

http://pkforum.dolphinhelp.com
Quote · 9 Feb 2012

If the module won't install and the author can't get it working either I would give him one more shot to get it working or give you a refund. If he doesn't do either you can open a dispute here:

 

http://www.boonex.com/forums/#forum/Disputes-0.htm

 

 

Just post a summary of what has happened so far and the moderators will take it from there.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 9 Feb 2012

Boonexpert checked my setup and informed me... "two modules had the same class name and there was error in database. Dolphin must see errors like this to prevent module installation if class names are the same in two modules, but it says 'Done' and installation is corrupted."

 

Can someone at Boonex please confirm that there is NO check performed to prevent module installation if class names are the same in two modules.  And if there is NO "check" then when do they plan add one.

 

In the meantime, seems I will need to do a complete site/db backup before each module installation.

http://pkforum.dolphinhelp.com
Quote · 9 Feb 2012

Boonexpert fixed my setup to get his module working... very much appreciated. Laughing 

http://pkforum.dolphinhelp.com
Quote · 9 Feb 2012

epaulo,

Here's a ticket has been opened for this issue 

http://www.boonex.com/trac/dolphin/ticket/2757

so I confirm it.

http://boonexpert.com
Quote · 18 Feb 2012

I reported this problem also back in Mar 2011 when i first discovered it. My original bug report here. http://www.boonex.com/forums/topic/Module-Installer-Bug-.htm

Apparently it has not been fixed.



https://www.deanbassett.com
Quote · 18 Feb 2012

Response to my ticket on this issue... "The problem will be fixed in the next versions."

http://pkforum.dolphinhelp.com
Quote · 18 Feb 2012

Well, seems like a couple people has the same problem and it *will be fixed in the next version*.

I will go ahead and fix this problem with fast (but working) fix. Anybody are welcome to correct me if I went wrong somewhere.

 

Open the file /inc/classes/BxDolInstaller.php

Go to line 149 (it's inside of function install($aParams)).

Paste this code:

 

    //--- Check whether the module with the same db_prefix was already installed ---//

$count=MYSQL_QUERY("SELECT `Id` FROM `sys_modules` WHERE `db_prefix`='{$this->_aConfig['db_prefix']}'");

if(mysql_numrows($count)>0) {

return array(

'operation_title' => $sTitle,

'message' => "The module with the same db_prefix was already installed", 

'result' => false

   );

}

 

It works for me, just checked.

http://boonexpert.com
Quote · 18 Feb 2012

Conflicting class prefixes will also cause a problem.

Your fix looks fine.

I however did not want to prevent my module from being installed so i renamed everything in mine to avoid the conflicts. Of course renaming things does cause a upgrade problem from older versions of the module. Choice of fix is yours.



https://www.deanbassett.com
Quote · 18 Feb 2012

Well, didn't met problems yet with the same class name installations, but here's fix for both

 

    //--- Check whether the module with the same db_prefix was already installed ---//

$count=MYSQL_QUERY("SELECT `Id` FROM `sys_modules` WHERE `db_prefix`='{$this->_aConfig['db_prefix']}' or `class_prefix`='{$this->_aConfig['class_prefix']}'");

if(mysql_numrows($count)>0) {

return array(

'operation_title' => $sTitle,

'message' => "The module with the same db_prefix or class_prefix was already installed", 

'result' => false

   );

}

http://boonexpert.com
Quote · 18 Feb 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.