Jump to content
MakeWebGames

Recommended Posts

Posted

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
Posted (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 by Someone
Posted (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 by KyleMassacre
Posted

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

Posted
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.

Posted
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???

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...