升级问题 搞了一夜结果失败 只好放弃

2016-07-07 15:40 来源:www.chinab4c.com 作者:ecshop专家



Fatal error: Class 'cls_template' not found in D:\wwwroot\yunyan1873\wwwroot\admin\includes\init.php on line 197
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => UPDATE `sq_yunyan1873`.`ecs_sessions` SET expiry = '1240800867', ip = '58.16.171.117', userid = '0', adminid = '0', user_name='0', user_rank='0', discount='0', email='0', data = 'a:0:{}' WHERE sesskey = '0bb1deaf13d85a799468786276931a0e' LIMIT 1 ) [2] => Array ( [error] => Unknown column 'user_name' in 'field list' ) [3] => Array ( [errno] => 1054 ) )
就看到这些 都是一步一步的按教程操作的

回答:
有几个文件需要改权限的,更改为777后,再看时还是666,没有变,也不知怎么回事!

找不到人帮助,只好恢复原系统了!唉

可以找个虚拟空间商,把ecshop装上

我现在有啊,2.60版本,想升级新版本,增加一些使用功能,按教程一步一步做,没做好!有热心人免费帮我做,可我要的是自己体验啊!自己要懂一点才好啊

可以在后台执行UPDATE `ecs_shop_config` SET `value` = 'v2.6.1' WHERE `code`='ecs_version'
可以更改数据库
然后再升级次,不用删除东西
安装升级教程
http://bbs.ecshop.com/thread-68399-1-1.html,可以按里面的来做

我会做到会为止,我打算另购一空间来做

商品评论 /* 邮件发送用户 */ define('SEND_LIST', 0); define('SEND_USER', 1); define('SEND_RANK', 2); ?> else { die($message['content']); } exit; } } } ?>LOCK_EX); } ?> } else { $virtual_goods_count++; } } if ($real_goods_count > 0) { $package['is_real'] = 1; } else { $package['is_real'] = 0; } $package['goods_list'] = $goods_res; $package['market_package'] = $market_price; $package['market_package_format'] = price_format($market_price); $package['package_price_format'] = price_format($package['package_price']); return $package; } /** * 获得指定礼包的商品 * * @access public * @param integer $package_id * @return array */ function get_package_goods($package_id) { $sql = "SELECT pg.goods_id, CONCAT(g.goods_name, ' -- [', pg.goods_number, ']') AS goods_name " . "FROM " . $GLOBALS['ecs']->table('package_goods') . " AS pg, " . $GLOBALS['ecs']->table('goods') . " AS g " . "WHERE pg.package_id = '$package_id' " . "AND pg.goods_id = g.goods_id "; if ($package_id == 0) { $sql .= " AND pg.admin_id = '$_SESSION[admin_id]'"; } $row = $GLOBALS['db']->getAll($sql); return $row; } ?>* * 获取当前管理员信息 * * @access public * @param * * @return Array */ function admin_info() { $sql = "SELECT * FROM ". $GLOBALS['ecs']->table('admin_user')." WHERE user_id = '$_SESSION[admin_id]' LIMIT 0, 1"; $admin_info = $GLOBALS['db']->getRow($sql); if (empty($admin_info)) { return $admin_info = array(); } return $admin_info; } ?>?器已禁用 fsocketopen 函数。'; /* 虚拟卡 */ $_LANG['virtual_card_oos'] = '虚拟卡已缺货'; $_LANG['span_edit_help'] = '点击修改内容'; $_LANG['href_sort_help'] = '点击对列表排序'; $_LANG['catname_exist'] = '已存在相同的分类名称!'; $_LANG['brand_name_exist'] = '已存在相同的品牌名称!'; $_LANG['alipay_login'] = '立即免费申请支付接口权限'; $_LANG['alipay_look'] = '请申请成功后登录支付宝账户查看'; ?>$_LANG['log_action']['suppliers'] = '供货商管理'; $_LANG['log_action']['reg_fields'] = '会员注册项'; ?>ANG['invalid_goods_img'] = '商品图片格式不正确!'; //JS语言 $_LANG['js_languages']['shop_name_not_null'] = '商店名称不能为空'; $_LANG['js_languages']['good_name_not_null'] = '商品名称不能为空'; $_LANG['js_languages']['good_category_not_null'] = '商品分类不能为空'; $_LANG['js_languages']['good_number_not_number'] = '商品数量不是数值'; $_LANG['js_languages']['good_price_not_number'] = '商品价格不是数值'; /*后台语言项*/ $_LANG['send_mail_off'] = '自动发送邮件关闭'; ?>
Fatal error: Class 'cls_template' not found in D:\web\changoxo\wwwroot\admin\includes\init.php on line 197

我从2.62升级到2.7出错了,提示楼上的

您在您的本地安装试下