Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[疑问] 可能原因:1.数据超长或类型不匹配;感谢ejew帮我解决/鄙视该斑区斑竹

[复制链接]
z6701000 发表于 2009-8-12 11:32:00 | 显示全部楼层 |阅读模式
本帖最后由 z6701000 于 2009-8-12 15:58 编辑

PW7.0到DZ7.0第一步会员跟在线时间出现
Time: 2010-10-2 6:31pm
SQL: INSERT INTO ayt.cdb_memberfields (uid, nickname, site, alipay, icq, qq, yahoo, msn, taobao, location, customstatus, medals, avatar, avatarwidth, avatarheight, bio, sightml, ignorepm, groupterms, authstr, spacename, buyercredit, sellercredit) VALUES ( '783', '', 'http://1149140304', '', '', '1149140304', '', '', '', '重庆', 'CM,愛上妳我輸的徹底,我發現命運', '', 'customavatars/upload/83/783.jpg', '100', '100', '#现实社会,低调面对。* *、嘴甪·勾起,︿抹〈幸福〉旳微笶!!……', '', '', '', '', '', '', '');
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'customavatars/upload/83/783.jpg', '100', '100', '#现实社会,低调面对。* *、嘴甪? at line 1
Errormsg.: 可能原因:1.数据超长或类型不匹配;2.数据库记录重复
Errno.: 1064
回复

使用道具 举报

白乐天 发表于 2009-8-12 11:44:52 | 显示全部楼层
把uid为783的会员的签名档清空,再进行转换看看。
回复

使用道具 举报

 楼主| z6701000 发表于 2009-8-12 12:04:14 | 显示全部楼层
希奇因为就是没有783的UID
回复

使用道具 举报

12153556 发表于 2009-8-12 12:45:40 | 显示全部楼层
进入数据库删除“'CM,愛上妳我輸的徹底,我發現命...............”的记录在转换试试
回复

使用道具 举报

桃子(小敏) 发表于 2009-8-12 13:08:55 | 显示全部楼层
检查下是否memberfields表中是否有字段avatar为customavatars/upload/83/783.jpg的重复数据?
回复

使用道具 举报

12153556 发表于 2009-8-12 13:19:16 | 显示全部楼层
( '783', '', 'http://1149140304', '', '', '1149140304', '', '', '', '重庆', 'CM,愛上妳我輸的徹底,我發現命運', '', 'customavatars/upload/83/783.jpg', '100', '100', '#现实社会,低调面对。* *、嘴甪·勾起,︿抹〈幸福〉旳微笶!!……', '', '', '', '', '', '', '');

这是一条记录里的

呵呵
回复

使用道具 举报

 楼主| z6701000 发表于 2009-8-12 14:33:22 | 显示全部楼层
问题找不到这条记录
回复

使用道具 举报

ejew 发表于 2009-8-12 15:35:10 | 显示全部楼层
有转换记录怎么可能没有原始记录
简单的处理方法:
转换程序中的
data\pw70 - 70uc\step_1.php

  1. $bio                        =        $user['introduce'] ? @strip_tags($user['introduce']) : '';
复制代码


改成

  1. $bio                        =        '';
复制代码


屏蔽转换个人介绍,一了百了
火星文,繁体较多的建议转换成utf8版本
回复

使用道具 举报

 楼主| z6701000 发表于 2009-8-12 15:39:02 | 显示全部楼层
Time: 2010-10-2 10:38pm
SQL: INSERT INTO ayt.cdb_memberfields (uid, nickname, site, alipay, icq, qq, yahoo, msn, taobao, location, customstatus, medals, avatar, avatarwidth, avatarheight, bio, sightml, ignorepm, groupterms, authstr, spacename, buyercredit, sellercredit) VALUES ( '783', '', 'http://1149140304', '', '', '1149140304', '', '', '', '重庆', 'CM,愛上妳我輸的徹底,我發現命運', '', 'customavatars/upload/83/783.jpg', '100', '100', '', '', '', '', '', '', '', '');
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'customavatars/upload/83/783.jpg', '100', '100', '', '', '', '', '', '', '', '')' at line 1
Errormsg.: 可能原因:1.数据超长或类型不匹配;2.数据库记录重复
回复

使用道具 举报

 楼主| z6701000 发表于 2009-8-12 15:39:16 | 显示全部楼层
按楼上的修改成这样的错误
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-16 13:30 , Processed in 0.103042 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表