TShopping

 找回密碼
 註冊
搜索
查看: 211|回復: 10

[問題] 求救 opencart warning 这个要怎么解决

[複製鏈接]
發表於 2016-2-26 15:08:41 | 顯示全部樓層 |閱讀模式
 
Push to Facebook Push to Plurk Push to Twitter 
Warning: sprintf(): Too few arguments in /home/ichoose/domains/ichoosemagic.com/public_html/catalog/controller/checkout/success.php on line 53

这个要怎么解决?
请问是不是有人修改了内部一些东西导致这种状态呢?

现在人家下订单   我的email收不到提醒的订单   已签收得到的
这个问题要怎么解决呢?

 

臉書網友討論
發表於 2016-2-26 15:12:18 | 顯示全部樓層
把那個檔案原始碼傳上來看才知道

版主招募中

 樓主| 發表於 2016-3-9 22:52:02 | 顯示全部樓層
woff 發表於 2016-2-26 15:12
把那個檔案原始碼傳上來看才知道

session->data['order_id'])) { $this->cart->clear(); unset($this->session->data['shipping_method']); unset($this->session->data['shipping_methods']); unset($this->session->data['payment_method']); unset($this->session->data['payment_methods']); unset($this->session->data['guest']); unset($this->session->data['comment']); unset($this->session->data['order_id']); unset($this->session->data['coupon']); unset($this->session->data['reward']); unset($this->session->data['voucher']); unset($this->session->data['vouchers']); } $this->language->load('checkout/success'); $this->document->setTitle($this->language->get('heading_title')); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'href' => $this->url->link('common/home'), 'text' => $this->language->get('text_home'), 'separator' => false ); $this->data['breadcrumbs'][] = array( 'href' => $this->url->link('checkout/cart'), 'text' => $this->language->get('text_basket'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'href' => $this->url->link('checkout/checkout', '', 'SSL'), 'text' => $this->language->get('text_checkout'), 'separator' => $this->language->get('text_separator') ); $this->data['breadcrumbs'][] = array( 'href' => $this->url->link('checkout/success'), 'text' => $this->language->get('text_success'), 'separator' => $this->language->get('text_separator') ); $this->data['heading_title'] = $this->language->get('heading_title'); if ($this->customer->isLogged()) { $this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact')); } else { $this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact')); } $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['continue'] = $this->url->link('common/home'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) { $this->template = $this->config->get('config_template') . '/template/common/success.tpl'; } else { $this->template = 'default/template/common/success.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } } ?>

是这个问题的问题吗?


 樓主| 發表於 2016-3-9 22:58:06 | 顯示全部樓層
woff 發表於 2016-2-26 15:12
把那個檔案原始碼傳上來看才知道


要怎么上传给你看?


發表於 2016-3-9 23:37:33 | 顯示全部樓層

catalog/controller/checkout/success.php

53行 出啥問題


 樓主| 發表於 2016-3-10 15:23:13 | 顯示全部樓層
woff 發表於 2016-3-9 23:37

catalog/controller/checkout/success.php

<?php
class ControllerCheckoutSuccess extends Controller {
        public function index() {        
                if (isset($this->session->data['order_id'])) {
                        $this->cart->clear();

                        unset($this->session->data['shipping_method']);
                        unset($this->session->data['shipping_methods']);
                        unset($this->session->data['payment_method']);
                        unset($this->session->data['payment_methods']);
                        unset($this->session->data['guest']);
                        unset($this->session->data['comment']);
                        unset($this->session->data['order_id']);       
                        unset($this->session->data['coupon']);
                        unset($this->session->data['reward']);
                        unset($this->session->data['voucher']);
                        unset($this->session->data['vouchers']);
                }       
                                                                          
                $this->language->load('checkout/success');
               
                $this->document->setTitle($this->language->get('heading_title'));
               
                $this->data['breadcrumbs'] = array();

              $this->data['breadcrumbs'][] = array(
                'href'      => $this->url->link('common/home'),
                'text'      => $this->language->get('text_home'),
                'separator' => false
              );
               
              $this->data['breadcrumbs'][] = array(
                'href'      => $this->url->link('checkout/cart'),
                'text'      => $this->language->get('text_basket'),
                'separator' => $this->language->get('text_separator')
              );
                               
                $this->data['breadcrumbs'][] = array(
                        'href'      => $this->url->link('checkout/checkout', '', 'SSL'),
                        'text'      => $this->language->get('text_checkout'),
                        'separator' => $this->language->get('text_separator')
                );       
                                       
              $this->data['breadcrumbs'][] = array(
                'href'      => $this->url->link('checkout/success'),
                'text'      => $this->language->get('text_success'),
                'separator' => $this->language->get('text_separator')
              );

                $this->data['heading_title'] = $this->language->get('heading_title');
               
                if ($this->customer->isLogged()) {
                    $this->data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
                } else {
                    $this->data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
                }
               
            $this->data['button_continue'] = $this->language->get('button_continue');

            $this->data['continue'] = $this->url->link('common/home');

                if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) {
                        $this->template = $this->config->get('config_template') . '/template/common/success.tpl';
                } else {
                        $this->template = 'default/template/common/success.tpl';
                }
               
                $this->children = array(
                        'common/column_left',
                        'common/column_right',
                        'common/content_top',
                        'common/content_bottom',
                        'common/footer',
                        'common/header'                       
                );
                               
                $this->response->setOutput($this->render());
          }
}
?>


 樓主| 發表於 2016-3-10 15:23:41 | 顯示全部樓層
53行是不是这个?
$this->data['text_message'] = sprintf($this->language->get('text_customer'),


發表於 2016-3-10 15:59:10 | 顯示全部樓層
那你把他註解掉在上傳看看阿

看起來是不支援這行

你請主機代管得找問題

為啥不支援這行


 樓主| 發表於 2016-3-10 16:38:34 | 顯示全部樓層
woff 發表於 2016-3-10 15:59
那你把他註解掉在上傳看看阿

看起來是不支援這行

问了好多天了。。。。没解决到问题


 樓主| 發表於 2016-3-10 16:41:23 | 顯示全部樓層
woff 發表於 2016-3-10 15:59
那你把他註解掉在上傳看看阿

看起來是不支援這行

注解是//这个吗?


您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2016-12-7 06:18 , Processed in 0.060611 second(s), 17 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表