Uncaught Error: Call to undefined method bind_plugin::slave_zone_file_prefix()

Discussion in 'Installation/Configuration' started by Poliman, Jun 6, 2023.

  1. Poliman

    Poliman Member

    Hi,
    [INFO] OS version is Ubuntu 20.04.6 LTS
    I think the error is caused by updating the ISPConfig from 3.2.7p1 to 3.2.10
    When we try to add Secondary DNS-Zones the task is stuck so we debugged it through manually running the crontab and this is what we get:

    Code:
    06.06.2023-11:10 - DEBUG [plugins.inc:155] - Calling function 'check_phpini_changes' from plugin 'webserver_plugin' raised by action 'server_plugins_loaded'.
    06.06.2023-11:10 - DEBUG [server:177] - Found 1 changes, starting update process.
    06.06.2023-11:10 - DEBUG [plugins.inc:118] - Calling function 'slave_insert' from plugin 'bind_plugin' raised by event 'dns_slave_insert'.
    06.06.2023-11:10 - DEBUG [bind plugin.inc:596] - Writing BIND named.conf.local file: /etc/bind/named.conf.local
    PHP Fatal error:  Uncaught Error: Call to undefined method bind_plugin::slave_zone_file_prefix() in /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php:463
    Stack trace:
    #0 /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php(438): bind_plugin->slave_update()
    #1 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): bind_plugin->slave_insert()
    #2 /usr/local/ispconfig/server/mods-available/dns_module.inc.php(108): plugins->raiseEvent()
    #3 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): dns_module->process()
    #4 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook()
    #5 /usr/local/ispconfig/server/server.php(180): modules->processDatalog()
    #6 {main}
      thrown in /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php on line 463
    I see additional inputs in the server configuration in the tab > DNS, maybe in some update released there was information about it but I cannot find it can you please help.
     
    Last edited: Jun 6, 2023
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thank you for the report, I'll check that.
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    We have confirmed that there's a bug and will be working on a fix.
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    We have identified the cause and are planning to do a patch release tomorrow. For the time being, you can run these commands to temporarily fix the issue. When the patch release is out, there is no need to undo anything: just update to it and you'll be fine.

    Run these commands as root user:
    Code:
    apt install curl
    curl https://git.ispconfig.org/ispconfig/ispconfig3/-/raw/3.2.9p1/server/plugins-available/bind_plugin.inc.php --output /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php
     
    ahrasis, till and Poliman like this.
  5. Poliman

    Poliman Member

    It worked,
    you guys are super quick,
    we've tested it on our test server so when the patch comes out we will update the production server, thanks again
     
    Th0m and till like this.
  6. Alex Torregrosa

    Alex Torregrosa New Member

    Just to add, I'm doing a multi-server deployment on Debian 11s and same error. The fix works as well on Debian 11.

    Code:
    Thu 8 Jun 22:40:01 BST 2023 finished server.php.
    Thu 8 Jun 22:41:01 BST 2023 PHP Fatal error:  Uncaught Error: Call to undefined method bind_plugin::slave_zone_file_prefix() in /usr/local/ispconfig/server/plugins-available/bind_plugin>
    Thu 8 Jun 22:41:01 BST 2023 Stack trace:
    Thu 8 Jun 22:41:01 BST 2023 #0 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): bind_plugin->slave_update()
    Thu 8 Jun 22:41:01 BST 2023 #1 /usr/local/ispconfig/server/mods-available/dns_module.inc.php(109): plugins->raiseEvent()
    Thu 8 Jun 22:41:01 BST 2023 #2 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): dns_module->process()
    Thu 8 Jun 22:41:01 BST 2023 #3 /usr/local/ispconfig/server/lib/classes/modules.inc.php(200): modules->raiseTableHook()
    Thu 8 Jun 22:41:01 BST 2023 #4 /usr/local/ispconfig/server/server.php(180): modules->processDatalog()
    Thu 8 Jun 22:41:01 BST 2023 #5 {main}
    Thu 8 Jun 22:41:01 BST 2023 thrown in /usr/local/ispconfig/server/plugins-available/bind_plugin.inc.php on line 463
    Thu 8 Jun 22:42:01 BST 2023 08.06.2023-22:42 - WARNING - There is already a lockfile set, but no process running with this pid (119904). Continuing.
    Thu 8 Jun 22:42:01 BST 2023 finished server.php.
     
    till and ahrasis like this.

Share This Page