Jump to content

Modules translations saves to a blank page!


yasser4ever1

Recommended Posts

I have prestashop 1.6 and now i am translating modules and when i save i get redirected to a blank page but my newly translations are saved i don't understand why this is happening although it didn't happen while i was translating the Frontoffice translations.I have a godaddy economy hosting package and here is my custom php.ini file

max_input_vars = 5000
post_max_size = 128M
upload_max_filesize = 256M
memory_limit = 128M
Link to comment
Share on other sites

I just tried somethin .. the translation form submit to AdminTranslationsController so i added


@ini_set('display_errors', 'on');
@error_reporting(E_ALL | E_STRICT);

 At the beginning of the file and then i found this error

 

 



Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/modules/spblocknewsletter/translations/ar.php:1) in /home/username/public_html/classes/Tools.php on line 252


 

Do you got any ideas what should i do from this point ?

Link to comment
Share on other sites

I do not think this warning has anything to do with the issue you are facing. It is something else.

Instead of, the warning message because of your 2 lines if it is inserted into wrong places.  

So it is better to remove it.

 

you can try to add following red line inside of redirect() function to see what happens.

 

 

    protected function redirect($save_and_stay = false, $conf = false)
    {
 
die("break here");
 
        $conf = !$conf ? 4 : $conf;
...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...