Skip Navigation

[Escalated to 2nd Tier] Conflict between Types 3.2.5 and Oxygen 2.1.2

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 5 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1200834

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.

#1201659

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