Someone Posted January 11, 2013 Share Posted January 11, 2013 Error: Call to undefined function Secure() Error in "F:/xampp/htdocs/nwe/libs/common.php" Line 1214 This error was because I required a file that does not exist in a lib file. So the engine had the full right to complain. But if I comment out common.php:1214 I get a much better error reporting: Error: require_once(mysecretbackdoortothefederalreserve.php): failed to open stream: No such file or directory Remember to fix me common.php line 1215Error in F:\xampp\htdocs\nwe\modules\gradient_usernames\lib.php Line 376 Error in F:\xampp\htdocs\nwe\libs\hooks.php Line 41 Error in F:\xampp\htdocs\nwe\index.php Line 194 Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted January 11, 2013 Share Posted January 11, 2013 Don't know if I'm able to grab a better error there. I will make some tests. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted January 11, 2013 Share Posted January 11, 2013 Ok found: replace your 1214 with: if (function_exists("Secure") && in_array("admin_code_editor", $modules) && strncmp(substr($filename, strlen($baseDir) + 1), "modules/", 8) == 0) That will be implemented like that in the next engine release. Thanks for the report. Quote Link to comment Share on other sites More sharing options...
Someone Posted January 11, 2013 Author Share Posted January 11, 2013 No thank you for fixing. And it worked, I did the same error, and now it shows the proper error message. 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.