Making Modules Compatible with 7.4.2

What is the list of things I need to do to make older 7.3.5 modules compatible with Dolphin 7.4.2?

Geeks, making the world a better place
Quote · 2 May 2019

Start with the modules installer.php in modules install folder.

Functions that have the same name as the class have to be changed.

Example.

class BxAdsInstaller extends BxDolInstaller
{
    function BxAdsInstaller($aConfig)
    {
        parent::BxDolInstaller($aConfig);
    }

Becomes.

class BxAdsInstaller extends BxDolInstaller
{
    function __construct($aConfig)
    {
        parent::__construct($aConfig);
    }

 

Do the same with all classes in the classes folder. Find the function that has the same name as the class and change it to function __construct

If that function references the parent, than change the parent to parent::__construct

That should resolve most all of the problems.

Also see my post here, as this also shows it. https://www.boonex.com/forums/topic/Dolphin-7-4-has-been-released.htm

In that post i also mention that bx_import lines need to be changes, i was wrong there, they usually don't need to be.

There are other issues, for example if the old module uses the php function list, that section of code may have to be rewritten because the list function works differently in php7. Boonex simply stopped using the function and rewrote all areas of dolphin that used that php function.

Other things such as the php function create_function no longer exists in php7. So if the module uses it, another solution will need to be found.

Dealing with depreciated php functions will be rare. The changes i pointed out should get the module running again.


https://www.deanbassett.com
Quote · 2 May 2019

Thanks Deano, much appreciated.

Geeks, making the world a better place
Quote · 2 May 2019
 
 
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.