shayan 116 ارسال شده در مهر 94 گزارش بازنشر ارسال شده در مهر 94 (ویرایش شده) سلامدوستان ، من شاهد این ارور هنگام آپلود بودمWarning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-content/themes/mytheme/functions.php:24) in /home/mysite/public_html/wp-admin/async-upload.php on line 354375و همچنین این :Warning: Cannot modify header information - headers already sent by (output started at /home/mysite/public_html/wp-content/themes/mytheme/functions.php:24) in /home/mysite/public_html/wp-includes/pluggable.php on line 1207فکر کردم مشکل از سمت سرور هست اما پشتیبان سرور این جواب رو دادکد نویسی قالب با ورژن هماهنگی نداردfunctionقالب دچار مشکل استاتصالات قالب به css ها و پلاگین های وردپرس به درستی انجام نمیشودکد های فانکشن قالب بنده<?phpif ( function_exists( 'add_theme_support' ) ) {add_theme_support( 'post-thumbnails' );}if (function_exists('add_image_size')){add_image_size( 'news-thumb', 170, 122,true);add_image_size( 'search-thumb', 110, 85,true);add_image_size( 'single-thumb', 72, 95,true);add_image_size( 'mortabet-thumb', 175, 122,true);add_image_size( 'portfolio-thumb', 370, 300,true );add_image_size( 'old-img', 307, 100,true );} ?><?php // Register custom navigation walkerrequire_once('wp_bootstrap_navwalker.php');?><?php/* Theme setup */add_action( 'after_setup_theme', 'wpt_setup' );if ( ! function_exists( 'wpt_setup' ) ): function wpt_setup() { register_nav_menu( 'primary', __( 'Primary navigation', 'wpbaboon' ) ); } endif;?><?phpadd_theme_support( 'menus' );function register_my_menus() {register_nav_menus(array( 'top-menu' => __( 'Top Menu' ), 'main-menu' => __( 'Main Menu' )));}add_action( 'init', 'register_my_menus' );?><?phpif (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'After Before Right', 'id' => 'ab-right', 'description' => 'These are widgets for the After Before.', 'before_widget' => '</h3>', 'after_widget' => '<div class="saye"></div></div></div>', 'before_title' => '<div class="afterb col-lg-5"><div class="contentpicab"><h3>', 'after_title' => '' ));}?><?phpif (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'After Before Left', 'id' => 'ab-left', 'description' => 'These are widgets for the After Before.', 'before_widget' => '</h3>', 'after_widget' => '<div class="saye"></div></div></div>', 'before_title' => '<div class="afterb col-lg-5"><div class="contentpicab"><h3>', 'after_title' => '' ));}?><?phpif (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Footer 1', 'id' => 'footer1', 'description' => 'These are widgets for the Footer 1.', 'before_widget' => '', 'after_widget' => '</div>', 'before_title' => '<div class="col-lg-4 widget"><header> <span class="dastresi"></span><h5>', 'after_title' => '</h5><div class="footerline"></div></header>' ));}?><?phpif (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Footer 2', 'id' => 'footer2', 'description' => 'These are widgets for the Footer 2.', 'before_widget' => '', 'after_widget' => '</div>', 'before_title' => '<div class="col-lg-4 widget"><header> <span class="location"></span><h5>', 'after_title' => '</h5><div class="footerline"></div></header>' ));}?><?phpif (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'About', 'id' => 'about', 'description' => 'These are widgets for the About.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<div class="infopic"><h4 class="infotitr">', 'after_title' => '</h4>' ));}?><?phpif (function_exists('register_sidebar')) { register_sidebar(array( 'name' => 'Old Image', 'id' => 'old-widget', 'description' => 'These are widgets for the old image.', 'before_widget' => '', 'after_widget' => '</div></div>', 'before_title' => '<div class="col-lg-3 oldbox"><header class="newstitr oldtitr col-lg-12"><span></span><h3>', 'after_title' => '</h3><div class="line"></div></header><div class="proold col-lg-12">' ));}?><?phpfunction dimox_breadcrumbs() {$delimiter = '»';$home = 'خانه'; // text for the 'Home' link$before = '<span>'; // tag before the current crumb$after = '</span>'; // tag after the current crumbif ( !is_home() && !is_front_page() || is_paged() ) {echo '<div id="crumbs">';global $post;$homeLink = get_bloginfo('url');echo '<a href="' . $homeLink . '">' . $home . '</a> ' . $delimiter . ' ';if ( is_category() ) {global $wp_query;$cat_obj = $wp_query->get_queried_object();$thisCat = $cat_obj->term_id;$thisCat = get_category($thisCat);$parentCat = get_category($thisCat->parent);if ($thisCat->parent != 0) echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '));echo $before . 'Archive by category "' . single_cat_title('', false) . '"' . $after;} elseif ( is_day() ) {echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' ';echo '<a href="' . get_month_link(get_the_time('Y'),get_the_time('m')) . '">' . get_the_time('F') . '</a> ' . $delimiter . ' ';echo $before . get_the_time('d') . $after;} elseif ( is_month() ) {echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' ';echo $before . get_the_time('F') . $after;} elseif ( is_year() ) {echo $before . get_the_time('Y') . $after;} elseif ( is_single() && !is_attachment() ) {if ( get_post_type() != 'post' ) {$post_type = get_post_type_object(get_post_type());$slug = $post_type->rewrite;echo '<a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a> ' . $delimiter . ' ';echo $before . get_the_title() . $after;} else {$cat = get_the_category(); $cat = $cat[0];echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');echo $before . get_the_title() . $after;}} elseif ( !is_single() && !is_page() && get_post_type() != 'post' ) {$post_type = get_post_type_object(get_post_type());echo $before . $post_type->labels->singular_name . $after;} elseif ( is_attachment() ) {$parent = get_post($post->post_parent);$cat = get_the_category($parent->ID); $cat = $cat[0];echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a> ' . $delimiter . ' ';echo $before . get_the_title() . $after;} elseif ( is_page() && !$post->post_parent ) {echo $before . get_the_title() . $after;} elseif ( is_page() && $post->post_parent ) {$parent_id = $post->post_parent;$breadcrumbs = array();while ($parent_id) {$page = get_page($parent_id);$breadcrumbs[] = '<a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a>';$parent_id = $page->post_parent;}$breadcrumbs = array_reverse($breadcrumbs);foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' ';echo $before . get_the_title() . $after;} elseif ( is_search() ) {echo $before . 'Search results for "' . get_search_query() . '"' . $after;} elseif ( is_tag() ) {echo $before . 'Posts tagged "' . single_tag_title('', false) . '"' . $after;} elseif ( is_author() ) {global $author;$userdata = get_userdata($author);echo $before . 'Articles posted by ' . $userdata->display_name . $after;} elseif ( is_404() ) {echo $before . 'Error 404' . $after;}if ( get_query_var('paged') ) {if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' (';echo __('Page') . ' ' . get_query_var('paged');if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')';}echo '</div>';}}?>مشکل از کجاست ؟ ویرایش شده مهر 94 توسط shayan نقل قول لینک به ارسال
فرحان 997 ارسال شده در مهر 94 گزارش بازنشر ارسال شده در مهر 94 سلام. خط 24 فایل رو نگاه کنید یه تگ php بسته اومده بعدش یه تگ باز بینشون هم هیچی نیست هر دو رو پاک کنید.این سئوالتون هم خیلی تکراریه اگر کمی سرچ می کردید راحت مشکلتونو خودتون حل می کردید. علاوه بر اون توی خطا هم گفته کدوم خط ایراد داره.موفق باشید. 3 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .