I recently upgraded to PHP version 5.4 on my servers and immediately saw errors in the content editing area of my admin, all of which appear to be caused by the copy of Spaw Editor PHP Edition version 2.0.8.1 which can be downloaded from http://www.solmetra.com/en/disp.php/en_products/en_spaw/en_spaw_download.
Here is a small example of what gets dumped out on my screen when loading areas of the site which contain this editor:
Strict Standards: Non-static method SpawVars::getServerVar() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/config/config.php on line 7
Strict Standards: Non-static method SpawConfig::setStaticConfigItem() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/config/config.php on line 7
Strict Standards: Non-static method SpawConfig::configVar() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/class/config.class.php on line 119
Strict Standards: Non-static method SpawConfig::getStaticConfigValue() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/config/config.php on line 8
Strict Standards: Non-static method SpawConfig::getStaticConfigItem() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/class/config.class.php on line 236
Strict Standards: Non-static method SpawConfig::configVar() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/class/config.class.php on line 143
Strict Standards: Non-static method SpawConfig::getStaticConfigValue() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/config/config.php on line 9
Strict Standards: Non-static method SpawConfig::getStaticConfigItem() should not be called statically in /home/modusint/canadatravels/modusadm/admin/js/spaw2/class/config.class.php on line 236
And it goes on for about 1400 lines of errors lol
After researching the problem I finally got down to solution posted by Starx that was very closely related to my own problem on this post (PHP 5 disable strict standards error) and the problem cleared right up. I added these lines of code to spaw.inc.php file:
ini_set('display_errors',0);
ini_set('error_reporting',30719);
With that all my error message have disappeared, but the editor doesn't work properly anymore.
Unfortunately I'm not a very good programmer in the sense that I don't understand anything to do with Object Oriented programming style, I'm an old school C programmer and this style has suited me just fine when doing my own coding in PHP. Here in is my problem, I cant figure out how to fix this. The Solmetra website does not appear to be active anymore though I noticed it was updated on http://sourceforge.net/projects/spaw/ as recently as April 17th, 2013 and unfortunately I HAVE to use this product because it's the only editor on the market I can find that possess multilingual tabs which is critical to my business.
Does anyone have any experience with this product or suggestions?
tyvm,
Vince