Jump to content

Prestashop 1.6 bank wire & cheque payment module lands to a blank page/error.


Recommended Posts

On the Order Summary page for Bankwire payments (/shop/modules/bankwire/payment.php), when I click the 'I confirm my order' button, the next page that loads (/shop/modules/bankwire/validation.php) is blank and nothing happens. The customer is not show the Bankwire Information Page.

Order is received in Admin & email of order confirmation is sent to customer.

Earlier this was working fine. I didn't made any change in code. I am not sure why this happens.

 

When I turned on error display in config. I found following error. 

Please let me know how to fix this.

 

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/linkmeal/public_html/themes/default-bootstrap/mails/en/order_conf_product_list.txt" on line 2 "{$product[\'reference\']}" - Unexpected "\" <-- thrown in/home/linkmeal/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 2

Link to comment
Share on other sites

Hi the same to me happened today. Last week all ok. I think that it has something to do with some update of modules....I am also waiting for some response so we will see. I need to check it at home and find some solution cause it is really weird. I have also set up another topic here - http://www.prestashop.com/forums/topic/377887-blank-pagebank-wire-payment/?do=findComment&comment=1859504

Link to comment
Share on other sites

prestatent, thank you much too for your advise. After getting home I will try to have a look at it. It is very confusing cause you don´t make any big changes, you are just playing with some template colors and others things that cannot influence function of PC etc. but one day out of nothing  just comes some unexpected issue  :ph34r: .

Link to comment
Share on other sites

Hi so I am getting this error:

 

Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/45544/virtual/www/themes/vp_coffee/modules/bankwire/translations/cs.php:1) in /data/web/virtuals/45544/virtual/www/classes/Tools.php on line 110

 

Regarding file order_conf_product_list.txt  I don´t have such file anywhere.

 

Here I put what I found in tools.php so if anybody understand this issue.

 

/**
     * Redirect user to another page
     *
     * @param string $url Desired URL
     * @param string $baseUri Base URI (optional)
     * @param Link $link
     * @param string|array $headers A list of headers to send before redirection
     */
    public static function redirect($url, $base_uri = __PS_BASE_URI__, Link $link = null, $headers = null)
    {
        if (!$link)
            $link = Context::getContext()->link;


        {
            if (strpos($url, $base_uri) === 0)
                $url = substr($url, strlen($base_uri));
            if (strpos($url, 'index.php?controller=') !== false && strpos($url, 'index.php/') == 0)
            {
                $url = substr($url, strlen('index.php?controller='));
                if (Configuration::get('PS_REWRITING_SETTINGS'))
                    $url = Tools::strReplaceFirst('&', '?', $url);
            }

            $explode = explode('?', $url);
            // don't use ssl if url is home page
            // used when logout for example
            $use_ssl = !empty($url);
            $url = $link->getPageLink($explode[0], $use_ssl);
            if (isset($explode[1]))
                $url .= '?'.$explode[1];
        }

        // Send additional headers
        if ($headers)
        {
            if (!is_array($headers))
                $headers = array($headers);

            foreach ($headers as $header)
                header($header);
        }

        header('Location: '.$url);
        exit;
    
}

  

Edited by domorodecmezilidmi (see edit history)
Link to comment
Share on other sites

I have asked my hosting to restore all my files and database from 2.11 when all was without any issue so now it works good. I still don´t know any advise or any causing so maybe some more practice guy from this forum could give an advice not to happen it again it the future.

Edited by domorodecmezilidmi (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...