質問するログイン新規登録

質問編集履歴

5

表示されなくなったページのスクショを追加しました

2021/10/05 16:04

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -200,6 +200,8 @@
200
200
  ```
201
201
  Fatal error: Uncaught Error: Call to a member function internationalize() on null in /home/querl/www/querl.jp/wp-content/themes/querl2012/page.php:90 Stack trace: #0 /home/querl/www/querl.jp/wp-includes/template-loader.php(106): include() #1 /home/querl/www/querl.jp/wp-blog-header.php(19): require_once('/home/querl/www...') #2 /home/querl/www/querl.jp/index.php(17): require('/home/querl/www...') #3 {main} thrown in /home/querl/www/querl.jp/wp-content/themes/querl2012/page.php on line 90
202
202
  ```
203
+ ### 表示されなくなったページの様子
204
+ ![イメージ説明](36bc7405a7da0d64e6948f5eb5298c8c.png)
203
205
 
204
206
  ### 試したこと
205
207
 

4

実現したいことを追加しました。

2021/10/05 16:04

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -8,6 +8,10 @@
8
8
  ②テーマエディターで「header.php」をいじった(Twitterボタンを消したかった)
9
9
  ③テーマエディターで「footer.php」をいじった(Twitterボタンを消したかった)
10
10
 
11
+ 【実現したいこと】
12
+ 表示されないなどおかしなところを修復したい
13
+ サイトが重いので修復したい
14
+
11
15
  ### 該当のソースコード「header.php」
12
16
  <div id="add_right_box">のところのフェイスブックのボタンと思われるコードと並んでいた、ツイッターボタンと思われるコードを消しましたところおかしくなりました。
13
17
  ```

3

初心者アイコンをつけて、タイトルを変更しました。

2021/10/05 11:10

投稿

退会済みユーザー
title CHANGED
@@ -1,1 +1,1 @@
1
- 【当方、PHP超初心者です。】「header.php」「footer.php」をいじったらおかしくなりました
1
+ 「header.php」「footer.php」をいじったらおかしくなりました
body CHANGED
File without changes

2

ソースコードを追加しました。

2021/10/05 10:54

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -9,7 +9,7 @@
9
9
  ③テーマエディターで「footer.php」をいじった(Twitterボタンを消したかった)
10
10
 
11
11
  ### 該当のソースコード「header.php」
12
- 太字になっているフェイスブックのボタンと思われるコードと並んでツイッターボタンと思われるコードを消しましたところおかしくなりました。
12
+ <div id="add_right_box">のところのフェイスブックのボタンと思われるコードと並んでいた、ツイッターボタンと思われるコードを消しましたところおかしくなりました。
13
13
  ```
14
14
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
15
15
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">

1

たくさんのご指摘ありがとうございます。ソースコードを追加させていただきました。

2021/10/05 10:52

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -8,7 +8,189 @@
8
8
  ②テーマエディターで「header.php」をいじった(Twitterボタンを消したかった)
9
9
  ③テーマエディターで「footer.php」をいじった(Twitterボタンを消したかった)
10
10
 
11
+ ### 該当のソースコード「header.php」
12
+ 太字になっているフェイスブックのボタンと思われるコードと並んでツイッターボタンと思われるコードを消しましたところおかしくなりました。
13
+ ```
14
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
15
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
16
+ <head>
17
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
18
+ <meta name="robots" content="INDEX,FOLLOW" />
19
+ <meta name="copyright" content="Copyright(C) Querl 2012 All Rights Reserved." />
20
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
21
+ <meta http-equiv="Content-Style-Type" content="text/css" />
22
+ <meta property="og:locale" content="ja_JP">
23
+ <meta property="og:type" content="article">
24
+ <meta property="og:description" content="<?php echo get_post_meta($post->ID, _aioseop_description, true); ?>">
25
+ <meta property="og:title" content="<?php the_title(); ?>">
26
+ <meta property="og:url" content="<?php the_permalink() ?>">
27
+ <meta property="og:site_name" content="<?php bloginfo('name'); ?>">
28
+ <?php if (has_post_thumbnail()) :?>
29
+ <?php
30
+ $image_id = get_post_thumbnail_id();
31
+ $image_url = wp_get_attachment_image_src($image_id,'medium');
32
+ ?>
33
+ <meta property="og:image" content="<?php echo $image_url[0]; ?>">
34
+ <?php else: ?>
35
+ <meta property="og:image" content="<?php bloginfo('stylesheet_directory'); ?>/images/relax.png">
36
+ <?php endif ;?>
37
+ <link rel="shortcut icon" href="/common/imgs/fv.ico" type="images/x-icon" />
38
+ <link rel="stylesheet" href="/common/css/common.css" type="text/css" media="all" />
39
+ <link rel="stylesheet" href="/common/css/category.css" type="text/css" media="all" />
40
+ <?php wp_head(); ?>
41
+ <script type="text/javascript" src="/common/js/jquery.js"></script>
42
+ <script type="text/javascript" src="/common/js/jquery.easing.1.3.js"></script>
43
+ <script type="text/javascript" src="/common/js/jquery.fademover.js"></script>
44
+ <script type="text/javascript" src="/common/js/setting.js"></script>
45
+ <title></title>
46
+ </head>
47
+ <script type="text/javascript">
11
48
 
49
+ var _gaq = _gaq || [];
50
+ _gaq.push(['_setAccount', 'UA-34197492-1']);
51
+ _gaq.push(['_trackPageview']);
52
+
53
+ (function() {
54
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
55
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
56
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
57
+ })();
58
+
59
+ $(document).ready(function(){
60
+   $("a:not([href='#box_common'],[href='javascript:void(0);'],[target='_blank'])").pageswitch({
61
+     target:"#box_common",
62
+     options:{duration:500}
63
+   });
64
+ });
65
+
66
+ </script>
67
+ <script type="text/javascript">
68
+ $(document).ready(function(){
69
+   $(function(){
70
+     $("#box_common").fadeIn(500).css("display", "block");
71
+   });
72
+ });
73
+ </script>
74
+ <body>
75
+ <noscript>
76
+ 当サイトはJavaScriptをonにしてご覧ください。
77
+ </noscript>
78
+ <div id="box_common">
79
+ <!-- header_box -->
80
+ <div id="header_box">
81
+ <!-- header_conte -->
82
+ <div id="header_conte">
83
+ <div id="header_left_box">
84
+ <a href="/"><img src="/common/imgs/img_headerlogo.jpg" width="250" height="136" alt="Querl ENTERTAINMENT" /></a>
85
+ </div>
86
+ <!-- header_right_box -->
87
+ <div id="header_right_box">
88
+ <!-- header_right_top -->
89
+ <div id="header_right_top">
90
+ <div id="form_box">
91
+ <form role="search" method="get" id="searchform" action="http://querl.jp/">
92
+ <input type="text" value="" name="s" id="s" class="form_text_box"><input type="image" alt="検索" src="/common/imgs/btn_formsubmit.jpg" name="sa" class="float_left">
93
+ </form>
94
+ </div>
95
+ <!-- add_inner_box -->
96
+ <div id="add_inner_box">
97
+ <div id="add_left_box">
98
+ <h1>
99
+ 九州、福岡の芸能(モデル・タレント)事務所ならQuerl ENTERTAINMENT(キュールエンタテインメント)。TV、CM、広告などで活躍する所属者が多数在籍しています!
100
+ </h1>
101
+ </div>
102
+ <div id="add_right_box">
103
+ **<a href="http://www.facebook.com/querlentertainment" target="_blank"><img src="/common/imgs/btn_social_fb.jpg" width="25" height="25" alt="Facebook" /></a>**
104
+ </div>
105
+ </div>
106
+ <!-- /add_inner_box -->
107
+ </div>
108
+ <!-- /header_right_top -->
109
+ <!-- menu_box -->
110
+ <div id="menu_box">
111
+ <ul>
112
+ <li>
113
+ <a href="/"><img src="/common/imgs/btn_menu_home.jpg" width="121" height="38" alt="Home" /></a>
114
+ </li>
115
+ <li>
116
+ <a href="/news/"><img src="/common/imgs/btn_menu_news.jpg" width="165" height="38" alt="News" /></a>
117
+ </li>
118
+ <li>
119
+ <a href="/models/"><img src="/common/imgs/btn_menu_models.jpg" width="151" height="38" alt="Models" /></a>
120
+ </li>
121
+ <li>
122
+ <a href="/audition/"><img src="/common/imgs/btn_menu_audition.jpg" width="168" height="38" alt="Audition" /></a>
123
+ </li>
124
+ <li>
125
+ <a href="/company/"><img src="/common/imgs/btn_menu_company.jpg" width="145" height="38" alt="Company" /></a>
126
+ </li>
127
+ </ul>
128
+ </div>
129
+ <!-- /menu_box -->
130
+ </div>
131
+ <!-- /header_right_box -->
132
+ </div>
133
+ <!-- /header_conte -->
134
+ </div>
135
+ <!-- /header_box -->
136
+ ```
137
+ ### 該当のソースコード「footer.php」
138
+ どこをどういじったのか覚えておりません。。。
139
+ ```
140
+ <!-- footer_box -->
141
+ <div id="footer_box">
142
+ <!-- footer_conte -->
143
+ <div id="footer_conte">
144
+ <div id="footer_conte_left_box">
145
+ <a href="/"><img src="/common/imgs/img_footerlogo.jpg" width="486" height="135" alt="Querl" /></a>
146
+ </div>
147
+ <div id="footer_conte_right_box">
148
+ <ul>
149
+ <li><a href="/">ホーム</a></li>
150
+ <li><a href="/news/">ニュース</a></li>
151
+ <li><a href="/models/">モデル</a></li>
152
+ <li class="last"><a href="/audition/">オーディション</a></li>
153
+ <li><a href="/company/">会社概要</a></li>
154
+ <li><a href="/sitemap/">サイトマップ</a></li>
155
+ <li><a href="/link/">リンク</a></li>
156
+ <li class="last"><a href="/privacy/">プライバシーポリシー</a></li>
157
+ <li><a href="http://www.facebook.com/querlentertainment" target="_blank">Facebook</a></li>
158
+ </ul>
159
+ </div>
160
+ <div class="clear_float"></div>
161
+ <!-- footer_bottom_box -->
162
+ <div id="footer_bottom_box">
163
+ <!-- social_box -->
164
+ <div id="social_box">
165
+ <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fquerl.jp%2F&amp;send=false&amp;layout=button_count&amp;width=140&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden;width:140px; height:21px;" allowTransparency="true"></iframe><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://querl.jp/" data-count="horizontal" data-lang="ja" >ツイート</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><g:plusone href="http://querl.jp/" style="margin-top:3px;"></g:plusone>
166
+ </div>
167
+ <!-- /social_box -->
168
+ <div id="copyright_box">
169
+ &copy; Querl ENTERTAINMENT.
170
+ </div>
171
+ </div>
172
+ <!-- /footer_bottom_box -->
173
+ </div>
174
+ <!-- /footer_conte -->
175
+ </div>
176
+ <!-- /footer_box -->
177
+ </div>
178
+ <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
179
+ {lang: 'ja'}
180
+ </script>
181
+ <?php wp_footer(); ?>
182
+ </body>
183
+ </html>
184
+ ```
185
+
186
+ ###補足のソースコード
187
+ 「page.php」のスクリーンショットです。
188
+
189
+ ![イメージ説明](7c68f184b10542c23c91fe7ac1412dbe.png)
190
+ ![イメージ説明](2205a0c211f9ea740f654a10c8814bc9.png)
191
+ ![イメージ説明](f1cb7ed7ad6fe95c90c5e20527a651db.png)
192
+ ![イメージ説明](fcc9091c490ae7481ec2c83be15621c8.png)
193
+
12
194
  ### 発生している問題・エラーメッセージ
13
195
 
14
196
  ```
@@ -17,7 +199,8 @@
17
199
 
18
200
  ### 試したこと
19
201
 
20
- グーグルで検索しまくりましたが、まず何がおかしいのかも特定ができません…
202
+ グーグルで検索しまくりましたが、まず何がおかしいのかも特定ができません…
203
+ ・バックアップ取っていません…
21
204
 
22
205
  ### 補足情報
23
206