Spaw编辑器 - 严格标准:非静态方法......错误

时间:2013-09-13 08:16:13

标签: php editor

我最近在我的服务器上升级到PHP版本5.4,并立即在我的管理员的内容编辑区域看到错误,所有这些似乎都是由Spaw编辑器PHP版本2.0.8.1的副本引起的,可以从http://www.solmetra.com/en/disp.php/en_products/en_spaw/en_spaw_download

以下是加载包含此编辑器的网站区域时在屏幕上转出的内容的一个小示例:

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

它持续大约1400行错误lol

在研究了这个问题之后,我终于找到了由Starx发布的解决方案,该解决方案与我在这篇文章(PHP 5 disable strict standards error)上的问题密切相关,并且问题立即解决了。我将这些代码行添加到spaw.inc.php文件中:

ini_set('display_errors',0);
ini_set('error_reporting',30719);

因为我的所有错误消息都已消失,但编辑器不再正常工作。

不幸的是,我不是一个非常优秀的程序员,因为我对面向对象的编程风格一无所知,我是一个老式的C程序员,这种风格在我做自己的时候很适合我用PHP编码。这是我的问题,我无法弄清楚如何解决这个问题。 Solmetra网站似乎不再活跃,虽然我注意到它最近在http://sourceforge.net/projects/spaw/更新,最近在2013年4月17日,不幸的是我必须使用这个产品,因为它是我能找到的市场上唯一的编辑器多语言标签对我的业务至关重要。

有没有人对此产品或建议有任何经验?

tyvm,

文斯

0 个答案:

没有答案