[Plugin: TDO Mini Forms] Generating lots of warnings
-
I’ve just installed TDO Mini Forms – 0.13.4 (build 51) and I’m trying to create and use forms. Many of the TDOMF pages generate a slew of warning messages so I’m concerned/confused and looking for advice.
TDO Mini Forms – Form Options is one of the pages that generates several pages of this warning:
Warning: substr() expects parameter 2 to be long, string given in C:\xampp\xampp\htdocs\soupcookbook\wp-content\plugins\tdo-mini-forms\admin\tdomf-form-options.php on line 128
The indicated line is the statement:
if(substr($cap,TDOMF_CAPABILITY_CAN_SEE_FORM,strlen(TDOMF_CAPABILITY_CAN_SEE_FORM)) == TDOMF_CAPABILITY_CAN_SEE_FORM) {
Adding an
echo
to the loop showed that TDOMF_CAPABILITY_CAN_SEE_FORM has the value “tdomf_can_see_form” while $cap cycles through values like “activate_plugins”. It’s clear why substr is generating warnings, since the start position has a string value.I’m surprised to see this on a fresh install and wondering what I may have missed. The code segment has the comment
* get an array with all capabilities * copied from role-manager 2 plugin
…so I’m wondering:
- Is the role-manager 2 pluging a prerequisite?
- Can I just comment out the loop? (I haven’t set up any special permissions)
Thanks,
Phillip
- The topic ‘[Plugin: TDO Mini Forms] Generating lots of warnings’ is closed to new replies.