うぇblog2 がリリースされたというので、 さっそくドリームウィーバーでアップロードをしてみましたところ 画面に Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /〜中略〜/modules/protector/class/protector.php on line 45 がでまして画面にこの文字のみが表示されたままになっています。 何か間違ったのかもしれないとすぐに、ftpからモジュールを削除したのですが、上記のwarning が消えず、依然画面が表示できません。(当方、mac で、safariを使用しています)
ちなみに、サイトurlは、http://cocokara-design.com です。 protecter.php 45行目をftpでみてみますと、そのあたりは、 // Preferences (for performance, I dare to use an irregular method) $result = mysql_query( "SELECT conf_name,conf_value FROM ".XOOPS_DB_PREFIX."_config WHERE conf_title like '_MI_PROTECTOR%'" , $conn ) ; if( mysql_num_rows( $result ) < 5 ) return false ; $this->_conf = array() ; while( list( $key , $val ) = mysql_fetch_row( $result ) ) { $this->_conf[ $key ] = $val ; } とこう書かれていまして、何をどうしたらいいのかがわからず、 困っています。
ちなみに、protecter.phpの属性は、644となっています。
また、現在は、サイト管理画面にログインすることもできません。 権限が無いとでます。(You don't have the right to access this area )
// Preferences (for performance, I dare to use an irregular method)
$result = mysql_query ;if ($result===FASLE||mysql_error($conn)) {
print("mysql:query:error(".mysql_errno($db)."):".mysql_error($conn)."<BR>\n");
exit();
}
その結果、今度は、下記のようになりました。
Parse error: parse error, unexpected ',' in /〜中略〜/protector/class/protector.php on line 48
48行目あたりは
// Preferences (for performance, I dare to use an irregular method)
$result = mysql_query ;if ($result===FASLE||mysql_error($conn)) {
print("mysql:query:error(".mysql_errno($db)."):".mysql_error($conn)."<BR>\n");
exit();
}
( "SELECT conf_name,conf_value FROM ".XOOPS_DB_PREFIX."_config WHERE conf_title like '_MI_PROTECTOR%'" , $conn ) ;
if( mysql_num_rows( $result ) < 5 ) return false ;
$this->_conf = array() ;
while( list( $key , $val ) = mysql_fetch_row( $result ) ) {
$this->_conf[ $key ] = $val ;
}
Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/〜中略〜/protector.php on line 46
mysql:query:error():Table '(ここには、IDが入っています).xoops_config' doesn't exist