前提・実現したいこと
google adsを導入しようとplug inでhead footer and post injectionsを導入しadsコードを貼り付けました。またホームページでテーマ編集を行い、listingproのheader.phpで<head>の下に同様にadsコードを貼り付けました。
発生している問題・エラーメッセージ
500のエラーが生じました。これを改善したいです
エラーメッセージ
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@livethedreammyanmar.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
該当のソースコード
<!DOCTYPE html> <!--[if IE 7 ]> <html class="ie7"> <![endif]--> <!--[if IE 8 ]> <html class="ie8"> <![endif]--> <?php $mobile_view = lp_theme_option('single_listing_mobile_view'); if(wp_is_mobile() && $mobile_view == 'app_view') { get_template_part( 'templates/headers/header-app-view' ); } else { ?> <html <?php language_attributes(); ?>> <head> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"> <meta charset="<?php bloginfo( 'charset' ); ?>"> <!-- Mobile Meta --> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" /> <?php listingpro_favicon(); $listing_detail_slider_style = lp_theme_option('lp_detail_slider_styles'); ?> <?php wp_head(); ?> </head> <body <?php body_class(); lp_header_data_atts('body'); ?>> <?php $listing_styledata = ''; $topBannerView = lp_theme_option('top_banner_styles'); $lp_detail_page_styles = lp_theme_option('lp_detail_page_styles'); $search_alignment = lp_theme_option('search_alignment'); // New $addclass_banner_upper_cat = ''; $differentcats_views = lp_theme_option('categories_different_styles'); $bannercat_category_inside = lp_theme_option('categories_different_styles_category_inside'); $alignClass = ''; switch($topBannerView){ case 'map_view': switch($search_alignment){ case 'align_top': $alignClass = 'lp-align-top'; break; case 'align_middle': $alignClass = 'lp-align-underBanner'; break; case 'align_bottom': $alignClass = 'lp-align-bottom'; break; } break; } //-------------Start New view style banner add class------------------// $class_cat_banner_view = ''; if($topBannerView=="banner_view_search_bottom" && $differentcats_views == 'category_view2'){ $class_cat_banner_view = 'banner-category-mix-view2'; } if($topBannerView == 'banner_view_category_upper'){ // banner_view_category_upper $addclass_banner_upper_cat = ''; if($topBannerView =='banner_view_category_upper' && $bannercat_category_inside == 'category_view'){ $addclass_banner_upper_cat = 'banner-view-cat-tranparent-category'; }elseif($topBannerView =='banner_view_category_upper' && $bannercat_category_inside == 'category_view1'){ $addclass_banner_upper_cat = 'banner-view-cat-tranparent-category'; }elseif($topBannerView =='banner_view_category_upper' && $bannercat_category_inside == 'category_view2'){ $addclass_banner_upper_cat = 'banner-view-cat-tranparent-category'; }elseif($topBannerView =='banner_view_category_upper' && $bannercat_category_inside == 'category_view3'){ $addclass_banner_upper_cat = 'banner-view-cat-tranparent-category'; } } $newbannerstyleClass = ''; if($topBannerView == 'banner_view_search_bottom'){ $newbannerstyleClass = 'new-banner-view-category'; }elseif($topBannerView == 'banner_view_search_inside'){ $newbannerstyleClass = 'new-banner-view-category'; } $maintxtstyleClass = ''; if(empty($main_txt)){ $maintxtstyleClass = 'new-banner-view-category-st'; } //-------------End New view style banner add class------------------// ?> <div id="page" class="clearfix <?php echo $lp_detail_page_styles; ?>" <?php echo esc_attr($listing_styledata); lp_header_data_atts('page'); ?>"> <!--===========================header-views========================--> <?php get_template_part( 'templates/headers/header-views' ); ?> <?php if (is_front_page() && $topBannerView != 'banner_view2' ) { ?> <div class="home-categories-area <?php echo esc_attr($alignClass); ?> <?php echo esc_attr($newbannerstyleClass); ?> <?php echo esc_attr($maintxtstyleClass); ?> <?php echo esc_attr($class_cat_banner_view); ?> <?php echo esc_attr($addclass_banner_upper_cat);?>"> <?php echo listingpro_banner_categories(); ?> </div> <?php } ?> <?php } ?> ### 試したこと plug inのdeactivate、テーマ編集でadsコード削除をしましたが戻りません。おそらくテーマ編集に問題がありそうです。<head>の下にコードを貼り付け、エラー後削除しました ### 補足情報(FW/ツールのバージョンなど) エラーコードです(この2つがfatal eroorだと) [02-Apr-2019 05:55:11 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 27588472 bytes) in /home3/livetho2/public_html/wp-content/plugins/w3-total-cache/lib/Minify/Minify/HTML.php on line 123 [02-Apr-2019 05:55:11 UTC] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0 ここにより詳細な情報を記載してください。
