Sourcerer Fatal Error with PHP 8.x

Search
Other Bug Reports questions
Forum

Sourcerer Fatal Error with PHP 8.x

Kevin Burk's Avatar Kevin Burk
I'm trying to update to PHP 8.0.17, Joomla version 3.10.8. The Sorcerer plug-in causes a fatal error and the site will not load if it's enabled.

I have deleted everything and reinstalled it all. I have also tried installing the latest development version of Sourceror. Nothing works.

The debug code is shown below:
0 - Undefined constant "Y"

Undefined constant "Y"

Call stack
#	Function	Location
1	()	JROOT/tmp/regularlabs/986_80215af2d2dece465dc28ba541704a5a:12
2	regularlabs_php_04e5605ca177bdd08f23d3288a306411()	JROOT/plugins/system/sourcerer/src/Code.php:64
3	RegularLabs\Plugin\System\Sourcerer\Code::execute()	JROOT/plugins/system/sourcerer/src/Code.php:30
4	RegularLabs\Plugin\System\Sourcerer\Code::run()	JROOT/plugins/system/sourcerer/src/Replace.php:596
5	RegularLabs\Plugin\System\Sourcerer\Replace::replaceTagsPHP()	JROOT/plugins/system/sourcerer/src/Replace.php:365
6	RegularLabs\Plugin\System\Sourcerer\Replace::replaceTagsByType()	JROOT/plugins/system/sourcerer/src/Replace.php:250
7	RegularLabs\Plugin\System\Sourcerer\Replace::replaceTags()	JROOT/plugins/system/sourcerer/src/Replace.php:175
8	RegularLabs\Plugin\System\Sourcerer\Replace::handleMatch()	JROOT/plugins/system/sourcerer/src/Replace.php:56
9	RegularLabs\Plugin\System\Sourcerer\Replace::replace()	JROOT/plugins/system/sourcerer/src/Replace.php:101
10	RegularLabs\Plugin\System\Sourcerer\Replace::replaceInTheRest()	JROOT/plugins/system/sourcerer/sourcerer.php:151
11	PlgSystemSourcerer->changeFinalHtmlOutput()	JROOT/libraries/regularlabs/src/SystemPlugin.php:440
12	RegularLabs\Library\SystemPlugin->onAfterRender()	JROOT/libraries/joomla/event/event.php:70
13	JEvent->update()	JROOT/libraries/joomla/event/dispatcher.php:160
14	JEventDispatcher->trigger()	JROOT/libraries/src/Application/BaseApplication.php:108
15	Joomla\CMS\Application\BaseApplication->triggerEvent()	JROOT/libraries/src/Application/CMSApplication.php:1118
16	Joomla\CMS\Application\CMSApplication->render()	JROOT/libraries/src/Application/SiteApplication.php:778
17	Joomla\CMS\Application\SiteApplication->render()	JROOT/libraries/src/Application/CMSApplication.php:231
18	Joomla\CMS\Application\CMSApplication->execute()	JROOT/index.php:49
Peter van Westen's Avatar Peter van Westen ADMIN
The error suggests that the issue is inside your own custom PHP code you are placing through Sourcerer.
This is not caused by Sourcerer itself.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in