i used PEAR Pager in my Projects . it's works fine in my local server but when i upload it to hosing server it's gaves me fatal error :
我在我的项目中使用了PEAR Pager。它在我的本地服务器上运行正常但是当我将它上传到软管服务器时它会给我带来致命的错误:
Fatal error: Cannot redeclare class PEAR_Common in /usr/lib/php/PEAR/Common.php on line 1123
i don't know what's the problem , how can i solve that ?!
我不知道是什么问题,我怎么解决?
1 个解决方案
#1
The error message says it all. It seems like the class PEAR_Common is loaded twice. Check your code for includes/requires of this class.
错误消息说明了一切。似乎PEAR_Common类被加载了两次。检查您的代码是否包含此类的包含/要求。
If you are using other pear packages that might load (include) this class before you include your Pear_Pager class then this might be the problem.
如果您正在使用其他可能在包含Pear_Pager类之前加载(包含)此类的pear包,那么这可能就是问题所在。
Regards,
#1
The error message says it all. It seems like the class PEAR_Common is loaded twice. Check your code for includes/requires of this class.
错误消息说明了一切。似乎PEAR_Common类被加载了两次。检查您的代码是否包含此类的包含/要求。
If you are using other pear packages that might load (include) this class before you include your Pear_Pager class then this might be the problem.
如果您正在使用其他可能在包含Pear_Pager类之前加载(包含)此类的pear包,那么这可能就是问题所在。
Regards,