|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
redwrox2001 Smarty n00b
Joined: 15 Apr 2022 Posts: 2
|
Posted: Fri Apr 15, 2022 2:27 pm Post subject: Fatal error: Uncaught 'Smarty_Internal_Method_Assign_By_Ref' |
|
|
I am receiving below error after update smarty version 4.1.0 with PHP 7.4.9
Fatal error: Uncaught --> Smarty: undefined extension class 'Smarty_Internal_Method_Assign_By_Ref' <-- thrown in
http://localhost/smarty-4.1.0\libs\sysplugins\smarty_internal_undefined.php on line 62 |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Fri Apr 15, 2022 11:59 pm Post subject: |
|
|
Is it possible you have a custom plugin, or more likely, PHP code that uses a '$smarty->assign_by_ref()' function?
See: Code: | https://github.com/smarty-php/smarty/pull/249
https://www.smarty.net/docs/en/api.assign.by.ref.tpl |
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sat Apr 16, 2022 12:50 pm Post subject: |
|
|
More specifically, modifying variable by reference is the worst case of scope leak.
Not going to work, you have to fix your code. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|