建站之星产品帮助

标题: 上传图像问题! [打印本页]

作者: holyghostyang    时间: 2011-5-11 16:05
标题: 上传图像问题!
本帖最后由 holyghostyang 于 2011-5-11 16:25 编辑

后台添加新文章,插入编辑图像,图片名称为数字,jpg格式,大小100k,上传,错误。
以下是错误代码
(, 下载次数: 42)
后台添加新文章,插入编辑图像,已有图片,浏览服务器,出现
PHP Notice:  Undefined variable: cfg_ddimg_width in D:\wwwroot\htjt\admin\fckeditor\dialog\select_images.php on line 273PHP Notice:  Undefined variable: cfg_ddimg_height in D:\wwwroot\htjt\admin\fckeditor\dialog\select_images.php on line 274

sitestar版本为最新版 sitestar V2.0 build110425正式版

作者: holyghostyang    时间: 2011-5-11 16:06
sitestar版本为最新版 sitestar V2.0 build110425正式版
作者: xqf    时间: 2011-5-11 16:35
请问一下的php内核是什么版本。
作者: holyghostyang    时间: 2011-5-12 08:31
PHP Version 5.3.6

CGI/FastCGI

Windows NT PANSHIVPS 5.2 build 3790 (Windows Server 2003 Enterprise Edition Service Pack 2) i586

Zend Guard Loader v3.3
作者: holyghostyang    时间: 2011-5-12 09:18
您好,服务器已有图片浏览问题已经解决。
解决方法:
修改php.ini
将: error_reporting = E_ALL
修改为:error_reporting = E_ALL & ~E_NOTICE
如果什么错误都不想让显示,直接修改:
display_errors = Off

作者: holyghostyang    时间: 2011-5-12 09:24
第一个图片上传出错的问题,我在网上搜索到的结果是
Deprecated:   Function eregi() is deprecated

原因是:php 5.30以上版本不再支持eregi()函数

找到
if (eregi("^(style|style_)(.*)*", $file))
修改为
if (preg_match("/^(style|style_)(.*)*/i", $file))
同理
set_magic_quotes_runtime(0);
修改为
ini_set("magic_quotes_runtime", 0);
Strict standards: Non-static method

作者: lhlh    时间: 2011-5-12 09:27
谢谢您的反馈,正在对此问题进行检测。
作者: holyghostyang    时间: 2011-5-12 11:05
点击文件管理中的上传图片也出现问题,提示:HTTP 500 - 内部服务器错误
Internet Explorer
作者: holyghostyang    时间: 2011-5-12 11:06
本帖最后由 holyghostyang 于 2011-5-12 11:09 编辑

您好 如果不好解决的话,请通知一下。我换回php5.2的版本
建站之星版本是最新版。
作者: zxs    时间: 2011-5-12 11:09
建议你换回php5.2的版本




欢迎光临 建站之星产品帮助 (http://bbs.sitestar.cn/) Powered by Discuz! X3.3