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

Smarty3 and ioncube, smarty functions not accessible.

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
iarp
Smarty n00b


Joined: 25 Oct 2012
Posts: 2

PostPosted: Thu Oct 25, 2012 5:09 pm    Post subject: Smarty3 and ioncube, smarty functions not accessible. Reply with quote

I've just converted a web system to use Smarty without the thought of having to encrypt it with ioncube (work requirement).

So the entire system is now using Smarty and i go to encrypt all PHP files, leaving the template files unencrypted. It's giving me errors such as

Quote:
Function 'smartyAutoload' not found


and

Quote:
Function splitTitle not found


I'm unsure who is causing the function not found issue. I had thought ioncube encrypted everything leaving the function names intact, but maybe not?

I tried adding a custom smarty function that basically just referenced the function i already have and it's still throwing the function not found errors.

Not sure who to go to about this. Google "smarty 3 ioncube" all results are template encrypting issues, mine are function issues.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Oct 25, 2012 6:14 pm    Post subject: Reply with quote

Do not encrypt the Smarty library files themselves, this is actually against the license agreement. Just leave those plain text. You don't need to encrypt them, they are already freely available.

Aside of that, I'm not sure about the errors, you'll have to contact ionCube. IMHO encrypting php solves the wrong problem and wreaks havoc on developers. Use license agreements to protect your assets, not encryption.
Back to top
View user's profile Send private message Visit poster's website
iarp
Smarty n00b


Joined: 25 Oct 2012
Posts: 2

PostPosted: Thu Oct 25, 2012 8:10 pm    Post subject: Reply with quote

I meant to put, i encrypted all my php files.

It turns out i had obfuscate turned on for function names, so it was changing the names on me.
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 -> Installation and Setup 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