Warning: Undefined array key "cperpage" in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 134

Warning: Undefined variable $output in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 204

Warning: Undefined variable $fixed_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 205

Warning: Undefined variable $showfullstop in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 206

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 209

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 212

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 215

Warning: Undefined variable $post in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Attempt to read property "ID" on null in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Undefined variable $post in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Attempt to read property "ID" on null in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Undefined variable $m_link_title in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224
[さくらインターネット スタンダードプラン]リダイレクト処理ができない | じゃみじゃみ.net
じゃみじゃみ.net

さくらインターネット スタンダードプランにてリダイレクト処理でエラーが出てきます。
以下がエラーが発生するコードです。


■エラーが出るコード
header(“Location: /hoge.php”);


■エラー内容
Warning: Cannot modify header information – headers already sent by (output started at /home/(ユーザー名)/www/index.php:1) in /home/(ユーザー名)/www/index.php on line (行数)


ヘッダー情報に追加できません?
すでに送ってるだ・・・と?
結果、解決方法は以下の通り。


1.さくらインターネットコントロールパネルにログイン
2.PHP設定の編集をクリック
3.php.ini 設定ファイル編集画面で「output_buffering = On」を入力し「保存する」をクリック
4.エラーが出ていた所が正常にリダイレクト処理を行っているか確認


頼むよまじで!


2 Responses to “[さくらインターネット スタンダードプラン]リダイレクト処理ができない”

  1. 吉田 豊司

    やっと同様の問題にたどりつきました。
    しかし、同じようにphp.iniを編集しましたが、未解決です。

  2. haruiruka

    コード、エラーの内容が分からないので何とも言えませんが、一度リダイレクト処理のみのファイルをアップロードして確認してみてはどうでしょうか。
    エラーの切り分けをしてみれば何か分かるかもしれません。

トラックバック

コメントをどうぞ


Warning: Undefined variable $user_ID in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/comments.php on line 83

Proudly powered by WordPress. EureKa theme designer denied.
Copyright © じゃみじゃみ.net. All rights reserved. Theme Provided By Web Resources