سلام دوستان خوب هستین ؟
دوستان بنده قالب وردپرس خودمو نصب کردم بعد متوجه شدم هر چی میخوام آپلود کنم این ارور رو میده :
خطایی هنگام بارگذاری پرونده پیش آمده. دوباره تلاش کنید. "
بعد متوجه شدم مشکل از function.php هست ..
دوستان کامل اینو پاک کردم تونستم فایل اپلود کنم ولی وقتی کدها رو باز قرار دادم مشکل ساز شد ..
لطفاً دوستانی که میتونن کد زیر رو نگاه کنند و مشکلشو بگن تا حل کنم .
مرسی

کد:
<?php 
include(TEMPLATEPATH .'/admin/advertising.php');
include(TEMPLATEPATH .'/admin/setting.php');
if (function_exists('add_theme_support')) {add_theme_support( 'post-thumbnails' );}
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name'          => 'ابزارک چپ',
'description'   => '',
'before_widget' => '<div class="box"><div class="title"><div class="icon red"><span class="icon-paper-clip" style="margin: 5px 7px 0px 0px"></span></div>',
'after_widget'  => '</div></div>',
'before_title'  => '<h4>',
'after_title'   => '</h4></div><div class="content">',
));
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name'          => 'ابزارک راست',
'name'          => 'ابزارک راست',
'description'   => '',
'before_widget' => '<div class="box"><div class="title"><div class="icon red"><span class="icon-paper-clip" style="margin: 5px 7px 0px 0px"></span></div>',
'after_widget'  => '</div></div>',
'before_title'  => '<h4>',
'after_title'   => '</h4></div><div class="content">',
));
?>
<?php
function add_custom_meta_box() {  
    add_meta_box(  
        'custom_meta_box',   
        '!اطلاعات مطلب را وارد کنید',   
        'show_custom_meta_box',   
        'post',   
        'normal',   
        'high');   
}  
add_action('add_meta_boxes', 'add_custom_meta_box');  
 
    $prefix = 'custom_';  
    $custom_meta_fields = array(   
        array(  
            'label'=> '<b style="color:#E84a3a">جهت نمایش کادر دانلود</b>',  
            'desc'  => 'حتما این تیک زده شود',  
            'id'    => $prefix.'box-downloads',  
            'type'  => 'checkbox'  
        ),
        array(  
            'label'=> '<b style="color:#3297da">اطلاعات مربوط به دانلود آهنگ</b>',  
        ),
        array(  
            'label'=> 'لینک آهنگ کیفیت 320',  
            'desc'  => '',  
            'id'    => $prefix.'direct-music320',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'لینک آهنگ کیفیت 128',  
            'desc'  => '',  
            'id'    => $prefix.'direct-music128',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'لینک آهنگ برای پخش آنلاین و کد وبلاگ',  
            'desc'  => '',  
            'id'    => $prefix.'online',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> '<b style="color:#3297da">اطلاعات مربوط به دانلود آلبوم</b>',  
        ),
        array(  
            'label'=> 'لینک دانلود آلبوم 320',  
            'desc'  => '',  
            'id'    => $prefix.'direct-albume320',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'لینک دانلود آلبوم 320 تکی',  
            'desc'  => '',  
            'id'    => $prefix.'taki-albume320',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'لینک دانلود آلبوم 128',  
            'desc'  => '',  
            'id'    => $prefix.'direct-albume128',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'لینک دانلود آلبوم 128 تکی',  
            'desc'  => '',  
            'id'    => $prefix.'taki-albume128',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> '<b style="color:#3297da">اطلاعات مربوط به دانلود موزیک ویدیو</b>',  
        ),
        array(  
            'label'=> 'موزیک ویدیو با کیفیت 1080p عالی',  
            'desc'  => '',  
            'id'    => $prefix.'direct-video1080p',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'موزیک ویدیو با کیفیت 720p متوسط',  
            'desc'  => '',  
            'id'    => $prefix.'direct-video720p',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'موزیک ویدیو با کیفیت 480p پایین',  
            'desc'  => '',  
            'id'    => $prefix.'direct-video480p',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'موزیک ویدیو با کیفیت موبایل',  
            'desc'  => '',  
            'id'    => $prefix.'direct-video-mob',  
            'type'  => 'text'  
        ),
        array(  
            'label'=> 'لینک موزیک ویدیو پخش آنلاین',  
            'desc'  => '',  
            'id'    => $prefix.'video-online',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> '<b style="color:#3297da">اطلاعات مربوط یه فیلم و سریال</b>',  
        ),
		array(  
            'label'=> 'لینک فیلم',  
            'desc'  => '',  
            'id'    => $prefix.'direct-film',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> 'لینک کمکی اول',  
            'desc'  => '',  
            'id'    => $prefix.'indirect-film',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> 'لینک کمکی دوم',  
            'desc'  => '',  
            'id'    => $prefix.'indirect-film2',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> 'لینک سریال',  
            'desc'  => '',  
            'id'    => $prefix.'direct-serial',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> 'لینک کمکی اول',  
            'desc'  => '',  
            'id'    => $prefix.'indirect-serial',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> 'لینک کمکی دوم',  
            'desc'  => '',  
            'id'    => $prefix.'indirect-serial2',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> 'زیر نویس فیلم',  
            'desc'  => '',  
            'id'    => $prefix.'subtitles',  
            'type'  => 'text'  
        ),
		array(  
            'label'=> 'فایل صوتی دوبله فیلم',  
            'desc'  => '',  
            'id'    => $prefix.'dubbed',  
            'type'  => 'text'  
        ),
    );
    function show_custom_meta_box() {  
    global $custom_meta_fields, $post;   
    echo '<input type="hidden" name="custom_meta_box_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';  
        echo '<table class="form-table">';  
        foreach ($custom_meta_fields as $field) {   
            $meta = get_post_meta($post->ID, $field['id'], true);  
            echo '<tr> 
                    <th><label for="'.$field['id'].'">'.$field['label'].'</label></th> 
                    <td>';  
                    switch($field['type']) {  
    case 'text':  
        echo '<input type="text" name="'.$field['id'].'" id="'.$field['id'].'" value="'.$meta.'" size="55" /> 
            <br /><span class="description">'.$field['desc'].'</span>';  
    break;


case 'checkbox':
	echo '<input type="checkbox" name="'.$field['id'].'" id="'.$field['id'].'" ',$meta ? ' checked="checked"' : '','/>
		<label for="'.$field['id'].'">'.$field['desc'].'</label>';
break;	
                    } 
            echo '</td></tr>';  
        }  
        echo '</table>'; 
    }  
function save_custom_meta($post_id) {  
    global $custom_meta_fields;   
    if (!wp_verify_nonce($_POST['custom_meta_box_nonce'], basename(__FILE__)))  
        return $post_id;    
    if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)  
        return $post_id;  
    if ('page' == $_POST['post_type']) {  
        if (!current_user_can('edit_page', $post_id))  
            return $post_id;  
        } elseif (!current_user_can('edit_post', $post_id)) {  
            return $post_id;  
    }  
    foreach ($custom_meta_fields as $field) {  
        $old = get_post_meta($post_id, $field['id'], true);  
        $new = $_POST[$field['id']];  
        if ($new && $new != $old) {  
            update_post_meta($post_id, $field['id'], $new);  
        } elseif ('' == $new && $old) {  
            delete_post_meta($post_id, $field['id'], $old);  
        }  
    }  
}  
add_action('save_post', 'save_custom_meta');    	
?>
- - - Updated - - -

یعنی بین این همه استاد یکی php بلد نیست !؟