ID | Project | Category | Submitted / Last Updated |
---|---|---|---|
01544 | UserSpice | Triage | 2022-07-08 11:37:52 / 2022-08-28 18:33:21 |
Reported | Jibak | Assigned To | Unassigned |
Priority | none | Reported | 5.4.4 |
Status | closed fixed | Resolution Version and Commit | 5.4.5 |
Summary | Language switching breaks | ||
Description |
x I added some additional strings to en-US.php in usersc/lang/. Now, I accidentally had some blank lines -after- the ?> at the end of the file, which causes this error when you switch between languages on the webpage: Warning: Cannot modify header information - headers already sent by (output started at /localhost/www/usersc/lang/en-US.php:197) in /localhost/www/users/helpers/us_helpers.php on line 1108 Error occurs due to 'header('Refresh:0);' in /users/helpers/us_helpers.php. To resolve the error, simply need to ensure that there are no lines (blank or otherwise) before the <php tag or after the ?> tag. Suggest adding instructions/warning in the template en-US.php file (and/or in the readme.txt file) in usersc/lang/. I did try replacing 'header('Refresh:0);' with echo '<meta http-equiv="refresh" content="0">' which also resolved the error, but I am unsure if that is a suitable permanent fix. |