Skip to content

[Bug]: Update zones from template in error #945

@PAPAMICA

Description

@PAPAMICA

Describe the problem

When I want to update zones from the template edit, I have this error:

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /app/lib/Domain/Service/Dns/DomainManager.php on line 520

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /app/lib/Domain/Service/Dns/DomainManager.php on line 520

Fatal error: Uncaught TypeError: Poweradmin\Domain\Model\ZoneTemplate::parseTemplateValue(): Argument #2 ($domain) must be of type string, null given, called in /app/lib/Domain/Service/Dns/DomainManager.php on line 521 and defined in /app/lib/Domain/Model/ZoneTemplate.php:926 Stack trace: #0 /app/lib/Domain/Service/Dns/DomainManager.php(521): Poweradmin\Domain\Model\ZoneTemplate->parseTemplateValue('[ZONE]', NULL) #1 /app/lib/Domain/Service/DnsRecord.php(666): Poweradmin\Domain\Service\Dns\DomainManager->updateZoneRecords('mysql', 600, 156, 6) #2 /app/lib/Application/Controller/EditZoneTemplController.php(222): Poweradmin\Domain\Service\DnsRecord->updateZoneRecords('mysql', 600, 156, 6) #3 /app/lib/Application/Controller/EditZoneTemplController.php(113): Poweradmin\Application\Controller\EditZoneTemplController->updateZoneRecords(6) #4 /app/lib/Application/Controller/EditZoneTemplController.php(93): Poweradmin\Application\Controller\EditZoneTemplController->updateZoneTemplate(6) #5 /app/lib/Application/Routing/SymfonyRouter.php(166): Poweradmin\Application\Controller\EditZoneTemplController->run() #6 /app/index.php(43): Poweradmin\Application\Routing\SymfonyRouter->process() #7 {main} thrown in /app/lib/Domain/Model/ZoneTemplate.php on line 926

Steps to reproduce

  1. Create template
  2. Create zone from template
  3. Add record to template
  4. Click on Update zones button

Poweradmin version

v4.1.0 - Docker

Database

MariaDB

Additional information (optional)

No response

Metadata

Metadata

Assignees

Labels

dnsDNS ManagementuiUser Interface

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions