Jump to content

[SOLVED]Blank page/bank wire payment


Recommended Posts

Hi guys, just a quick question - all went good (even all orders) until now that I am trying to process some test orders but with cash on delivery this works good but on bank wire payment this ends up with blank page (mypage.cz/address/module/bank wire/validation). But order is created in administration and client gets email. Do you think that this would be solution? (see link below)

 

https://github.com/PrestaShop/PrestaShop/commit/dc5526c84c06dd2898961ea284bed625c814c7b2

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

Hi

 

To find out what the error is first edit /config/defines.inc.php. Change the line

 

- define('_PS_MODE_DEV_', false);

 

TO

 

define('_PS_MODE_DEV_', true);

Save file and remove cache/class_index.php.

 

Process an order again and whatever is causing the blank page should show as an error. This will help you get to the bottom of the issue.
 

  • Like 1
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

 

Here I put what I found in tools.php so if anyone could advise.

 

/**
     * 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

Hi  - I have only changed some translations in back office and that is all. Maybe I changed also color of button in file but nothing else. That is weird right? from that on I am making before each modification back up. Do you think that would be an issue?

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

it looks like file:

/themes/vp_coffee/modules/bankwire/translations/cs.php

 

was modified manually in editor like windows notepad.

in some cases (depending on hosting configuration) if someone will modify file in bad software, shop will spawn error like you have (had?)

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

use free notepad++

it will save files with correct encoding :-)

Hello Vekia, i've the same error, i mean i've some error in my prestashop, prestashop loads endlessly when I order confirmation. even when i save a new product, but  actually saves BUT does not give me the ok in the sense remains in charge until it reaches the timeout.

With the order the same thing, but times out the order I actually arrived.

As if there was an error and the system goes in timeout.

I have a different theme from the original, could be a problem for some string, file index?

The strange thing, and I repeat strange, is that if the first time charge indefinitely, once fate, the more times it's all good, as when the desktop click the right mouse button the first time, it takes a while 'to load options, but then everything is faster, I think for the ram ... I know how to give a logical explanation?

If I have not explained well let me know.

 

I red that could be a manual translate.... uhmmmm i did some manual translate with adobe dreamwaver, so ehhee if is that the problem how can i find all the italian manual translation? :) let me know please if there's a method

Thanks best regards

Link to comment
Share on other sites

×
×
  • Create New...