https://www.icyphoenix.com/viewtopic.php?f=35&t=3732
-----------------------------------
paramine-gx
Mon 03 Mar, 2008 19:07

Problems With Def_tree.php?
-----------------------------------
So, reading on various forums
i have read that def_tree.php file has several problems.
even more that one forum is down for this file.

The reason?, the file size changes alone.
why?, what is the file function?, i have some minimal problems with my forum
and the cracker tracker says that this is the only file has been changed.

So it's only a question.
what is the file function?, and why this file may cause this problems?..

Thanks in advance.


-----------------------------------
ThE KuKa
Mon 03 Mar, 2008 19:25

Re: Problems With Def_tree.php?
-----------------------------------
[b]def_tree.php[/b] is designed to get all the hierarchy to all categories, forums and subforums (or that I understand) :wink:


-----------------------------------
paramine-gx
Mon 03 Mar, 2008 23:42

Re: Problems With Def_tree.php?
-----------------------------------
[color=seagreen]well, im having several problems with this file.
Sometimes when the users try to enter the site appear the next message

"Critical error Could no connect to database"

And some post on other forums says that uploading the original file this restores the site accesibility
but, it's safe delete this file?, or upload the original file?

Im so worried cause this error it's more frecuently each day.
And i asked to my host provider and he says that there is no problem with the servers.

Im really worried with this situation  :( [/color]


-----------------------------------
ThE KuKa
Mon 03 Mar, 2008 23:45

Re: Problems With Def_tree.php?
-----------------------------------
This error:
[quote]"Critical error Could no connect to database"[/quote]
Is [b]config.php[/b] file problem, not [b]def_tree.php[/b] file problem.


-----------------------------------
Mighty Gorgon
Tue 04 Mar, 2008 01:35

Re: Problems With Def_tree.php?
-----------------------------------
DEF_TREE is needed to store a cached copy of forum index, which speeds up a lot forum index loading.

Make sure you have applied default CHMOD to this file otherwise it won't work properly.

I would suggest to use it... deleting it won't bring you improvements... if you really want to disable it, you can open [b]functions_category_hierarchy.php[/b] and comment this line with double slash:

[codeblock]define('CACHE_TREE', true);[/codeblock]


-----------------------------------
paramine-gx
Tue 04 Mar, 2008 02:16

Re: Problems With Def_tree.php?
-----------------------------------
[color=seagreen][quote user="ThE KuKa" post="25278"]This error:
Is [b]config.php[/b] file problem, not [b]def_tree.php[/b] file problem.[/quote]
You are wrong, the forum works greats, if i'd have a problem with the config.php i'd never can't access to my forum.
This problems happens at random, for example today at 5:40 the file was bothering again. what i did?.
only wait, 10 minutes later the forum was fine again

[quote user="Mighty Gorgon" post="25308"]DEF_TREE is needed to store a cached copy of forum index, which speeds up a lot forum index loading.

Make sure you have applied default CHMOD to this file otherwise it won't work properly.[/quote]
Understood, this file have all CHMOD actives, search,modify and execute.
But then whats the problem?, this file have not relation with my database... Oh F%&&(k, then i'll go to talk with my host provider.

Maybe the error are there.
Thank you very much thekuka and mighty gorgon  :kid: [/color]


-----------------------------------
KasLimon
Fri 07 Mar, 2008 21:59

Re: Problems With Def_tree.php?
-----------------------------------
[quote user="Mighty Gorgon" post="25308"]I would suggest to use it... deleting it won't bring you improvements... if you really want to disable it, you can open [b]functions_category_hierarchy.php[/b] and comment this line with double slash:

[codeblock]define('CACHE_TREE', true);[/codeblock][/quote]Try what MG says.

functions_categories_hierarchy.php is in includes folder
Commenting means adding two slashes in the beggining of the line (//):[codeblock]//define('CACHE_TREE', true);[/codeblock]

Greets!


