Jump to content
  • 0

Installing Netim Module Goes To Blank Page


Question

Posted

I am trying to install the Netim module to an addon company and the page just goes blank and does not get installed.

I currently have the module installed on the primary company.

Does anyone have any thoughts on how to resolve?

4 answers to this question

Recommended Posts

  • 0
Posted
  On 2/25/2025 at 3:05 PM, bins said:

I am trying to install the Netim module to an addon company and the page just goes blank and does not get installed.

I currently have the module installed on the primary company.

Does anyone have any thoughts on how to resolve?

Expand  

A blank page almost always indicates an error that would be written to your ../logs_blesta/ logs, did you check the logs for any errors as a result of installing? I believe Netim is a 3rd party registrar module, you may need to reach out to them, depending on the error. Modules generally don't need to worry about multi-company (plugins do), but there may be some issue with the module.

  • 0
Posted

I’ve also had this issue with Netim when using addon company. You can ask Aleksa via the discord chat to help you as he resolved it for me. If I remember correctly it was due to the module using the same MySQL tables as the main company or something along those lines (Something really simple).

  • 0
Posted

The error is:

[2025-02-27T18:05:37.749399+00:00] general.ERROR: PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'netim_async' already exists in

/public_html/vendors/minphp/db/src/PdoConnection.php:196 Stack trace: #0

/public_html/vendors/minphp/db/src/PdoConnection.php(196): PDOStatement->execute() #1

/public_html/vendors/minphp/record/src/Record.php(205): Minphp\Db\PdoConnection->query() #2

/public_html/components/modules/netim/lib/Database.php(14): Minphp\Record\Record->create() #3

/public_html/components/modules/netim/netim.php(48): Netim\Database\createAsyncDb() #4

public_html/app/models/module_manager.php(360): Netim->install() #5 /public_html/app/controllers/admin_company_modules.php(139): ModuleManager->add() #6 /public_html/vendors/minphp/bridge/src/Lib/Dispatcher.php(142): AdminCompanyModules->install() #7

public_html/index.php(21): Dispatcher::dispatch() #8 {main}  
 

Aleksa has offered a solution (missing word in the code) that I need to try!

  • 0
Posted

Aleksa is a superstar - here is the fix:

 

components/modules/netim/lib/Database.php

   function createAsyncDb(\Record $rec)
    {
        $rec->
        setField("ID_OPE", array('type' => "int",'size' => 11))->
        setField("DOMAINE", array('type' => "varchar", 'size' => 255))->
        setField("CODE_OPE", array('type' => "varchar", 'size' => 50))->
        setField("DATE_OPE", array('type' => "datetime"))->
        setKey(array("ID_OPE"), "primary")->
        create("netim_async");
    }

    function createErrorDb(\Record $rec)
    {
        $rec->
        setField("ID_OPE", array('type' => "int",'size' => 11, 'is_null' => true))->
        setField("DOMAINE", array('type' => "varchar", 'size' => 255))->
        setField("CODE_OPE", array('type' => "varchar", 'size' => 50))->
        setField("DATE_OPE", array('type' => "datetime"))->
        setKey(array("DOMAINE", "CODE_OPE"), "primary")->
        create("netim_error");
    }

 

 

Should read:

   function createAsyncDb(\Record $rec)
    {
        $rec->
        setField("ID_OPE", array('type' => "int",'size' => 11))->
        setField("DOMAINE", array('type' => "varchar", 'size' => 255))->
        setField("CODE_OPE", array('type' => "varchar", 'size' => 50))->
        setField("DATE_OPE", array('type' => "datetime"))->
        setKey(array("ID_OPE"), "primary")->
        create("netim_async",true);
    }

    function createErrorDb(\Record $rec)
    {
        $rec->
        setField("ID_OPE", array('type' => "int",'size' => 11, 'is_null' => true))->
        setField("DOMAINE", array('type' => "varchar", 'size' => 255))->
        setField("CODE_OPE", array('type' => "varchar", 'size' => 50))->
        setField("DATE_OPE", array('type' => "datetime"))->
        setKey(array("DOMAINE", "CODE_OPE"), "primary")->
        create("netim_error", true);
    }

 

On the last line of each function  ', true' has been added.

 

@Paul can this be updated on next release?

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...