バージョン選択

フォーラム

メニュー

オンライン状況

67 人のユーザが現在オンラインです。 (46 人のユーザが フォーラム を参照しています。)
登録ユーザ: 1
ゲスト: 66
dere621 もっと...

サイト内検索

質問 > フロント機能 > ログイン時に不正なページ移動です。と表示されます

フロント機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
ゲスト
投稿日時: 2008/6/5 11:24
対応状況: −−−
ログイン時に不正なページ移動です。と表示されます
正式版1.4.6.をインストールしました。
MySQL バージョン: 4.1.22
PHP バージョン:4および5

1回目は管理画面へ入れたのですが、2回目からはIDとPWを入力すると「ログイン時に不正なページ移動です。」と表示されてログインができません。
IE6 7 Firefox等で試したのですが、どれも同じでログインできません。

困ってます。初心者ですがどなたか教えて下さい。
seasoft
投稿日時: 2008/6/5 16:41
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7369
Re: ログイン時に不正なページ移動です。と表示されます
画面のハードコピーやHTMLソースがあると何か分かるかも。

当方では、バージョン2系しか追いかけていませんので、
分からないと思いますが…


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

ゲスト
投稿日時: 2008/6/5 17:33
対応状況: −−−
Re: ログイン時に不正なページ移動です。と表示されます
「不正なページ移動です。
もう一度ご確認のうえ、再度入力してください。 」
「前のページに戻る」

という画面です。
スクリーンショットをアップ出来なかったので。
他には何も書かれてありません。

HTMLのソースはどのHTMLでしょうか?
seasoft
投稿日時: 2008/6/5 19:24
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7369
Re: ログイン時に不正なページ移動です。と表示されます
Firefox なら、エラー画面で右クリック「ページのソースを表示」で
表示されるソースでよいと思います。

どのモジュールが送出しているのかを開発者が追跡する手がかりになると思います。

あとは、エラー画面が表示される前後のURL(ドメイン部分は伏字で)表示も参考になる場合があります。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

ゲスト
投稿日時: 2008/6/6 9:40
対応状況: −−−
Re: ログイン時に不正なページ移動です。と表示されます
URLは
前:http://*****/eccube/html/admin/index.php
エラー画面:http:/*****/eccube/html/admin/home.php

以下ソースです----------------

<!-- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP">
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="content-style-type" content="text/css">
<link rel="stylesheet" href="/eccube/html/admin/css/contents.css" type="text/css" media="all" />
<script type="text/javascript" src="/eccube/html/js/css.js"></script>
<script type="text/javascript" src="/eccube/html/js/navi.js"></script>

<style type="text/css">
@charset "EUC-JP";

body {
background: #fff url(/eccube/html/img/common/bg.jpg);
background-repeat: repeat-x;
font-family:"MS Pゴシック","Hiragino Maru Gothic Pro","ヒラギノ丸ゴ Pro W4",Osaka,sans-serif;
}


.mainbg {
background: #fff url(/eccube/html/img/contents/main_bg.jpg);
background-repeat: repeat-x;
}

.infobg {
background: #fff url(/eccube/html/img/contents/home_bg.jpg);
background-repeat: no-repeat;
background-color: #e3e3e3;
}


.navi a{
background: url(/eccube/html/img/contents/navi_bar.gif);
background-repeat: repeat-y;
background-color: #636469;
width:140px;
padding: 10px 5px 10px 12px;
color:#ffffff;
text-decoration:none;
display:block ;
}

.navi-on a{
background: url(/eccube/html/img/contents/navi_bar.gif);
background-repeat: repeat-y;
background-color: #a5a5a5;
width:140px;
padding: 10px 5px 10px 12px;
color:#000000;
text-decoration:none;
display:block;
}

/*icon*/
.icon_edit{
background: url(/eccube/html/img/contents/icon_edit.jpg);
background-repeat: no-repeat;
padding: 0 0 0 15px;
}

.icon_mail {
background: url(/eccube/html/img/contents/icon_mail.jpg);
background-repeat: no-repeat;
padding: 0 0 0 15px;
}

.icon_delete {
background: url(/eccube/html/img/contents/icon_delete.jpg);
background-repeat: no-repeat;
padding: 0 0 0 15px;
}

.icon_copy {
background: url(/eccube/html/img/contents/icon_copy.jpg);
background-repeat: no-repeat;
padding: 0 0 0 15px;
}

.icon_class {
background: url(/eccube/html/img/contents/icon_class.jpg);
background-repeat: no-repeat;
padding: 0 0 0 15px;
}

.icon_confirm {
background: url(/eccube/html/img/contents/icon_confirm.jpg);
background-repeat: no-repeat;
padding: 0 0 0 15px;
}


/*send-page*/

.number a{
background: url(/eccube/html/img/contents/number_bg.jpg);
background-repeat: repeat-x;
background-color: #505468;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 8px;
padding-right: 8px;
color:#ffffff;
font-size: 65%;
line-height: 160%;
font-weight: bold;
text-decoration:none;
}

.number a:hover{
background: url(/eccube/html/img/contents/number_bg_on.jpg);
background-repeat: repeat-x;
background-color: #f7c600;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 8px;
padding-right: 8px;
color:#ffffff;
font-size: 65%;
line-height: 160%;
font-weight: bold;
text-decoration:none;
}

.number-on a{
padding-top: 3px;
padding-bottom: 5px;
padding-left: 8px;
padding-right: 8px;
background: url(/eccube/html/img/contents/number_bg_on.jpg);
background-repeat: repeat-x;
background-color: #f7c600;
color:#ffffff;
font-size: 65%;
line-height: 160%;
font-weight: bold;
text-decoration:none;

}

.number-on a:hover{
background: url(/eccube/html/img/contents/number_bg_on.jpg);
background-repeat: repeat-x;
background-color: #f7c600;
padding-top: 3px;
padding-bottom: 5px;
padding-left: 8px;
padding-right: 8px;
color:#ffffff;
font-size: 65%;
line-height: 160%;
font-weight: bold;
text-decoration:none;
}

</style>
<style type="text/css">
body {
background: #fff url(/eccube/html/img/login/bg.jpg);
background-repeat: repeat-x;
}
</style>

<title>EC CUBE 管理者画面</title>
</head>

<body bgcolor="#ffffff" text="#494E5F" link="#006699" vlink="#006699" alink="#006699" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="preLoadImg('/eccube/html/')">
<noscript>
<link rel="stylesheet" href="/eccube/html/admin/css/common.css" type="text/css" >
</noscript>
<div align="center">

<!--▼CONTENTS-->
<table width="556" border="0" cellspacing="0" cellpadding="0" summary=" ">
<tr><td height="182"></td></tr>
<tr>
<td colspan="3"><img src="/eccube/html/img/contents/error_top.jpg" width="562" height="14" alt=""></td>

</tr>
<tr>
<td background="/eccube/html/img/contents/main_left.jpg"><img src="/eccube/html/img/common/_.gif" width="14" height="1" alt=""></td>
<td bgcolor="#cccccc">
<table width="534" border="0" cellspacing="0" cellpadding="0" summary=" ">
<tr>
<td bgcolor="#ffffff" align="center">
<table width="" border="0" cellspacing="0" cellpadding="0" summary=" ">
<tr><td height="60"></td></tr>

<tr>
<td bgcolor="#ffffff" align="center" class="fs12">
不正なページ移動です。<br />もう一度ご確認のうえ、再度入力してください。
</td>
</tr>
<tr><td height="20"></td></tr>
<tr>
<td align="center"><input type="image" onMouseover="chgImgImageSubmit('/eccube/html/img/contents/btn_back_on.jpg',this)" onMouseout="chgImgImageSubmit('/eccube/html/img/contents/btn_back.jpg',this)" src="/eccube/html/img/contents/btn_back.jpg" width="123" height="24" alt="ログインページにページに戻る" border="0" name="back" onclick="location.href='/eccube/html/admin/index.php';"></td>
</tr>

<tr><td height="60"></td></tr>
</table>
</td>
</tr>
</table>
</td>
<td background="/eccube/html/img/contents/main_right.jpg"><img src="/eccube/html/img/common/_.gif" width="14" height="1" alt=""></td>
</tr>
<tr>

<td colspan="3"><img src="/eccube/html/img/contents/error_bottom.jpg" width="562" height="14" alt=""></td>
</tr>
<tr><td height="2"></td></tr>
</table>
<!--▲CONTENTS-->
</div>
</body>
</html>
ゲスト
投稿日時: 2008/6/6 12:26
対応状況: −−−
Re: ログイン時に不正なページ移動です。と表示されます
\data\lib\slib.php
引用:

function sfIsValidTransition($objSess) {
// 前画面からPOSTされるuniqidが正しいものかどうかをチェック
$uniqid = $objSess->getUniqId();
if ( !empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid) ) {
return true;
} else {
return false;
}
}


引用:

function sfIsValidTransition($objSess) {
// 前画面からPOSTされるuniqidが正しいものかどうかをチェック
$uniqid = $objSess->getUniqId();
if ( !empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid) ) {
return true;
} else {
var_dump($_POST);
var_dump($uniqid);
exit;
return false;
}
}

に。

引用:

if (!preg_match($pattern, $referer)) {
if ($disp_error) sfDispError(INVALID_MOVE_ERRORR);
return false;
}


引用:

if (!preg_match($pattern, $referer)) {
var_dump($pattern);
var_dump($referer);
exit;
if ($disp_error) sfDispError(INVALID_MOVE_ERRORR);
return false;
}

に変えると、何かわかるかもしれません。

PHP の知識が無いと危険ですが。
ゲスト
投稿日時: 2008/6/6 13:23
対応状況: −−−
Re: ログイン時に不正なページ移動です。と表示されます
ご回答ありがとうございます。
PHPを上記のように変更してログインしたら

string(80) "/^(http\:\/\/■\.co\.jp\/eccube\/html\/|http\:\/\/■\.co\.jp\/eccube\/html\/)/" string(39) "http://■■/eccube/html/admin/"

こういったエラーが表示されました。
(”■”はドメインなので伏せさせて頂きます)
どうすればいいのでしょうか?

それと一つ気になったのがPHPの日本語のところが文字化けしておりました。問題ありますでしょうか?

どうぞ宜しくお願いいたします。

seasoft
投稿日時: 2008/6/6 14:26
対応状況: −−−
登録日: 2008/6/4
居住地:
投稿: 7369
Re: ログイン時に不正なページ移動です。と表示されます
出力された文字列はエラーではなく、PHPが内部的に保持している
内容です。

で、私が見る限り、さほど問題の無いないように見えます。
(もしかしたら、伏字になっているドメイン部に問題があるかも)

もう少し、原因追跡することも可能ですが、
とりあえず、

引用:

if (!preg_match($pattern, $referer)) {
if ($disp_error) sfDispError(INVALID_MOVE_ERRORR);
return false;
}


をコメントアウト(または削除)すれば、動くかも。
セキュリティリスクは高まると思いますが。


----------------
Seasoft
こちらでの投稿は、アイディア程度に留めさせていただいております。
個別案件の作業は有償で承っております。お気軽にご相談ください。

ゲスト
投稿日時: 2008/6/6 14:50
対応状況: −−−
Re: ログイン時に不正なページ移動です。と表示されます
ありがとうございます!

管理画面に入れました。
しかし、「商品管理」「顧客管理」「受注管理」のページを
開こうとクリックすると
「次のファイルを開こうとしています○○.php」と表示されます。
他のページは確認したところ大丈夫そうでしたけど。

何か問題があるのでしょうか?

質問ばかりで大変申し訳ございません。
ゲスト
投稿日時: 2008/6/6 14:52
対応状況: −−−
Re: ログイン時に不正なページ移動です。と表示されます
あっIE6ではいけました。
Firefoxだけの問題みたいです…。

何故でしょうか?
(1) 2 »
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は90,432名です
総投稿数は110,399件です

投稿数ランキング

1
seasoft
7369
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1694
8
red
1571
9
mcontact
1371
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.