SpeedPHP技术交流论坛

 找回密码
 论坛注册

QQ登录

只需一步,快速开始

搜索
楼主: jake

【实例】PHP微博客程序WinBlog1.1

  [复制链接]

0

主题

0

好友

0

积分

武林新贵

Rank: 4

发表于 2010-4-12 14:29:12 |显示全部楼层
不对呀! 通信失败后, 不能进行同步登陆啊? 在winblog 里新注册的用户不能在 ucenter Home 中进行登录

0

主题

0

好友

8

积分

武林新贵

Rank: 4

发表于 2010-4-24 12:21:39 |显示全部楼层
我也来看看哦

0

主题

0

好友

0

积分

武林新贵

Rank: 4

发表于 2010-8-21 01:50:34 |显示全部楼层
腾讯都正式要求激活了

14

主题

0

好友

36

积分

武林新贵

Rank: 4

发表于 2010-12-6 13:13:02 |显示全部楼层
我也下一个研究研究

55

主题

0

好友

190

积分

高手侠影

Rank: 6Rank: 6

发表于 2011-1-8 11:46:35 |显示全部楼层
今天安装微博以后,登录会员发表微博时出现以下错误


  1. INSERT INTO win_win (username,uid,nickname,contents,atuser,refrom,repostid,commentto,ctime) VALUES ('000000','2','小双','第三方斯蒂芬','','网站','0','','1294457391')
  2. 执行错误: Incorrect integer value: '' for column 'commentto' at row 1
复制代码
类似还有“repostid”这个字段值;
数据为空时报错,我的解决办法是在lib_win.php里面的creat函数里面开头加了一个默认值:


  1. public function create($row)
  2. {
  3.   $row['repostid']=0;
  4.   $row['commentto']=0;

复制代码
不知道其他人调试的时候有没有这种情况!
还有微博里面的speedphp还是sp2.5版本的吧!需要更新!

0

主题

0

好友

4

积分

武林新贵

Rank: 4

发表于 2011-3-14 22:15:21 |显示全部楼层
Warning: require(APP_PATH/template/install/step1.html) [function.require]: failed to open stream: No such file or directory in E:\APMServ5.2.6\www\htdocs\install.php on line 286

Fatal error: require() [function.require]: Failed opening required 'APP_PATH/template/install/step1.html' (include_path='.;C:\php5\pear') in E:\APMServ5.2.6\www\htdocs\install.php on line 286

0

主题

0

好友

4

积分

武林新贵

Rank: 4

发表于 2011-3-19 01:19:06 |显示全部楼层
发信息出错。。

INSERT INTO win_win (username,uid,nickname,contents,atuser,refrom,repostid,commentto,ctime) VALUES ('shiguang','3','时光','feafdsafads','NULL','网站','NULL','NULL','1300468089')
执行错误: Incorrect integer value: 'NULL' for column 'repostid' at row 1

D:\freehost\shiguang1\web\SpeedPHP\Core\mysql.php on line 61
56.      {
57.          $this->arrSql[] = $sql;
58.          if( $result = mysql_query($sql, $this->conn) ){
59.              return $result;
60.          }else{
61.              spError("{$sql}<br />执行错误: " . mysql_error());
62.          }
63.      }
64.  
65.      /**
66.       * 获取数据表结构
D:\freehost\shiguang1\web\SpeedPHP\Core\spModel.php on line 142
137.          }
138.          $col = join(',', $cols);
139.          $val = join(',', $vals);
140.           
141.          $sql = "INSERT INTO {$this->tbl_name} ({$col}) VALUES ({$val})";
142.          if( FALSE != $this->_db->exec($sql) ){ // 获取当前新增的ID
143.              if( $newinserid = $this->_db->newinsertid() ){
144.                  return $newinserid;
145.              }else{
146.                  return array_pop( $this->find($row, "{$this->pk} DESC",$this->pk) );
147.              }
D:\freehost\shiguang1\web\model\lib_win.php on line 42
37.              'refrom' => $row['refrom'],
38.              'repostid' => $row['repostid'],
39.              'commentto' => $row['commentto'],
40.              'ctime' => time(),
41.          );
42.          $newid = parent::create($newrow);if(false == $newid)return false;
43.           
44.          // 获取话题,然后写入对应表
45.          if( $topics = $this->gettopic($contents) ){spClass('lib_topic')->createAll($topics, $newid);}
46.           
47.          // 处理repostid,commentto的对应微博的repostsum和commentsum
D:\freehost\shiguang1\web\controller\wblog.php on line 173
168.              'uid'=>$_SESSION['winblognow']['uid'],
169.              'username'=>$_SESSION['winblognow']['username'],
170.              'nickname'=>$_SESSION['winblognow']['nickname'],
171.              'refrom'=>'网站'
172.          );
173.          spClass('lib_win')->create(array_merge($row,$addrow));
174.           
175.          spClass('lib_user')->remind($fromwin['uid'], $reminder_type); // 发送提醒
176.          // 成功返回
177.          $this->success('微博发布成功', $ref);
178.      }
D:\freehost\shiguang1\web\SpeedPHP\SpeedPHP.php on line 89
84.      eval($GLOBALS['G_SP']["dispatcher_error"]);
85.      exit;
86.  }
87.  
88.  // 执行用户代码
89.  $handle_controller->$__action();
90.  
91.  // 控制器程序运行完毕,进行模板的自动输出
92.  if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
93.      $__tplname = $GLOBALS['G_SP']['view']['config']['template_dir']."/".
94.          $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
D:\freehost\shiguang1\web\index.php on line 11
6.  
7.  if( true != @file_exists(APP_PATH.'/config.php') ){require(APP_PATH.'/install.php');exit;}
8.  
9.  require(APP_PATH.'/model/functions.php');
10.  $spConfig = require(APP_PATH."/config.php");
11.  require(SP_PATH."/SpeedPHP.php");

11

主题

0

好友

49

积分

武林新贵

Rank: 4

发表于 2011-5-9 23:27:31 |显示全部楼层
不能下载哦

6

主题

0

好友

63

积分

高手侠影

一起房网运营总监

Rank: 6Rank: 6

发表于 2011-10-14 20:00:33 |显示全部楼层
回复 7# jake


   此2人的用户名笔JAKE都厉害

0

主题

0

好友

9

积分

武林新贵

Rank: 4

发表于 2011-10-19 17:30:35 |显示全部楼层
回复 7# jake


没有做限制啊 呵呵
您需要登录后才可以回帖 登录 | 论坛注册

手机版|Archiver|SpeedPHP.com ( 粤ICP备08008671号 )  

GMT+8, 2012-5-19 02:14

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部