Hi,

I just enabled the osmobi client module on my site and these errors came up:

Strict Standards: Non-static method OsmobiLib::userCall() should not be called statically in /.../sites/all/modules/osmobiclient/osmobiclient.module on line 115

Strict Standards: Non-static method OsmobiLib::isTranscoded() should not be called statically in /var/www/development/sites/all/modules/osmobiclient/osmobiLib/OsmobiLib.php on line 74

Strict Standards: Non-static method OsmobiLib::getServiceDefinitions() should not be called statically in /var/www/development/sites/all/modules/osmobiclient/osmobiLib/OsmobiLib.php on line 159

Strict Standards: Non-static method OsmobiLib::getRequestParameter() should not be called statically in /var/www/development/sites/all/modules/osmobiclient/osmobiLib/OsmobiLib.php on line 321

Strict Standards: Non-static method OsmobiLib::getRequestParameter() should not be called statically in /var/www/development/sites/all/modules/osmobiclient/osmobiLib/OsmobiLib.php on line 160

Strict Standards: Non-static method OsmobiLib::isMobileDevice() should not be called statically in /var/www/development/sites/all/modules/osmobiclient/osmobiLib/OsmobiLib.php on line 75

Strict Standards: Non-static method OsmobiLib::getRequestParameter() should not be called statically in /var/www/development/sites/all/modules/osmobiclient/osmobiLib/OsmobiLib.php on line 77

What is the problem?

My setup is:

Drupal 6.15
Osmobile Client 6.x-1.5
Apache 2
PHP 5
Mysql 5

Thanks in advance for any information on this error.

Comments

gregarios’s picture

Priority: Normal » Critical

I'm getting this error as well. Marking it critical since the error is killing all caching with Boost module as well.

twom’s picture

Assigned: Unassigned » stijnbe
Status: Active » Needs work

Hi All,

Thank you for the feedback. The error is shown because in the php.ini file of your php server, the error reporting is set to strict: E_STRICT. If you set the error message to E_ALL you will not have this problem.

However, this error is introduced because of a former compatibility with PHP4 (that we don't support anymore). We will adjust the code to not have this error again.

This fix will be for the next release that will be published soon. I'll keep you up to date! (but in meantime setting error reporting = E_ALL in your php.ini file can fix this).

Let me know if you have any more problems! Then we can fix them all for the new release ;)

Tom

gregarios’s picture

My php.ini does have error reporting = E_ALL in it, but Boost module is still detecting the error and refusing to cache pages because of it. Looking forward to the new version.