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

request_use_auto_globals exception with 3.0.4

 
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 -> Smarty 3
View previous topic :: View next topic  
Author Message
andig
Smarty Regular


Joined: 22 Apr 2004
Posts: 48

PostPosted: Sun Nov 14, 2010 12:02 pm    Post subject: request_use_auto_globals exception with 3.0.4 Reply with quote

After upgrading to 3.0.4 from latest beta I'm seing this exception:

SmartyException: template property 'request_use_auto_globals' does not exist. in D:\data\htdocs\videodb\lib\smarty\sysplugins\smarty_internal_template.php

Couldn't find any clue, chache has been cleared?

Best regards,
Andreas
Back to top
View user's profile Send private message
andig
Smarty Regular


Joined: 22 Apr 2004
Posts: 48

PostPosted: Sun Nov 14, 2010 12:08 pm    Post subject: Reply with quote

Solved- I have replaced html_image with custom code and had to take over the internals of the latest html_image version from CVS.

Best regards,
Andreas
Back to top
View user's profile Send private message
andig
Smarty Regular


Joined: 22 Apr 2004
Posts: 48

PostPosted: Sun Nov 14, 2010 12:22 pm    Post subject: Reply with quote

Mhm. Still not solved. The problem seems to exist in the standard html_image function?
Back to top
View user's profile Send private message
andig
Smarty Regular


Joined: 22 Apr 2004
Posts: 48

PostPosted: Sun Nov 14, 2010 12:25 pm    Post subject: Reply with quote

This line in the html_image function:

$server_vars = ($template->request_use_auto_globals) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS'];

Seems to be the only reference t request_use_auto_globals in the whole Smarty 3.0.4- seems fishy?

Best regards,
Andreas
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Nov 14, 2010 1:46 pm    Post subject: Reply with quote

The $request_use_auto_globals was removed from Smarty3.

By mistake it was not removed from the html_image plugin.
This was not detected earlier as Smarty3 did disable E_NOTICE befor 3.0.0.

We will update the plugin.
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 -> Smarty 3 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