Closed berecont closed 2 years ago
Fixed in 276df343481228c4b5dd31dccdf33a9eb5339245 (hoffentlich, gerne testen)
Update auf 1.7.1 Warnings verbleiben
Warning: Undefined array key "deleteConfirm" in C:\laragon\www\php8\var\cache\prod\contao\dca\tl_om_backend_element_classes.php on line 19
Warning: Undefined array key "deleteConfirm" in C:\laragon\www\php8\var\cache\prod\contao\dca\tl_om_backend_links_main.php on line 11
Warning: Undefined array key "deleteConfirm" in C:\laragon\www\php8\var\cache\prod\contao\dca\tl_om_backend_links_top.php on line 11
Warning: Undefined array key "deleteConfirm" in C:\laragon\www\php8\var\cache\prod\contao\dca\tl_om_backend_sysinfo.php on line 19
Ich kann das unter Laragon mit PHP 8.0.13 auf der Konsole leider nicht reproduzieren. Wenn ich mir den Quellcode an der Stelle anschaue, kann ich auch kein Problem erkennen. Ich weiss leider nicht, wie ich das beheben kann. Das Problem mit den anderen Warnings war erkennbar.
Ist es eventuell dein Cache? C:\laragon\www\php8\var\cache...
Beim Versuch via Contao Manger den Dev-Cache zu erneuern gibt es ebenfalls eine Fehlermeldung:
$ C:\laragon\bin\php\php-8.0.13-Win32-vs16-x64\php.exe -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=UTC C:\laragon\www\dev411/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=dev
// Warming up the cache for the dev environment with debug
// true
17:28:22 CRITICAL [console] Error thrown while running command "cache:warmup --env=dev". Message: "Warning: Undefined array key "deleteConfirm"" ["exception" => ErrorException { …},"command" => "cache:warmup --env=dev","message" => "Warning: Undefined array key "deleteConfirm""]
In tl_om_backend_element_classes.php line 19:
Warning: Undefined array key "deleteConfirm"
cache:warmup [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--] <command>
# Process terminated with exit code 1
# Result: General error
und auch diese scheint auf diese Erweiterung zurückzuführen.
Prod.-Cache erneuern
per Contao Manger läuft ohne Fehler durch.
Die Fehlermeldung ist im Grunde ja dieselbe. Ich kann das aber leider weiterhin nicht reproduzieren, auch im Contao-Manager nicht.
OK.
Backend - Debug Mode bringt auch einen Fehler
in C:\laragon\www\php8\vendor\omosde\contao-om-backend\src\Resources\contao\config\config.php (line 108)
Stack Trace:
ErrorException:
Warning: Undefined array key "tables"
at C:\laragon\www\php8\vendor\omosde\contao-om-backend\src\Resources\contao\config\config.php:108
at include('C:\\laragon\\www\\php8\\vendor\\omosde\\contao-om-backend\\src\\Resources\\contao\\config\\config.php')
(C:\laragon\www\php8\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Config.php:179)
at Contao\Config->initialize()
(C:\laragon\www\php8\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Config.php:144)
at Contao\Config::getInstance()
(C:\laragon\www\php8\vendor\contao\core-bundle\src\Framework\Adapter.php:44)
at Contao\CoreBundle\Framework\Adapter->__call('getInstance', array())
(C:\laragon\www\php8\vendor\contao\core-bundle\src\Framework\ContaoFramework.php:301)
at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework()
(C:\laragon\www\php8\vendor\contao\core-bundle\src\Framework\ContaoFramework.php:158)
at Contao\CoreBundle\Framework\ContaoFramework->initialize()
(C:\laragon\www\php8\vendor\contao\core-bundle\src\Security\User\ContaoUserProvider.php:69)
at Contao\CoreBundle\Security\User\ContaoUserProvider->loadUserByUsername('meinUser')
(C:\laragon\www\php8\vendor\contao\core-bundle\src\Security\User\ContaoUserProvider.php:88)
at Contao\CoreBundle\Security\User\ContaoUserProvider->refreshUser(object(BackendUser))
(C:\laragon\www\php8\vendor\symfony\security-http\Firewall\ContextListener.php:236)
at Symfony\Component\Security\Http\Firewall\ContextListener->refreshUser(object(UsernamePasswordToken))
(C:\laragon\www\php8\vendor\symfony\security-http\Firewall\ContextListener.php:137)
at Symfony\Component\Security\Http\Firewall\ContextListener->authenticate(object(RequestEvent))
(C:\laragon\www\php8\vendor\symfony\security-bundle\Debug\WrappedLazyListener.php:49)
at Symfony\Bundle\SecurityBundle\Debug\WrappedLazyListener->authenticate(object(RequestEvent))
(C:\laragon\www\php8\vendor\symfony\security-http\Firewall\AbstractListener.php:26)
at Symfony\Component\Security\Http\Firewall\AbstractListener->__invoke(object(RequestEvent))
(C:\laragon\www\php8\vendor\symfony\security-bundle\Debug\TraceableFirewallListener.php:73)
at Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener->callListeners(object(RequestEvent), object(Generator))
(C:\laragon\www\php8\vendor\symfony\security-http\Firewall.php:92)
at Symfony\Component\Security\Http\Firewall->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(C:\laragon\www\php8\vendor\symfony\event-dispatcher\Debug\WrappedListener.php:117)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(C:\laragon\www\php8\vendor\symfony\event-dispatcher\EventDispatcher.php:230)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
(C:\laragon\www\php8\vendor\symfony\event-dispatcher\EventDispatcher.php:59)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(C:\laragon\www\php8\vendor\symfony\event-dispatcher\Debug\TraceableEventDispatcher.php:154)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(C:\laragon\www\php8\vendor\symfony\http-kernel\HttpKernel.php:128)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(C:\laragon\www\php8\vendor\symfony\http-kernel\HttpKernel.php:74)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(C:\laragon\www\php8\vendor\symfony\http-kernel\Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(C:\laragon\www\php8\web\index.php:31)
Sofern, das auch bei dir nicht reproduzierbar ist, dann werde ich die Erweiterung wohl in meiner Installation, in meiner Konstellation nicht einsetzen können - vielen Dank für deine Mühen!
@OMOSde with which Contao and PHP version did you test?
If I remember correctly (it's been a while) then Contao 4.9 with PHP 8.0. Do you have a guess?
Yes, you need to test this in Contao 4.12+, not Contao 4.9 ;). Contao 4.9 suppresses any Warnings in PHP 8. Also the original issue was reported for Contao 4.12, not Contao 4.9.
Then I'm sure I'm not remembering correctly. I can not imagine that I have overread 4.12. But I'll be happy to test it again under Contao 4.12.
Well the issue title says:
Warnings bei Installation - 4.12.5 und php8
4.13.7 still has the same error using PHP 8
v1.7.0 DANKE für die Anpassung für php8! Es werden bei der Installation Warnungen ausgeworfen:
Die Installation endet mit OK und die Datenbank kann aktualisiert werden.
Contao 4.12.5 Frische Installation, ohne weitere Erweiterungen php 8.0.13 lokale Installation via Laragon