| Autor |
Nachricht |
alsakrah
phpBB2.de User


Anmeldungsdatum: 02.12.2003
Beiträge: 125
Wohnort: JUBAIL
|
Verfasst am:
Sa 26 März, 2005 15:23 |
  |
Some people were faced some Fatal error with there forum during some change even with PHP or Apache ….. or any server upgrading (reason), so some of these people received these errors suddenly with out any changing (adding or removing hacks) to there forum and because of that I have made this topic with all fixing I have made it for phpBB plus Arabic users at my forum.
And here some fixing for those errors:
(1)
| Zitat: |
| Fatal error: Cannot redeclare reorder_cat() in /usr/home/xxx/www/xxx/admin/admin_links_cat.php on line 46 |
Open ==> admin/admin_links_cat.php
Find
| Code: |
| function reorder_cat() |
Replaced it with this code
| Code: |
| "function reorder_cat()"; |
(2)
| Zitat: |
| Fatal error: Cannot redeclare admin_display_cat_auth() in /home/assalahc/public_html/an/admin/admin_pa_catauth.php on line 217 |
Open ==> admin/admin_pa_catauth.php
Find
| Code: |
| function admin_display_cat_auth($cat_parent = 0, $depth = 0) |
Replaced it with this code
| Code: |
| "function admin_display_cat_auth($cat_parent = 0, $depth = 0)"; |
(3)
| Zitat: |
| Fatal error: Cannot redeclare reorder_cat() in /usr/home/xxx/www/xxx/admin/admin_statistics.php on line |
Open ==> admin/admin_statistics.php
Find
| Code: |
| function renumber_order() |
Replaced it with this code
| Code: |
| "function renumber_order()"; |
(4)
| Zitat: |
| Fatal error: Cannot redeclare admin_display_cat_auth() in /home/httpd/vhosts/jaxhappenings.com/httpdocs/admin/admin_pa_ug_auth.php on line 932 |
Open ==> admin/admin_pa_ug_auth.php
Find
| Code: |
| function admin_display_cat_auth($cat_parent = 0, $depth = 0) |
Replaced it with this code
| Code: |
| "function admin_display_cat_auth($cat_parent = 0, $depth = 0)"; |
Best Regards |
_________________ phpBB2 Plus Arabic Language Support Forum |
|
      |
 |
Google
|
Verfasst am:
|
 |
|
|
 |
pavi
phpBB2.de User


Anmeldungsdatum: 24.02.2004
Beiträge: 9
|
Verfasst am:
So 03 Apr, 2005 17:29 |
  |
Merci beaucoup alsakrah
(French Language) |
_________________ Toute mes correspondance avec vous traduite par le net merci à vous .
_________________________________
All my correspondence with you translated by the Net because I does not include/understand English thank you with you. |
|
    |
 |
alsakrah
phpBB2.de User


Anmeldungsdatum: 02.12.2003
Beiträge: 125
Wohnort: JUBAIL
|
Verfasst am:
So 10 Apr, 2005 13:43 |
  |
|
      |
 |
Fridolin
phpBB2.de User

Anmeldungsdatum: 28.03.2005
Beiträge: 6
|
Verfasst am:
Mo 11 Apr, 2005 18:49 |
  |
Hi Alsakrah
what are the quotes doing ? Is ist a kind of comment? Do these functions work properly after setting the quotes ?
Thanky you in advance.
Sincerely
Fridolin |
|
|
   |
 |
WarriorDL
phpBB2.de User

Anmeldungsdatum: 18.04.2005
Beiträge: 18
|
Verfasst am:
Fr 22 Apr, 2005 06:42 |
  |
When I clicked on "Categories" on the Portal page here at phpBB.de, I got this-
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12 bytes) in /home/www/web0/html/phpbb2_de/includes/template.php on line 1084 |
|
|
   |
 |
Ice Dead
phpBB2.de User


Anmeldungsdatum: 19.09.2004
Beiträge: 155
|
Verfasst am:
Mo 13 Jun, 2005 19:30 |
  |
and wen you install the Medal Mod to
Open ==> admin/admin_medal.php
Find
| Code: |
| function get_info($mode, $id) |
Replaced it with this code
| Code: |
| "function get_info($mode, $id)"; |
Find
| Code: |
| function get_list($mode, $id, $select) |
Replaced it with this code
| Code: |
| "function get_list($mode, $id, $select)"; |
Find
| Code: |
| function renumber_order($mode, $cat = 0) |
Replaced it with this code
| Code: |
| "function renumber_order($mode, $cat = 0)"; |
Best Regards
Ice Dead |
_________________
wer hier draufklickt ist selber schuld! |
|
    |
 |
kambodianboi
phpBB2.de User

Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]
|
Verfasst am:
Mo 13 Jun, 2005 20:26 |
  |
Changing a function with qoutes doesn't make sense to me.
Changing
| Code: |
function renumber_order($mode, $cat = 0)
|
to
| Code: |
"function renumber_order($mode, $cat = 0)";
|
Its an empty function with no defined function. I could be wrong, but yet its best to have someone confirm it. |
_________________ - kambodianboi |
|
     |
 |
Erika
phpBB2.de User

Anmeldungsdatum: 28.07.2005
Beiträge: 7
|
Verfasst am:
Do 04 Aug, 2005 05:21 |
  |
Hello !
I have edited all files and Admin area is fixed.
But when i try to delete a Links->Categories got the error :
| Code: |
| Fatal error: Unknown function: reorder_cat() in /home/vhosts/phpbb2.broadphase.com/admin/admin_links_cat.php on line 370 |
Have any fix to this one ?
Thanks ! |
|
|
   |
 |
kambodianboi
phpBB2.de User

Anmeldungsdatum: 24.06.2003
Beiträge: 695
Wohnort: Long Beach, CA [USA]
|
Verfasst am:
Do 04 Aug, 2005 06:01 |
  |
When the error "Fatal error: Cannot redeclare" comes up that mean there was already a function with that name. Double functions, same name.
Example.
| Code: |
function foo()
{
return;
}
function foo()
{
return true;
}
|
That will create an error.
To fix this simple remove one function, remove the one thats not in functions, or any major files.
@Erika
Open admin_links_cat.php
Find
| Code: |
$phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_link.' . $phpEx);
|
Add After
| Code: |
function reorder_cat()
{
global $db;
$sql = "SELECT cat_id, cat_order
FROM ". LINK_CATEGORIES_TABLE ."
WHERE cat_id <> 0
ORDER BY cat_order ASC";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not get list of Categories', '', __LINE__, __FILE__, $sql);
}
$i = 10;
while( $row = $db->sql_fetchrow($result) )
{
$sql = "UPDATE ". LINK_CATEGORIES_TABLE ."
SET cat_order = $i
WHERE cat_id = ". $row['cat_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update order fields', '', __LINE__, __FILE__, $sql);
}
$i += 10;
}
}
|
That should do it. |
_________________ - kambodianboi |
|
     |
 |
Compe
phpBB2.de User

Anmeldungsdatum: 01.03.2005
Beiträge: 9
|
Verfasst am:
Fr 19 Aug, 2005 16:11 |
  |
Fatal error: Cannot redeclare class template in /www/htdocs/v168563/includes/template.php on line 73
ich hab dieses problem im acp, allerdings beim plus 1.52 dieses problem tritt nur beim cashmod auf. |
|
|
   |
 |
Celixce
phpBB2.de User


Anmeldungsdatum: 24.02.2004
Beiträge: 94
Wohnort: Websiter
|
Verfasst am:
Di 04 Okt, 2005 19:05 |
  |
some one can fix that in FINAL ? |
_________________ Welcome paxLine.com |
|
        |
 |
Celixce
phpBB2.de User


Anmeldungsdatum: 24.02.2004
Beiträge: 94
Wohnort: Websiter
|
Verfasst am:
Do 27 Okt, 2005 23:13 |
  |
some one can fix that problem and uppload that filer ? |
_________________ Welcome paxLine.com |
|
        |
 |
talkgpt
phpBB2.de User

Anmeldungsdatum: 23.11.2005
Beiträge: 27
|
Verfasst am:
Fr 25 Nov, 2005 13:31 |
  |
any help ?
i have same error in my left admin panel
any final fix? |
_________________ whare you can getpaid and have fun http://www.talkgpt.com/forum |
|
   |
 |
showtime_0
phpBB2.de User

Anmeldungsdatum: 27.02.2006
Beiträge: 72
|
Verfasst am:
Mi 26 Apr, 2006 13:05 |
  |
| Ice Dead hat folgendes geschrieben: |
and wen you install the Medal Mod to
Open ==> admin/admin_medal.php
Find
| Code: |
| function get_info($mode, $id) |
Replaced it with this code
| Code: |
| "function get_info($mode, $id)"; |
Find
| Code: |
| function get_list($mode, $id, $select) |
Replaced it with this code
| Code: |
| "function get_list($mode, $id, $select)"; |
Find
| Code: |
| function renumber_order($mode, $cat = 0) |
Replaced it with this code
| Code: |
| "function renumber_order($mode, $cat = 0)"; |
Best Regards
Ice Dead |
old topic new error
i turned back acp left side and admin_medal_cfg.php is ok
but i got an error on admin_medal.php
Wrong mode for generating select list
DEBUG MODE
Line : 87
File : admin_medal.php |
|
|
    |
 |
Sethernis
phpBB2.de User

Anmeldungsdatum: 09.07.2008
Beiträge: 16
|
Verfasst am:
So 21 Sep, 2008 16:17 |
  |
| showtime_0 hat folgendes geschrieben: |
old topic new error
i turned back acp left side and admin_medal_cfg.php is ok
but i got an error on admin_medal.php
Wrong mode for generating select list
DEBUG MODE
Line : 87
File : admin_medal.php |
Same problem.I alredy asked ycl6 about this, no reply.Any help? |
|
|
   |
 |
|
|
|
|