YAG-Gallery / yag

YAG - Yet Another Gallery
http://www.yag-gallery.de
31 stars 34 forks source link

Core: Error Tx_Yag_ViewHelpers ? #97

Open hocomadvies opened 7 years ago

hocomadvies commented 7 years ago

Yag is throwing errors in Typo3 7.6.15 (from TER) this is what I see in the log files.

How to get this fixed?

Core: Error handler (FE): PHP Warning: Declaration of Tx_Yag_ViewHelpers_Uri_CurrentViewHelper::render($action = NULL, array $arguments = Array, $controller = NULL, $extensionName = NULL, $pluginName = NULL, $pageUid = NULL, $pageType = 0, $noCache = false, $noCacheHash = false, $section = '', $format = '', $linkAccessRestrictedPages = false, array $additionalParams = Array, $absolute = false, $addQueryString = false, array $argumentsToBeExcludedFromQueryString = Array) should be compatible with TYPO3\CMS\Fluid\ViewHelpers\Uri\ActionViewHelper::render($action = NULL, array $arguments = Array, $controller = NULL, $extensionName = NULL, $pluginName = NULL, $pageUid = NULL, $pageType = 0, $noCache = false, $noCacheHash = false, $section = '', $format = '', $linkAccessRestrictedPages = false, array $additionalParams = Array, $absolute = false, $addQueryString = false, array $argumentsToBeExcludedFromQueryString = Array, $addQueryStringMethod = NULL) in /var/www/vhosts/website.nl/httpdocs/typo3conf/ext/yag/Classes/ViewHelpers/Uri/CurrentViewHelper.php line 33

schrej-zz commented 7 years ago

This is due to usage of PHP7. Number of parameters has to be identical. I already looked into this topic, but there are so much parameters missing, that I currently did not touch this. Don't know, if just enter NULL parameters would be sufficient.

woepwoep commented 7 years ago

I have the same issue. Are there any solutions yet?

Thx Ron

kdjkdjkdj commented 7 years ago

https://github.com/YAG-Gallery/yag/pull/108

May you can test my changes and give here some feedback.