MyBB Community Forums

Full Version: if i enter to control panel Fatal error: Cannot redeclare output_page()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have astrange problem

Fatal error: Cannot redeclare output_page() in /www/??????????/?/?/?/???????/htdocs/admin/inc/functions.php on line 17

but the forum is still work with out any problem

this problem appeare after upgrade to 1.4.3

the file functions.php is completly upload to site Sad

i am waiting support Exclamation
Have you tried reuploading the new ./inc/functions.php file?

"Cannot redeclare" means that the function "output_page()" appears twice. How did you upgrade to 1.4.3? Did you overwrite the file or do the manual patch?
overwrite the file
I suggest you redo the upgrade, replacing the ./inc/functions.php file.

If it still happens, open functions.php in wordpad or an editor, and search for "output_page". If it appears twice you need to remove one of them.

Basically, there's two functions, when in fact you only need one.
thank u mr tom

i make amistake of paths

i upload functions.php

to 2 paths

1- /inc/functions.php

2- /admin/inc/functions.php

lol Big Grin

thank u mr tom for afast help Blush
Your welcome Smile