Ecshop打印报价单页面显示空白!
2010-02-04 11:24
323 查看
今天碰到了这样的一个问题,公司的Ecshop模板的网店。打印报价页面,在本地测试可以显示产品价格信息。但在服务器上当点击打印报价单时,页面也空白,什么都没有。先说明一下本地系统是:Windows XP + IIS 5.0 + php 5.0;服务器是Windows Server 2003 +IIS 6.0 +php 5.0。
在网上搜了一下,主要有两个可能原因:
1、在data中,是否有quotation_print.html这个页面。
2、quotation_print.html这个页面是否有足够的权限。
我按网上的资料检查一下,我的情况都不是因为是这两个原因。
我突然想起了,前天有个也是PHP的系统,因为路径问题,无法上传图片,我想是不是这次也是这个原因呢?
于是我测试了一下,发现还真的是这个问题。下面就是我修改的方法。
先找到includes/cls_template.php,接着找到"fetch($filename, $cache_id = '')"这个函数,
在如下的代码
后面加上这样的一句:
/*windows 系统绝对目录*/
$filename=substr(__FILE__,0,strrpos(__FILE__,"//"))."//".$filename;
这样就搞定了,php在windows上运行路径还真是个大问题。
在网上搜了一下,主要有两个可能原因:
1、在data中,是否有quotation_print.html这个页面。
2、quotation_print.html这个页面是否有足够的权限。
我按网上的资料检查一下,我的情况都不是因为是这两个原因。
我突然想起了,前天有个也是PHP的系统,因为路径问题,无法上传图片,我想是不是这次也是这个原因呢?
于是我测试了一下,发现还真的是这个问题。下面就是我修改的方法。
先找到includes/cls_template.php,接着找到"fetch($filename, $cache_id = '')"这个函数,
在如下的代码
if ($this->_checkfile) { if (!file_exists($filename)) { $filename = $this->template_dir . '/' . $filename; } } else { $filename = $this->template_dir . '/' . $filename; }
后面加上这样的一句:
/*windows 系统绝对目录*/
$filename=substr(__FILE__,0,strrpos(__FILE__,"//"))."//".$filename;
这样就搞定了,php在windows上运行路径还真是个大问题。
相关文章推荐
- Ecshop打印报价单页面显示空白!
- 关于liunx服务器页面显示空白问题
- thinkphp5(tp5)打开页面没有报错,反而显示空白页面
- 源代码修改错,导致ecshop后台管理员权限显示空白
- Ecshop商品批量上传,内容编码错误 您尝试查看的页面无法显示
- WebView加载html显示空白页面
- 打印web页面,让指定区域里的内容不会分页显示。
- 打印页面样式设计 控制一个table显示在一页上
- ueditor有的机器显示有的机器页面空白--解决
- 解决 ECSHOP v273 产品详情页面评论不显示的问题
- ECSHOP:商品展示页面鼠标滑过小图显示大图
- ECSHOP 版本2.7 商品详情页面,显示购买记录
- Xcode8 TableView使用静态表单页面显示空白的问题
- PHP7 + Nginx 打开php页面显示空白
- 利用css可以实现页面显示和打印分开
- 真机调试页面显示空白
- 对页面制定区域进行打印,以及打印不显示页脚URL的方法
- nginx+php-fpm页面显示空白的解决方法
- 单据页面的显示与打印小结
- Ecshop购物车或结算页面显示商品品牌