MyBB Community Forums

Full Version: [NOT Resolved] Includes broken
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I still have the problem :s
Where's the script located?
./web/global.php calls (in order) :
- ./web/header_fr.php
- ./web/menu_fr.php
- ./web/footer_fr.php

The script which "breaks" the includes is placed in header_fr.php, but I go the same problem wherever it is.

header_fr.php is included, but menu_fr.php and footer_fr.php are not displayed.
If I put the script in menu_fr.php, header_fr.php and menu_fr.php are included, but not footer.php. Finally, if I put the script at the top of global.php, no inclusion in made.
And where's the forum located? Inside the web folder too? In the first post you mention ../forum/global.php
|
| forum/
| | global.php
| | ...
|
| web/
| | global.php
| | index.php
| | header_fr.php
| | ...

Do you understand ? :s
Yes, what happens when you include ../forums/global.php?
If I add include ("../forum/global.php"); before the script, I have :
Quote:Direct initialization of this file is not allowed.

Please make sure IN_MYBB is defined.

If I add it after the script, it is as if I never added it (like the includes of the menu and the footer)...
Idem if I try to replace the require line by this include (with the define MyBB 1 before).
Pages: 1 2