Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Gizmo, SteveS), 38 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/07/07
Posts: 4
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 2 of 2 < 1 2
Topic Options
#240291 - 11/18/10 06:27 PM Re: Display and Feature settings gone and will not reset [Re: bilbo]
bilbo Offline
stranger
Registered: 05/18/07
Posts: 17
here is list of all the tables shown in the DATABASE TOOLS>INFORMATION view of the CP

w3t_AddressBook
w3t_AdminSearches
w3t_Announcements
w3t_Banned
w3t_BannedEmails
w3t_Boards
w3t_Cache
w3t_Calendar
w3t_Category
w3t_CensorList
w3t_ContentIslands
w3t_DisplayNames
w3t_Favorites
w3t_Graemlins
w3t_Groups
w3t_Languages
w3t_Last
w3t_Mailer
w3t_MemberSearches
w3t_Messages
w3t_ModNotify
w3t_Moderators
w3t_Online
w3t_Permissions
w3t_PollMain
w3t_PollOptions
w3t_PollQuestions
w3t_PollVotes
w3t_Posts
w3t_Queries
w3t_Ratings
w3t_Registration
w3t_ReservedNames
w3t_SearchResults
w3t_Subscribe
w3t_UserNotes
w3t_UserTitles
w3t_Users
w3t_Version
Top
#240292 - 11/19/10 07:38 AM Re: Display and Feature settings gone and will not reset [Re: bilbo]
bilbo Offline
stranger
Registered: 05/18/07
Posts: 17
Thanks for everything so far!

I have not been able to locate a full config.inc.php file.
If anybody has one for v6.5 and can post it, I'd really appreciate it.

I set about the task of mapping the various config contents to their respective locations in the control panel and have most of them located but if anybody knows of a completed map and could direct me to it, that too would be very appreciated.

I've been able to conclude, as I expected would be the case, that in fact these settings from the config.inc.php and theme.inc.php files are supposed to be housed in a table.

However, the table(s) appear to be gone or corrupted or, if they are supposed to be in one of the above tables, I am not finding the records.
Any steerage on this topic would also be appreciated. If the table(s) are corrupted, perhaps I could repair them if I knew the name(s). Clearly this would be the most preferred option as that would forgo any need to manually map all these fields and manually edit the config and theme files.

On a side note, we're considering upgrading to the newer version, but I have some reservations about problems which may be encountered if we attempt the migration before we have everything in the database fully proper (e.g. missing tables and or records restored/rebuilt/repaired).


Edited by bilbo (11/19/10 07:41 AM)
Top
#240294 - 11/19/10 10:26 AM Re: Display and Feature settings gone and will not reset [Re: bilbo]
bilbo Offline
stranger
Registered: 05/18/07
Posts: 17
Just a side thought;
is it possible these control panel settings are actually housed in the various related tables with specific IDs and not necessarily in their own table(s).

For example, user specific control panel settings housed in a specific user record in the users table, etc.

I notice there is one user record with the U_Username **DONOTDELETE** and U_Number of 1

I do not see any of the settings I would expect to see, nor do I see any similar records i nthe U_Boards table where presumably other board specific settings would need to live if this theory were accurate.

Just grasping at straws here, trying to figure out how we could lose an entire table, or if we actually did lose an entire table.

we have a two year old back up and the tables listed in it are also contained in the current db...

(i know, two years is waaaay too long to go without a back up, but seriously, that was not supposed to be my area of responsiblilty and I always just assumed it was being done by the person whose job it was).
Top
#240300 - 11/19/10 05:44 PM Re: Display and Feature settings gone and will not reset [Re: bilbo]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
The basic settings are all stored in the config.inc.php file. User specific settings would be stored in the w3t_Users table for that specific version and that's really about it.

If your config file keeps getting wiped out upon submission then it could be that the variables just aren't being submitted. This could be something like an misconfigured suhosin or something of that nature. If it's telling you that the settings were updated, it's trying to write out the updated config file, but the variables just aren't getting there.
Top
#240302 - 11/19/10 09:26 PM Re: Display and Feature settings gone and will not reset [Re: bilbo]
bilbo Offline
stranger
Registered: 05/18/07
Posts: 17
Hi Rick,

Well, I guess that answers my questions...

But,

suhosin = ???
Top
#240313 - 11/20/10 03:10 PM Re: Display and Feature settings gone and will not reset [Re: bilbo]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
suhosin
Quote:
Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. Suhosin comes in two independent parts, that can be used separately or in combination. The first part is a small patch against the PHP core, that implements a few low-level protections against bufferoverflows or format string vulnerabilities and the second part is a powerful PHP extension that implements all the other protections.

Unlike the PHP Hardening-Patch Suhosin is binary compatible to normal PHP installation, which means it is compatible to 3rd party binary extension like ZendOptimizer.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#240315 - 11/20/10 07:47 PM Re: Display and Feature settings gone and will not reset [Re: Gizmo]
bilbo Offline
stranger
Registered: 05/18/07
Posts: 17
roflmao

Thanks terribly much but, I'm afraid that is greek to me
Top
#240316 - 11/20/10 10:03 PM Re: Display and Feature settings gone and will not reset [Re: bilbo]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
"security" lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#240390 - 11/27/10 12:46 PM Re: Display and Feature settings gone and will not reset [Re: bilbo]
bilbo Offline
stranger
Registered: 05/18/07
Posts: 17
An update:

I was able to manually rebuild both the config.inc.php and theme.inc.php files

It took lots of trial and error and I had to open some of the main PHP files in visual studio in order to identify some of the variables, but I was ultimately successful (took many hours).

needless to say, I have pulled backups of the *.inc.php files...
Thanks for all the help toward this painful task.

I discovered that any "update" click in the control panel wipes out the settings associated with that particular page (not all the settings in the entire file).

This is particularly problematic when the page happens to contain settings that live in both the inc.php files.

In a potentially related item, I noticed something else.

We have problems with spammers (not news)
I have been active in banning offending user IDs (as opposed to simply deleting them).
I don't delete them because the user ID records contain useful information when it comes to blocking IPs and IP ranges.

Typically, I will gather certain information about the user, place it in the notes field, uncheck the access radio button and clicj update.
What happens next is the page reloads with a SQL error.
And I have found that after I do this, I cannot access that user's record through the control panel.

While researching what the cause could be, I noticed the U_Groups, field was blank whereas the other users were assigned to "-3-".
So, I wrote a query to update that field and now, after I ban users, I run that query and I have managed to work around the problem.
Still though, I'm not sure if this problem is related to the problem with the *.inc.php files because the SQL error in this problem seems to indicate the query is expecting to find members of the "users" group and I am not certain if when I ban a member if that is supposed to blank that field (since there actually is a specific "U_Banned" field in the table).
If there is a connection, it would seem to be in if that U_Groups field is supposed to be updated or not and if not, why is it getting blanked.
I've not looked deeply a the "showuser.php" to see what is supposed to happen.

So, any different insights as to what might be causing the problem with the *.inc.php files?

If it is the "suhosin" problem, where does one look or what does one do in order to check and or repair this?
Top
Page 2 of 2 < 1 2



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image