gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.04k stars 204 forks source link

8192 preg_replace_callback(): Passing null to parameter #3 #3206

Open eaciudad opened 1 year ago

eaciudad commented 1 year ago

I upgraded to Joomla 4.4 and Gantry 5.5.17 and I am getting errors on Debug System Mode. 8192 preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated Call stack

Function Location 1 () JROOT/libraries/gantry5/src/classes/Gantry/Component/Content/Document/HtmlDocument.php:581 2 Whoops\Run->handleError() JROOT/libraries/gantry5/src/classes/Gantry/Component/Whoops/SystemFacade.php:119 3 Gantry\Component\Whoops\SystemFacade->handleError() 4 preg_replace_callback() JROOT/libraries/gantry5/src/classes/Gantry/Component/Content/Document/HtmlDocument.php:581 5 Gantry\Component\Content\Document\HtmlDocument::urlFilter() JROOT/plugins/system/gantry5/gantry5.php:402 6 plgSystemGantry5->onAfterRenderSite() JROOT/plugins/system/gantry5/gantry5.php:132 7 plgSystemGantry5->onAfterRender() JROOT/libraries/src/Plugin/CMSPlugin.php:289 8 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486 9 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111 10 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/libraries/src/Application/CMSApplication.php:1031 11 Joomla\CMS\Application\CMSApplication->render() JROOT/libraries/src/Application/SiteApplication.php:724 12 Joomla\CMS\Application\SiteApplication->render() JROOT/libraries/src/Application/CMSApplication.php:298 13 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61 14 require_once() JROOT/index.php:32

Gantry 5 error on Joomla 4 4 debug mode Gantry5 Error todaypilot com_today-pilot-news_forums html Gantry5 Error

hexplor commented 1 year ago

Hello, What PHP version are you using? Best,

eaciudad commented 12 months ago

Hello Karol Sorry for the delay. using PHP 8.1.26

Thank you

On Tue, Nov 21, 2023 at 12:41 PM Karol Orzeł @.***> wrote:

Hello, What PHP version are you using? Best,

— Reply to this email directly, view it on GitHub https://github.com/gantry/gantry5/issues/3206#issuecomment-1821375310, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARCVT5DT5UD3FK7REVL5753YFTRVTAVCNFSM6AAAAAA7FH7L4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGM3TKMZRGA . You are receiving this because you authored the thread.Message ID: @.***>