Notice: can't write错误,ECSHOP问题

Notice: can't write错误,ECSHOP问题

在ECSHOP的二次开发过程中,我们可能会遇到Notice: can't write错误,那今天青岛SEO就跟大家讲解一下

问题描述:本来我的的商城系统可以很好的运行在我本地搭建的IIS+APACH+MYSQL上,调试的时候也在另外一个远程WINDOWS虚拟主机上测试过,一切正常。但是当我使用美国的虚拟主机的时候,问题来了,而且非常严重。

整个页面出现了无数个类似下面的错误

Notice: Undefined variable: data in /services1/webpages/m/a/marinehardwarestore.com/public/includes/lib_base.php on line 1241

Warning: require(/services1/webpages/m/a/marinehardwarestore.com/public/languages//common.php) [function.require]: failed to open stream: No such file or directory in /services1/webpages/m/a/marinehardwarestore.com/public/includes/init.php on line 120

Warning: require(/services1/webpages/m/a/marinehardwarestore.com/public/languages//common.php) [function.require]: failed to open stream: No such file or directory in /services1/webpages/m/a/marinehardwarestore.com/public/includes/init.php on line 120

Fatal error: require() [function.require]: Failed opening required '/services1/webpages/m/a/marinehardwarestore.com/public/languages//common.php' (include_path='.:/services1/webpages/m/a/marinehardwarestore.com/public/') in /services1/webpages/m/a/marinehardwarestore.com/public/includes/init.php on line 120

在网上搜集了好多方法,但是都无效,其中包括修改文件夹权限,我全部改为777仍然无效、检查空间是否已满,这个我可以肯定我的空间很充足、甚至有人提到设置php.ini文件,我想说的是这个文件我们是没有权限设置的,除非你自己的服务器,还有人提到是由于使用了记事本编码的问题,重新转换下编码。还有人说是因为使用了echo之类的输出。这一切方法我都试过了,仍然没有解决这个问题。

到了最后,其实问题的原因很简单,那就是在上传文件的时候需要使用二进制上传,这个是在UNIX主机特有的一点。否则的话很多文件在UNIX主机上可能无法正确运行。