[SOLVED] def_tree.php Corrupt

Support for IntegraMOD 140

Moderator: Integra Moderator

[SOLVED] def_tree.php Corrupt

PostAuthor: Dioncecht » Mon Apr 10, 2006 7:35 am

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.
Last edited by Dioncecht on Fri May 19, 2006 4:41 am, edited 1 time in total.
'We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.' - Walt Disney

[img=left]http://rpghq.org/banner2.jpg[/img]
[url=http]The RPG Headquarters. The RPG capitol of the net![/url]
User avatar
Dioncecht
Sr Integra Member
Sr Integra Member
 
Posts: 244
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 5:23 pm
Cash on hand: 0.00

PostAuthor: Simon N » Mon Apr 10, 2006 7:59 am

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.
Last edited by Simon N on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[marq=left][url=http][img=left]http://www.tau-designs.org.uk/pictures/im2_88x32.png[/img][/url] | [url=http][img=left]http://www.free-riders.co.uk/images/banners/freeriders_88_31.gif[/img][/url][/marq]
User avatar
Simon N
Sr Integra Member
Sr Integra Member
 
Posts: 242
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:43 pm
Cash on hand: 0.00

Re: def_tree.php Corrupt

PostAuthor: Dioncecht » Mon Apr 10, 2006 8:29 am

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.
Last edited by Dioncecht on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
'We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.' - Walt Disney

[img=left]http://rpghq.org/banner2.jpg[/img]
[url=http]The RPG Headquarters. The RPG capitol of the net![/url]
User avatar
Dioncecht
Sr Integra Member
Sr Integra Member
 
Posts: 244
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 5:23 pm
Cash on hand: 0.00

PostAuthor: Dioncecht » Tue Apr 11, 2006 5:15 am

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...
Last edited by Dioncecht on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
'We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.' - Walt Disney

[img=left]http://rpghq.org/banner2.jpg[/img]
[url=http]The RPG Headquarters. The RPG capitol of the net![/url]
User avatar
Dioncecht
Sr Integra Member
Sr Integra Member
 
Posts: 244
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 5:23 pm
Cash on hand: 0.00

PostAuthor: Simon N » Tue Apr 11, 2006 5:24 am

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.
Last edited by Simon N on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[marq=left][url=http][img=left]http://www.tau-designs.org.uk/pictures/im2_88x32.png[/img][/url] | [url=http][img=left]http://www.free-riders.co.uk/images/banners/freeriders_88_31.gif[/img][/url][/marq]
User avatar
Simon N
Sr Integra Member
Sr Integra Member
 
Posts: 242
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:43 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue Apr 11, 2006 9:34 am

Last edited by Jason Sanborn on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Eon » Tue Apr 11, 2006 10:08 am

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.
Last edited by Eon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:15 am
Cash on hand: 0.00

Re: def_tree.php Corrupt

PostAuthor: Helter » Tue Apr 11, 2006 11:49 am

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
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: Dioncecht » Tue Apr 11, 2006 6:00 pm

I'll give that a try tomorrow and hopefully it will fix mine. I'll let ya know
Last edited by Dioncecht on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
'We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.' - Walt Disney

[img=left]http://rpghq.org/banner2.jpg[/img]
[url=http]The RPG Headquarters. The RPG capitol of the net![/url]
User avatar
Dioncecht
Sr Integra Member
Sr Integra Member
 
Posts: 244
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 5:23 pm
Cash on hand: 0.00

PostAuthor: Michaelo » Wed Apr 12, 2006 11:33 am

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
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

PostAuthor: Simon N » Wed Apr 12, 2006 11:39 am

"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.
Last edited by Simon N on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[marq=left][url=http][img=left]http://www.tau-designs.org.uk/pictures/im2_88x32.png[/img][/url] | [url=http][img=left]http://www.free-riders.co.uk/images/banners/freeriders_88_31.gif[/img][/url][/marq]
User avatar
Simon N
Sr Integra Member
Sr Integra Member
 
Posts: 242
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:43 pm
Cash on hand: 0.00

PostAuthor: Michaelo » Wed Apr 12, 2006 11:40 am

The nest release is not out yet! That was the last release <img>
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

PostAuthor: Simon N » Wed Apr 12, 2006 12:46 pm

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.
Last edited by Simon N on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[marq=left][url=http][img=left]http://www.tau-designs.org.uk/pictures/im2_88x32.png[/img][/url] | [url=http][img=left]http://www.free-riders.co.uk/images/banners/freeriders_88_31.gif[/img][/url][/marq]
User avatar
Simon N
Sr Integra Member
Sr Integra Member
 
Posts: 242
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:43 pm
Cash on hand: 0.00

PostAuthor: Okki » Wed Apr 12, 2006 1:20 pm

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
Last edited by Okki on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[hr][size=99px] [url=http]http][/size]
[color=red][size=99px][/size]
Please visit our advertisers.
User avatar
Okki
Dev Team
Dev Team
 
Posts: 576
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 2:05 pm
Cash on hand: 0.00

PostAuthor: enoonsti » Sun Apr 23, 2006 7:15 pm

"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>
Last edited by enoonsti on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

enoonsti
Newbie
Newbie
 
Posts: 28
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:26 pm
Cash on hand: 0.00

PostAuthor: Dioncecht » Fri May 19, 2006 4:50 am

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!
Last edited by Dioncecht on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
'We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.' - Walt Disney

[img=left]http://rpghq.org/banner2.jpg[/img]
[url=http]The RPG Headquarters. The RPG capitol of the net![/url]
User avatar
Dioncecht
Sr Integra Member
Sr Integra Member
 
Posts: 244
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 5:23 pm
Cash on hand: 0.00

PostAuthor: Okki » Fri May 19, 2006 6:34 am

Did you Upgrade to CH 2.1.4c or change anything there??

If so you could have mention that :-)
Last edited by Okki on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[hr][size=99px] [url=http]http][/size]
[color=red][size=99px][/size]
Please visit our advertisers.
User avatar
Okki
Dev Team
Dev Team
 
Posts: 576
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 2:05 pm
Cash on hand: 0.00

PostAuthor: Dioncecht » Fri May 19, 2006 10:55 am

Nope.. I didn't upgrade. I didn't think it was possible to do. I just commented those lines out.
Last edited by Dioncecht on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
'We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths.' - Walt Disney

[img=left]http://rpghq.org/banner2.jpg[/img]
[url=http]The RPG Headquarters. The RPG capitol of the net![/url]
User avatar
Dioncecht
Sr Integra Member
Sr Integra Member
 
Posts: 244
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 5:23 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]