-
PHP runtime notice
Serwus,
ich erhalte bei der aktuellen Version von tags und tags_news im Backend immer folgenden Hinweis.
Code:
PHP Runtime notice: Declaration of Contao\NewsTags::getLink() should be compatible with that of Contao\News::getLink() in /var/www/.../system/modules/tags/classes/NewsTags.php on line 45
#0 /var/www/.../system/modules/tags/classes/NewsTags.php(45): __error(2048, 'Declaration of ...', '/var/www/web59/...', 45, Array)
#1 /var/www/.../system/modules/core/library/Contao/ClassLoader.php(163): include('/var/www/web59/...')
#2 [internal function]: Contao\ClassLoader::load('NewsTags')
#3 [internal function]: spl_autoload_call('NewsTags')
#4 /var/www/.../system/modules/core/library/Contao/System.php(110): get_class_methods('NewsTags')
#5 /var/www/.../system/modules/tags/classes/TagHelper.php(345): Contao\System->import('NewsTags')
#6 /var/www/.../system/modules/core/drivers/DC_Table.php(208): Contao\TagHelper->generateNewsFeed(Object(Contao\DC_Table))
#7 /var/www/.../system/modules/core/classes/Backend.php(211): Contao\DC_Table->__construct('tl_news', Array)
#8 /var/www/.../contao/main.php(121): Contao\Backend->getBackendModule('news')
#9 /var/www/.../contao/main.php(319): Main->run()
#10 {main}
-
Hi,
überall im Backend?
Ich hab mal E_STRICT bei mir aktiviert, aber ich bekomme diese Meldung nicht. Wenn ich sie richtig interpretiere, dann beschwert sich PHP ja offenbar über unterschiedliche Aufrufe von getLink, aber die sind in News und NewsTags vollkommen identisch.
Ich kann's leider nicht reproduzieren.
Gruß,
Helmut
-
Bekomme unter 3.0.0 und 3.0.1 auch die folgende Fehlermeldung, wenn ich einen Nachrichtenbeitrag mit Tags speichern möchte:
Code:
Runtime notice: Declaration of Contao\NewsTags::getLink() should be compatible with that of Contao\News::getLink() in /www/htdocs/********/system/modules/tags/classes/NewsTags.php on line 45
#0 /www/htdocs/********/system/modules/tags/classes/NewsTags.php(45): __error(2048, 'Declaration of ...', '/www/htdocs/***...', 45, Array)
#1 /www/htdocs/********/system/modules/core/library/Contao/ClassLoader.php(163): include('/www/htdocs/w00...')
#2 [internal function]: Contao\ClassLoader::load('NewsTags')
#3 [internal function]: spl_autoload_call('NewsTags')
#4 /www/htdocs/********/system/modules/core/library/Contao/System.php(110): get_class_methods('NewsTags')
#5 /www/htdocs/********/system/modules/tags/classes/TagHelper.php(345): Contao\System->import('NewsTags')
#6 /www/htdocs/********/system/modules/core/drivers/DC_Table.php(208): Contao\TagHelper->generateNewsFeed(Object(Contao\DC_Table))
#7 /www/htdocs/********/system/modules/core/classes/Backend.php(211): Contao\DC_Table->__construct('tl_news', Array)
#8 /www/htdocs/********/contao/main.php(121): Contao\Backend->getBackendModule('news')
#9 /www/htdocs/********/contao/main.php(319): Main->run()
#10 {main}
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/********/system/helper/functions.php:69) in /www/htdocs/********/system/modules/core/library/Contao/Template.php on line 277
#0 [internal function]: __error(2, 'Cannot modify h...', '/www/htdocs/w00...', 277, Array)
#1 /www/htdocs/********/system/modules/core/library/Contao/Template.php(277): header('Vary: User-Agen...', false)
#2 /www/htdocs/********/system/modules/core/classes/BackendTemplate.php(156): Contao\Template->output()
#3 /www/htdocs/********/contao/main.php(310): Contao\BackendTemplate->output()
#4 /www/htdocs/********/contao/main.php(125): Main->output()
#5 /www/htdocs/********/contao/main.php(319): Main->run()
#6 {main}
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/********/system/helper/functions.php:69) in /www/htdocs/********/system/modules/core/library/Contao/Template.php on line 278
#0 [internal function]: __error(2, 'Cannot modify h...', '/www/htdocs/w00...', 278, Array)
#1 /www/htdocs/********/system/modules/core/library/Contao/Template.php(278): header('Content-Type: t...')
#2 /www/htdocs/********/system/modules/core/classes/BackendTemplate.php(156): Contao\Template->output()
#3 /www/htdocs/********/contao/main.php(310): Contao\BackendTemplate->output()
#4 /www/htdocs/********/contao/main.php(125): Main->output()
#5 /www/htdocs/********/contao/main.php(319): Main->run()
#6 {main}
Die Meldung wird allerdings nur im Backend ausgeworfen, klappt trotzdem alles.
Viele Grüße
Alex
-
Ok, danke für den Hinweis, ich sehe mir das mal an, jetzt wo ich weiß, wie man es reproduzieren kann.
LG,
Helmut
-
Ich kann das bei mir nicht reproduzieren. Welche PHP Version verwendest du?
-
Hallo Helmut,
Code:
AddHandler php53-cgi .php
habe ich in der htaccess händisch nachgetragen. Ansonsten hätte ich Contao 3 nicht auf all-inkl.com installiert bekommen.
Grüße
Alex
-
Gibt es hierzu schon etwas Neues?
Grüße
Alex
-
Das gleiche Problem
Hallo,
Ich bekomme denselben Fehlercode ausgegeben wie Alexander. Er tritt sporadisch bei der Navigation im Backend im Nachrichtenbereich auf. Nichts kritisches, aber störend...
Viele Grüße,
Raphael