Pagina 1 din 1

eroare modifica limba RO

Scris: 02-Aug-2010, 18:27:13
de |^Wind^|
Am instalat un mod numit Statistics on Index si a trebuit sa adaug ceva in ro/common.php si cand am adaugat exact cum scrie in tutorial imi da eroare in header

Cod: Selectaţi tot

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /language/ro/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /language/ro/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /language/ro/common.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /language/ro/common.php:1)
Am citit si aici : viewtopic.php?f=32&t=16532
Am executat cum scrie acolo sa editez cu notepad ++ tot la fel imi da tot accea eroare

Mod care trebuie adaugat in RO/common.php

Cod: Selectaţi tot

// BEGIN MOD more stats on index
$lang = array_merge($lang, array(
   'START_DATE'            => 'Suntem online, începand din',
   'POSTS_PER_DAY_OTHER'   => 'Posturi pe zi <strong>%.2f</strong>',
   'POSTS_PER_DAY_ZERO'   => 'Posturi pe zi <strong>None</strong>',
   'POSTS_PER_TOPIC_OTHER'   => 'Posturi pe topic <strong>%.2f</strong>',
   'POSTS_PER_YEAR_OTHER'   => 'Posturi pe an <strong>%s</strong>',
   'POSTS_PER_YEAR_ZERO'   => 'Posuri pe an <strong>None</strong>',
   'POSTS_PER_TOPIC_ZERO'   => 'Posturi pe topic <strong>None</strong>',
   'POSTS_PER_USER_OTHER'   => 'Posturi pe membru <strong>%.2f</strong>',
   'POSTS_PER_USER_ZERO'   => 'Posturi pe membru <strong>None</strong>',
   'TOPICS_PER_DAY_OTHER'   => 'Subiecte pe zi <strong>%.2f</strong>',
   'TOPICS_PER_DAY_ZERO'   => 'Subiecte pe zi <strong>None</strong>',
   'TOPICS_PER_YEAR_OTHER'   => 'Subiecte pe an <strong>%s</strong>',
   'TOPICS_PER_YEAR_ZERO'   => 'Subiecte pe an <strong>None</strong>',
   'TOPICS_PER_USER_OTHER'   => 'Subiecte pe membru <strong>%.2f</strong>',
   'TOPICS_PER_USER_ZERO'   => 'Subiecte pe membru <strong>None</strong>',
   'USERS_PER_DAY_OTHER'   => 'Membrii pe zi <strong>%.2f</strong>',
   'USERS_PER_DAY_ZERO'   => 'Membrii pe zi <strong>None</strong>',
   'USERS_PER_YEAR_OTHER'   => 'Membrii pe an <strong>%s</strong>',
   'USERS_PER_YEAR_ZERO'   => 'Membrii pe an <strong>None</strong>',
   'TOTAL_POSTS_OTHER'   => 'Numarul total de mesaje <strong>%s</strong>',
   'TOTAL_POSTS_ZERO'   => 'Numarul total de mesaje <strong>0</strong>',
   'TOTAL_TOPICS_OTHER'=> 'Total subiecte <strong>%s</strong>',
   'TOTAL_TOPICS_ZERO'   => 'Total subiecte <strong>0</strong>',
   'TOTAL_USERS_OTHER'   => 'Total membrii <strong>%s</strong>',
   'TOTAL_USERS_ZERO'   => 'Total memberii <strong>0</strong>',
   'TOTAL_FILES_OTHER'   => 'Total atasamente <strong>%s</strong>',
   'TOTAL_FILES_ZERO'   => 'Total atasamente <strong>0</strong>',
   'FILES_PER_DAY_OTHER'   => 'Atasamente pe zi <strong>%.2f</strong>',
   'FILES_PER_DAY_ZERO'   => 'Atasamente pe zi <strong>None</strong>',
   'FILES_PER_YEAR_OTHER'   => 'Atasamente pe an <strong>%s</strong>',
   'FILES_PER_YEAR_ZERO'   => 'Atasamente pe an <strong>None</strong>',
   'FILES_PER_USER_OTHER'   => 'Atasamente pe membru <strong>%.2f</strong>',
   'FILES_PER_USER_ZERO'   => 'Atasamente pe membru <strong>None</strong>'
));
Modul este aici : http://www.phpbb3bbcodes.com/viewtopic.php?f=8&t=356

Re: eroare modifica limba RO

Scris: 03-Aug-2010, 21:18:59
de dorin
Uită-te înainte de prima linie a fişierului /language/ro/common.php, sigur ai acolo câteva caractere ciudate.

Re: eroare modifica limba RO

Scris: 04-Aug-2010, 18:56:45
de |^Wind^|
Nu stiu :| modul imi zice ultima linie de jos inaintea lui trebuie adaugat acel cod
Tu de care zici ?

Re: eroare modifica limba RO

Scris: 04-Aug-2010, 19:08:23
de bogdan
Inainte de primele caractere de cod din fisier sa nu ai ceva:

Cod: Selectaţi tot

<?php
...
...

Re: eroare modifica limba RO

Scris: 04-Aug-2010, 19:44:47
de |^Wind^|
am asa ceva la inceput din common.php

Cod: Selectaţi tot

<?php
/**
*
* common [Română]
*
* @package language
* @version $Id: common.php 9464 2009-04-17 15:52:40Z acydburn $
* @translate $Id: common.php 9464 yyyy-mm-dd hh:mm:ss www.phpbb.ro (shara21jonny) Exp $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/

Re: eroare modifica limba RO

Scris: 05-Aug-2010, 08:54:54
de dorin
Cu ce vizualizezi common.php ?
Incearca sa-l codezi UTF-8 fara BOM (in Notepad++) si vezi apoi daca nu exista alte caractere inainte de linia:

Cod: Selectaţi tot

<?php
Daca nu apar, urca din nou common.php codat UTF-8 fara BOM.

Re: eroare modifica limba RO

Scris: 06-Aug-2010, 20:52:16
de |^Wind^|
Fara BOM a mers :) mersi mult a mers perfect !! O mie de multumiri dorin