All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Invalid Argument Exception

Status Resolved
Add-on / Version Publisher 3.9.0 build 1d7915e4
Severity
EE Version 7.2.4

Kevin Chatel

Dec 14, 2022

Hi Brian,
I just upgraded to the latest publisher and now getting this error on the frontend of the website, the control panel is fine.

InvalidArgumentException Caught
No such property: 'TMPL' on ExpressionEngine\Legacy\Facade
ee/ExpressionEngine/Legacy/Facade.php:128

Stack Trace: Please include when reporting this error
#0 ee/ExpressionEngine/Legacy/Facade.php(35): ExpressionEngine\Legacy\Facade->get()
#1 user/addons/publisher/vendor-build/litzinger/basee/src/App.php(319): ExpressionEngine\Legacy\Facade->__get()
#2 user/addons/publisher/Service/Frontend.php(208): BoldMinded\Publisher\Dependency\Litzinger\Basee\App::setGlobalData()
#3 user/addons/publisher/Service/Session.php(256): BoldMinded\Publisher\Service\Frontend->setTextDirection()
#4 user/addons/publisher/ext.publisher.php(265): BoldMinded\Publisher\Service\Session->start()
#5 ee/legacy/libraries/Extensions.php(203): Publisher_ext->sessions_start()
#6 ee/legacy/libraries/Extensions.php(108): EE_Extensions->call_class()
#7 ee/legacy/libraries/Session.php(124): EE_Extensions->call()
#8 ee/legacy/core/Loader.php(942): EE_Session->__construct()
#9 ee/legacy/core/Loader.php(873): EE_Loader->_ci_init_class()
#10 ee/legacy/core/Loader.php(160): EE_Loader->_ci_load_class()
#11 ee/legacy/libraries/Core.php(352): EE_Loader->library()
#12 ee/legacy/core/Controller.php(77): EE_Core->run_ee()
#13 ee/ExpressionEngine/Core/Core.php(257): EE_Controller->__construct()
#14 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController()
#15 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run()
#16 index.php(164): require_once('...')
#16 index.php(164): require_once('...')

Thanks
Kevin

 

#1

BoldMinded (Brian)

I can send a whole new build or you can edit line 372 of Library/App.php to be this:

if (isset(ee()->TMPL) && method_exists(ee()->TMPL, 'set_data')) {

which should fix it.

#2

BoldMinded (Brian)

Actually sorry, the App.php file is in the vendor-build directory. Hold on and I’ll send a new build.

#3

BoldMinded (Brian)

Comment has been marked private.

#4

Kevin Chatel

Hi Brian. This is still an issue when downloading the latest build I’m getting this error

InvalidArgumentException Caught No such property: ‘TMPL’ on ExpressionEngine\Legacy\Facade Facade.php:128

Fresh install of EE 7.2.8 and Publisher 3.9.0

#5

BoldMinded (Brian)

Comment has been marked private.

#6

Kevin Chatel

Comment has been marked private.

#7

BoldMinded (Brian)

Good to hear. I released this publicly yesterday too.

Login to reply