Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Fatal error: Uncaught 'Smarty_Internal_Method_Assign_By_Ref'

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
redwrox2001
Smarty n00b


Joined: 15 Apr 2022
Posts: 2

PostPosted: Fri Apr 15, 2022 2:27 pm    Post subject: Fatal error: Uncaught 'Smarty_Internal_Method_Assign_By_Ref' Reply with quote

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
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Fri Apr 15, 2022 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sat Apr 16, 2022 12:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP