Quantcast
Channel: Welcart フォーラム »投稿一覧
Viewing all articles
Browse latest Browse all 19544

書面の印刷 500エラー

$
0
0

——————————————-
WordPress のバージョン:4.2.2
Welcart のバージョン:1.4.17.1506224
ご利用のテーマ:mesocolmn
症状を確認したブラウザ:Opera Sleipnir1.6
サーバー(会社名、サービス名):WebArena SuiteX
SSLの利用: なし
WordPress のパーマリンク設定:blog/sample-post/
——————————————–

こんばんは
行き詰ってしまいました。
よろしくお願いします。

見積書、納品書、請求書、領収書の書面を印刷しようとすると
Opera 白紙
Sleipnir1.6(IE) 500エラー
となります。

過去ログを読み漁り、一通り確認しましたが
解決できません。
助けてください。

memory_limitは128MB になっています。
[memory peak usage] 110.5Mb

wp/wp-content/plugins/usc-e-shop/pdf/tcpdf
の中のcache(755)というフォルダにファイルは作成されるみたいです。

Contact Form 7 関連のプラグイン停止では改善しませんでした。

念の為に長くなりますが記載します。
原因は何でしょうか?
対策を教えてください。
よろしくお願いします。

functions.php 追記

<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ );
function enqueue_parent_theme_style() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}
//カレンダー発送業務休日を休業日に変更
add_filter(‘usces_filter_widget_calendar’, ‘my_filter_widget_calendar’, 10);
function my_filter_widget_calendar($myword){
$myword = ‘(<span class=”business_days_exp_box businessday”>    </span>  休業日)’.”\n”;
return $myword;
}
//カレンダー発送業務休日を休業日に変更ここまで

// functions.phpに追記する。
add_filter(‘usces_filter_confirm_inform’, function($html, $payments, $acting_flag, $rand, $purchase_disabled) {
if($acting_flag != ‘kuroneko.php’) return $html;
return $html . ‘<input type=”hidden” name=”acting” value=”kuroneko” />';
}, 99, 5);

// functions.phpに追記する。
add_filter(‘usces_filter_cartcompletion_page_body’, function($nothing, $usces_entries, $usces_carts) {
if( !isset($_REQUEST[‘acting’]) || $_REQUEST[‘acting’] != ‘kuroneko’) return;
$html =
‘<form id=”purchase_form” action=”https://payment.kuronekoyamato.co.jp/webcollect/settleSelectAction.gw” method=”post” onKeyDown=”if (event.keyCode == 13) {return false;}” Accept-charset=”Shift_JIS”>’.
‘<input type=”hidden” name=”TRS_MAP” value=”V_W02″>’.
‘<input type=”hidden” name=”trader_code” value=”クロネコで契約した加盟店コード”>’.
‘<input type=”hidden” name=”order_no” value=”‘. esc_attr($usces_entries[‘order’][‘ID’]) . ‘”>’.
‘<input type=”hidden” name=”settle_price” value=”‘. esc_attr($usces_entries[‘order’][‘total_full_price’]) . ‘”>’.
‘<input type=”hidden” name=”goods_name” value=”商品”>’.
‘<input type=”hidden” name=”buyer_name_kanji” value=”‘ . esc_attr($usces_entries[‘customer’][‘name1′]) . ” . esc_attr($usces_entries[‘customer’][‘name2′]) . ‘”>’.
‘<input type=”hidden” name=”buyer_name_kana” value=”‘ . esc_attr($usces_entries[‘customer’][‘name3′]) . ” . esc_attr($usces_entries[‘customer’][‘name4′]) . ‘”>’.
‘<input type=”hidden” name=”buyer_tel” value=”‘. esc_attr($usces_entries[‘customer’][‘tel’]) . ‘”>’.
‘<input type=”hidden” name=”buyer_email” value=”‘. esc_attr($usces_entries[‘customer’][‘mailaddress1′]) . ‘”>’.

‘.
‘<input type=”submit” name=”purchase” id=”purchase_button” class=”checkout_button” value=”クロネコでお支払手続きをする” />’.

‘.
‘</form>';
return $html;
}, 99, 3);

//業務パック割引をセット割引に変更
add_filter(‘usces_filter_itemGpExp_title’, ‘my_filter_itemGpExp_title’, 10);
function my_filter_itemGpExp_title($set_discount_item){
$set_discount_item = ‘セット割引’.”\n”;
return $set_discount_item;
}
add_filter(‘usces_filter_itemGpExp_cart_message’, ‘my_filter_itemGpExp_cart_message’, 10);
function my_filter_itemGpExp_cart_message($set_discount_cart){
$set_discount_cart = ‘セット割このマークがある価格はセット割引が適用されています。’.”\n”;
return $set_discount_cart;
}
//業務パック割引をセット割引に変更ここまで

//受注リスト状況の追加
add_filter(‘usces_filter_management_status’,’my_filter_management_status’, 10);
function my_filter_management_status($management_status){
$management_status += array(
‘NowAtWork’ => ‘製作中’,
‘post’ => ‘振込待ち’,
);
return $management_status;
}
//受注リスト状況の追加ここまで

//受注リスト状況表示
add_filter(‘usces_filter_member_history_header’, ‘my_usces_filter_member_history_header’, 10, 100);
function my_usces_filter_member_history_header(){
$args = func_get_args();
$umhs = $args[1];
$os = $umhs[‘order_status’];
$res = ‘<tr><td>';
if(strstr($os,’noreceipt’)) $res .= ‘未入金 ‘;
if(strstr($os,’receipted’)) $res .= ‘入金済み ‘;
if(strstr($os,’NowAtWork’)) $res .= ‘製作中 ‘;
if(strstr($os,’completion’)) $res .= ‘発送済み ‘;
if($os == “”) $res .= ‘受付中';
$res .= ‘</tr></td>';
return $res;
}
//受注リスト状況表示ここまで

//見積もり有効期間を変更
function my_pdf_estimate_validdays($data){
return ‘有効期間:お見積もり日より30日';
}
add_filter (‘usces_filter_pdf_estimate_validdays’, ‘my_pdf_estimate_validdays’, 10, 1);
//見積もり有効期間を変更ここまで

add_filter( ‘usces_filter_featured_widget’, ‘my_filter_featured_widget’, 10, 4 );
function my_filter_featured_widget($list, $post, $list_index, $instance){
global $usces;
$post_id = $post->ID;
$list = ‘

‘;
$list .= ‘

‘;
$list .= usces_the_itemPriceCr(‘return’);
$list .= usces_guid_tax(‘return’);
return $list;
}
add_filter(‘usces_filter_bestseller’, ‘my_bestseller_func’, 10, 3);
function my_bestseller_func() {
$args = func_get_args();
list($html, $post_id, $index) = $args;
$post = get_post($post_id);
if ( $index == 0 ){
$img = ‘/images/one.png';
} elseif ( $index == 1 ){
$img = ‘/images/two.png';
} elseif ($index == 2){
$img = ‘/images/three.png';
} else {
}

$list = usces_the_itemImage(0, 200, 150, $post, ‘return’ ) . ‘

  • 第’ . ($index+1) . ‘位‘ . $post->post_title . ‘
  • ‘;
    return $list;
    }
    ?>


    Viewing all articles
    Browse latest Browse all 19544

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>