After not using PHP for months, i just found my homepage having several of the ERROR 2 messages, as shown below.
Can you please give me some ideas as to what might have happened/
Thanks
ERROR 2: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1)
Warning: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1) in /home/xa3xjgv3/public_html/phpgedview/includes/functions/functions_print.php on line 425
--
ERROR 2: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1)
Warning: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1) in /home/xa3xjgv3/public_html/phpgedview/index.php on line 254
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You must have made a change to the file "languages/lang.en.php". Either there is a BOM (Byte Order Mark) or a blank line at the front of the file.
If you've looked at the file with Notepad, you'll have added that BOM if you saved the file. The purpose of the BOM is to self-identify a file's contents as being in UTF-8 code. This is incompatible with the method by which language files (and other PGV program files too) are read into the system.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dietmar
Commenting on Gerry's source of your problem, the easiest solution would be to download a new copy of this file from sourceforge and replace the one in your installation. ;-)
Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dietmar:
You should NOT be editing any of the language files.
Instead, you should create/update a special language file "languages/extra.en.php" and insert your changes there.
Please note that, unlike the regular language files, any new language variables will have to be added to the "extra.xx.php" files for all the languages your site supports. When you add a language variable to "languages/lang.en.php", that new variable will appear in its English form in all other languages until you define the correct equivalent in, say, the German file "languages/lang.de.php".
By keeping your changes in the files "languages/extra.xx.php", you can be assured that when a new version of the language files is released, your changes will be preserved. We will NEVER release any "languages/extra.xx.php" files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After not using PHP for months, i just found my homepage having several of the ERROR 2 messages, as shown below.
Can you please give me some ideas as to what might have happened/
Thanks
ERROR 2: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1)
Warning: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1) in /home/xa3xjgv3/public_html/phpgedview/includes/functions/functions_print.php on line 425
--
ERROR 2: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1)
Warning: Cannot modify header information - headers already sent by (output started at /home/xa3xjgv3/public_html/phpgedview/languages/lang.en.php:1) in /home/xa3xjgv3/public_html/phpgedview/index.php on line 254
You must have made a change to the file "languages/lang.en.php". Either there is a BOM (Byte Order Mark) or a blank line at the front of the file.
If you've looked at the file with Notepad, you'll have added that BOM if you saved the file. The purpose of the BOM is to self-identify a file's contents as being in UTF-8 code. This is incompatible with the method by which language files (and other PGV program files too) are read into the system.
Dietmar
Commenting on Gerry's source of your problem, the easiest solution would be to download a new copy of this file from sourceforge and replace the one in your installation. ;-)
Stephen
Yup, you are right! I re-edited my changes and it works again.
Thanks much.
Dietmar:
You should NOT be editing any of the language files.
Instead, you should create/update a special language file "languages/extra.en.php" and insert your changes there.
Please note that, unlike the regular language files, any new language variables will have to be added to the "extra.xx.php" files for all the languages your site supports. When you add a language variable to "languages/lang.en.php", that new variable will appear in its English form in all other languages until you define the correct equivalent in, say, the German file "languages/lang.de.php".
By keeping your changes in the files "languages/extra.xx.php", you can be assured that when a new version of the language files is released, your changes will be preserved. We will NEVER release any "languages/extra.xx.php" files.
OK, i will try to use the extra.xx.php file for my change.
Thanks