I have just updated the Toolset suite of plugins and the following warning now shows up in the dashboard:
Warning: strpos(): Empty needle in /home/freeman6/public_html/ss/wp-content/plugins/types/vendor/otgs/installer/loader.php on line 124
When only Types is active no error displays. Once Oxygen is activated, the warning displays.
Thanks. Gavin.
Hi Gavin,
Thank you for waiting.
Just wanted to update that I was able to reproduce the warning message, on my test website and this has been reported to the concerned team.
Appreciate your report and I'll keep you updated with the progress on this.
For now, to avoid this warning, you can update the code block at line # 124 in the file: "\types\vendor\otgs\installer\loader.php" from:
// set configuration
if ( strpos( realpath( $delegate['bootfile'] ), (string) realpath( TEMPLATEPATH ) ) === 0 ) {
$delegate['args']['in_theme_folder'] = dirname( ltrim( str_replace( realpath( TEMPLATEPATH ), '', realpath( $delegate['bootfile'] ) ), '\\/' ) );
}
To:
if(!empty( realpath( TEMPLATEPATH ) ))
{
// set configuration
if ( strpos( realpath( $delegate['bootfile'] ), (string) realpath( TEMPLATEPATH ) ) === 0 ) {
$delegate['args']['in_theme_folder'] = dirname( ltrim( str_replace( realpath( TEMPLATEPATH ), '', realpath( $delegate['bootfile'] ) ), '\\/' ) );
}
}
regards,
Waqar