GetSimple Support Forum

Full Version: basic.php: getRegexUnicode(); called without parameters.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
its already been dealt with here

https://github.com/GetSimpleCMS/GetSimpleCMS/issues/902

Thanks for reporting....
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...
It's fixed in hotfixes, of course. Notices and warnings are not really bugs.