Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error on initialization of settings #1165

Open
grischpel opened this issue Oct 10, 2024 · 0 comments
Open

[BUG] Error on initialization of settings #1165

grischpel opened this issue Oct 10, 2024 · 0 comments
Labels

Comments

@grischpel
Copy link

image

(1/1) Error
Typed property In2code\Powermail\Domain\Validator\AbstractValidator::$settings must not be accessed before initialization

in /var/www/website/htdocs/vendor/in2code/powermail/Classes/Domain/Validator/AbstractValidator.php line 61
     *
     * @return bool
     */
    public function isServerValidationEnabled(): bool {
  return $this->settings['validation']['server'] === '1';
        return isset($this->settings['validation']['server']) 
            && $this->settings['validation']['server'] === '1';
    }


In file /htdocs/vendor/in2code/powermail/Classes/Domain/Validator/AbstractValidator

public function isServerValidationEnabled(): bool {
    return $this->settings['validation']['server'] === '1';
}

Temporary fix:

public function isServerValidationEnabled(): bool {
    return isset($this->settings['validation']['server']) && $this->settings['validation']['server'] === '1';
}

Typo3 Version: 12.4.14
Powermail Version: 12.4.2

@mschwemer mschwemer added the bug label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants