- This topic has 2 replies, 2 voices, and was last updated 4 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Change WordPress user roles and capabilities › Forums › Bug Reports › PHP Warning Message
Tagged: PHP Warning Message
Halo,
I had install the User Role Editor Pro plugin in my wordpress website. Unfortunately that I found a lot of warning message in my PHP Log server like:
PHP Warning: strpos() Empty needle in /var/www/html/wp-content/plugins/user-role-editor-pro/pro/includes/plugin-update-checker.php on line 628, referer: domain
May I know how to fix this issue or how can I ignore this issue from the plugin files?
Thank you!
Best Regards,
Leo
Hi,
Replace line 628 with this version:
if ( !empty( $muPluginDir ) ) {
$cachedResult = ( strpos( $pluginPath, $muPluginDir ) === 0 );
}
I will include this change into the next update of URE Pro.
Hi Vladimir,
The PHP Error Message has been removed after replaced your suggested code. Thanks for the help!
Best Regards,
Leo