BUG REPORT basic.php: getRegexUnicode(); called without parameters. - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: BUG REPORT basic.php: getRegexUnicode(); called without parameters. (/showthread.php?tid=6681) |
basic.php: getRegexUnicode(); called without parameters. - zxxz - 2014-08-25 Hello there, Today I enabled the debug in gsconfig.php to troubleshoot an issue but accidentally I stumbled on an (unrelated) warning while saving the components (admin/components.php). The warning states: "Warning: Missing argument 1 for getRegexUnicode(), called in /Users/zxxz/Sites/xxx/admin/inc/basic.php on line 699 and defined in /Users/zxxz/Sites/xxx/admin/inc/basic.php on line 712" And at the end: "Error: Headers already sent in /Users/zxxz/Sites/xxx/admin/inc/basic.php on line 712 If your browser does not redirect you, click here" In basic.php, line 699 I see "$chr = getRegexUnicode();" so the function is being called without parameters, while the function itself is defined at line 712 as "function getRegexUnicode($id){". This warning is visible only in debug mode. I thought it was useful to report... Cheers, zxxz RE: basic.php: getRegexUnicode(); called without parameters. - n00dles101 - 2014-08-25 its already been dealt with here https://github.com/GetSimpleCMS/GetSimpleCMS/issues/902 Thanks for reporting.... RE: basic.php: getRegexUnicode(); called without parameters. - indyana - 2014-09-01 Ha, just upgraded and ran into this as well. Nice to see a fix already logged. Applied to my file so I don't have to wait for the next release... RE: basic.php: getRegexUnicode(); called without parameters. - shawn_a - 2014-09-01 It's fixed in hotfixes, of course. Notices and warnings are not really bugs. |