Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BUG REPORT basic.php: getRegexUnicode(); called without parameters.
#1
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
Reply
#2
its already been dealt with here

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

Thanks for reporting....
My Github Repos: Github
Website: DigiMute
Reply
#3
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...
Reply
#4
It's fixed in hotfixes, of course. Notices and warnings are not really bugs.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)