Page 1 of 1
[SOLVED] def_tree.php Corrupt

Posted:
Mon Apr 10, 2006 7:35 am
Author: Dioncecht
Ok, here's the dilemma. few weeks back, my board went totally blank when I created a forum. The only way I was able to get it back was to rename my def_tree.php to def_tree.old. That seemed to fix it so I left it.
I then discovered that my Photo Album no longer worked. I keep getting 'Template->make_filename(): Error - template file not found: includes/cache_tpls/def_tree_def.tpl' And cannot access it. Checking my test board, I was able to produce the error again by simply renaming the def_tree.php to def_tree.old. I changed it back, and it worked again on the test board, so that told me it is a result of a corruption in the file.
Through some searching at Integramod.com I found some suggestion of uploading the def_tree.php from the installation files, CHMOD to 666 and then run re-synch from ACP. I tried that, but as soon as I CHMOD to 666, my site goes blank. I've tried CHMODing to 664, 666, 755, and 777 and everytime I change it, my site goes blank. So I left it at what it was (664) and tried to re-sych my forums, didn't do a thing to the file.
So after a suggestion I disabled caching, clear my entire cache and disabled GZIP.. nothing changed.

Posted:
Mon Apr 10, 2006 7:59 am
Author: Simon N
What are you using to upload these files and what are you using to change the permissions (CHMOD) on them?
Also could you follow the steps as you did before:
Upload def_tree.php from installation package.
CHMOD to 666 (if not already done)
Try to resync if possible...could be a refresh is trying to do the resync for you.
Download the file and send it to me simon"at"free-riders.co.uk ...... I just want to check its not somethign along the lines of a corrupt field in the table thats being written to def_tree.php everytime you try and recreate it.
Will work with you best as I can to help sort this.
Re: def_tree.php Corrupt

Posted:
Mon Apr 10, 2006 8:29 am
Author: Dioncecht
ok, I am using CuteFTP as thats what I have available at work and it seems to work pretty good.
The def_tree.php I have been using is actually straight out of the install zip. The steps I follow are exactly:
- Delete def_tree.php from site
- Upload new def_tree right from install package that I unzipped on my desktop
- Go in and change the CHMOD of the newly uploaded def_tree.php to 666 (or 777)
- Refresh board in ACP to make sure it isn't blank again. That and it's faster than waiting for the command to time out before recompiling page.
Actually, I just noticed that after I change the CHMOD, it does in fact populate the whole thing.. but there is a corruption somewhere that is killing it...
I'll send the modified file to you Simon.. I appreciate your help.

Posted:
Tue Apr 11, 2006 5:15 am
Author: Dioncecht
I sent my file to Simon N who, after looking it over, dind't seem to find any issues with the file itself. Anyone else have any ideas what could be killing this? It's weird, it works when it's not there or when it's not writable, but as soon as I make it writable, it populates with the structure and dies...

Posted:
Tue Apr 11, 2006 5:24 am
Author: Simon N
Please do not take my word for it though....I could have missed something.
My personal feeling on this is you have a corrupt table somewhere that is writing an error to the def_tree.php file and thus breaking the site.
However your def_tree file was over 7000 lines and the thought of going through the databse tables looking for problems is not one I would like to do.
Your problems may well be better cross posted over at the categories hierarchy forum (i forget the link but google will help). I always found them to be useful when i had similar issues with a forum.

Posted:
Tue Apr 11, 2006 9:34 am
Author: Jason Sanborn

Posted:
Tue Apr 11, 2006 10:08 am
Author: Eon
You may have to delete some of your categories or forums from your database to keep it from writing to the file.
Did you perhaps make a category into a forum when the category had forums in it already? I did this by accident, and it caused the same problem.
I however was too hasty to try and figure it out and started over. So if you know which Category/forum you were managing when it crashed, you could delete that one and then make your file writeable.
At least worth a try any ways.
Re: def_tree.php Corrupt

Posted:
Tue Apr 11, 2006 11:49 am
Author: Helter
I had this problem at forumimages using phpbb/CH (non integramod)
using ftp, i renamed cache and var_cache and uploaded empty ones. Then i overwrote def_themes and chmodded to 666 and reuploaded includes/cache_tpls.
This finally fixed my problem. I still do not know what caused it though

Posted:
Tue Apr 11, 2006 6:00 pm
Author: Dioncecht
I'll give that a try tomorrow and hopefully it will fix mine. I'll let ya know

Posted:
Wed Apr 12, 2006 11:33 am
Author: Michaelo
The def_*.php files can become corrupt (CH mod error) always keep a clean copy handy. You may be interested to know CH next release will no longer use them however the next also renders your phpbb code impossible to updateà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ IMHO

Posted:
Wed Apr 12, 2006 11:39 am
Author: Simon N
"Michaelo";p="1187" wrote:The def_*.php files can become corrupt (CH mod error) always keep a clean copy handy. You may be interested to know CH next release will no longer use them however the next also renders your phpbb code impossible to updateà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ IMHO
The "next" release was out a year ago....been using at
http://www.theplanningsite.com for 9 months now.

Posted:
Wed Apr 12, 2006 11:40 am
Author: Michaelo
The nest release is not out yet! That was the last release <img>

Posted:
Wed Apr 12, 2006 12:46 pm
Author: Simon N
LOL I just meant the version that does not rely on def files.....I needed it as the existing cat hier mod could not handle over 600 odd forum sections and I needed something that could.

Posted:
Wed Apr 12, 2006 1:20 pm
Author: Okki
i did have some problems at im.nl wich look a bit like this, it was course a hacker was trying something
is there in the dir's wich are writable (chmod 777) a htaccess file, and some php files?
the files dir standard has no htaccess and should be chmod 777

Posted:
Sun Apr 23, 2006 7:15 pm
Author: enoonsti
"Simon N";p="1203" wrote:LOL I just meant the version that does not rely on def files.....I needed it as the existing cat hier mod could not handle over 600 odd forum sections and I needed something that could.
What about the forums themselves? If I avoided making sub-forums/categories, could Integramod support more than 600 forums?
Do you see what I'm getting at? I could just set up my own custom php page with links to the forums; that way I could (possibly) avoid def_tree's limitations...
Ahh... I'm not sure if that makes sense <img>

Posted:
Fri May 19, 2006 4:50 am
Author: Dioncecht
I used Helters suggestion of commenting out the three def_*.php in functions_categories_hierarchy.php from [url=http]this thread[/url] and that fixed teh white pages issue and fixed my Photo Album issue.
Thanx guys. I appreciate all the helpful suggestions. It's great to know that there is a place that I can count on for help when I have an issue. Most, if not all, of the other free board forums often ignore someone who cries out for help. Heck, even some of the pay ones. Thats probably the single biggest reason I converted to Integramod and it is the single biggest reason I have no interest in anything else.
You guys rule!

Posted:
Fri May 19, 2006 6:34 am
Author: Okki
Did you Upgrade to CH 2.1.4c or change anything there??
If so you could have mention that


Posted:
Fri May 19, 2006 10:55 am
Author: Dioncecht
Nope.. I didn't upgrade. I didn't think it was possible to do. I just commented those lines out.