KyleMassacre Posted February 7, 2013 Share Posted February 7, 2013 Im getting an udefined function error only when logged in as someone who is not a Super User like so: Error: Call to undefined function secure() Error in "/home/kylemass/public_html/modules/security_token/post_process.php" Line 2 Quote Link to comment Share on other sites More sharing options...
Someone Posted February 7, 2013 Share Posted February 7, 2013 (edited) This might be related to this post http://makewebgames.io/showthread.php/42822-Possible-error-reporting-bug-function-secure-used-before-declared Something is likely going wrong in a lib file, if you apply that fix, it should become clearer whats up. You might also want to set this in config/config.php if you have not already done so. // If set to true, the error details will be display for all even non-admins. $alwaysShowErrorDetails = TRUE; Edited February 7, 2013 by Someone Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted February 8, 2013 Share Posted February 8, 2013 Found the issue Kyle? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 8, 2013 Author Share Posted February 8, 2013 (edited) This might be related to this post http://makewebgames.io/showthread.php/42822-Possible-error-reporting-bug-function-secure-used-before-declared Something is likely going wrong in a lib file, if you apply that fix, it should become clearer whats up. You might also want to set this in config/config.php if you have not already done so. // If set to true, the error details will be display for all even non-admins. $alwaysShowErrorDetails = TRUE; Thats how the lib file is currently set up and it shows a blank error but i believe there is another thread for that so ill look that up too found the post about the blank error but its about // If set to true, the error details will be display for all even non-admins. $alwaysShowErrorDetails = TRUE; so its not going to help since that is the way it is Found the issue Kyle? I just tried looking now and its doing the same thing but if i adjust the user level then it lets me in Also on local host this works fine. I havent updated the new modules that were just updated the other day yet so maybe something with those???? Edited February 8, 2013 by KyleMassacre Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted February 8, 2013 Share Posted February 8, 2013 Somehow it doesn't load up the lib.php found in the security_token module yet call the post_process.php of it. Seems odd... Try to rename the post_process.php file of the module as well as the pre_process.php Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 8, 2013 Author Share Posted February 8, 2013 Somehow it doesn't load up the lib.php found in the security_token module yet call the post_process.php of it. Seems odd... Try to rename the post_process.php file of the module as well as the pre_process.php im gonna take a shot in the dark here cause on my local host i havent updated register yet and i created a dummy account and it works just fine. i think i may have something to do with during and after_register.php. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted February 8, 2013 Share Posted February 8, 2013 Those two don't use the secure function... so I hardly see why they would be involved. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 8, 2013 Author Share Posted February 8, 2013 Those two don't use the secure function... so I hardly see why they would be involved. Yeah your right i just disabled the module and it still didnt work and when i renamed the files it killed the pages saying the game is offline??? Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted February 8, 2013 Share Posted February 8, 2013 Mmmm... I'm lost. The game say it's offline now? Would it be possible to test / check your setup? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 8, 2013 Author Share Posted February 8, 2013 yeah i dont know what has happened let me try something else Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 8, 2013 Author Share Posted February 8, 2013 its something with my server config, i went somewhere else and its fine now Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted February 8, 2013 Share Posted February 8, 2013 Odd, well, if you need help, just contact me, I'm willing to try to help you by logging in on your server and checking your config. But you have around 1.5 h before my weekend ;) Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 8, 2013 Author Share Posted February 8, 2013 thats alright thank you though i appreciate it, ill just stick to this server as its much faster and better Quote Link to comment Share on other sites More sharing options...
Someone Posted February 8, 2013 Share Posted February 8, 2013 Did you apply the fix Alain posted in this post: http://makewebgames.io/showthread.php/42822-Possible-error-reporting-bug-function-secure-used-before-declared Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 8, 2013 Author Share Posted February 8, 2013 Did you apply the fix Alain posted in this post: http://makewebgames.io/showthread.php/42822-Possible-error-reporting-bug-function-secure-used-before-declared The fix be mentioned was implemented. It was a fresh install of the latest versions Quote Link to comment Share on other sites More sharing options...
Someone Posted February 8, 2013 Share Posted February 8, 2013 Ok, that fix is not in the latest version. It was made after the last release. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.