Drupal is up and running but how do I ...?

Missing field grant_create in node_access?

I've just seen the following error in the logfile:

Unknown column 'grant_create' in 'where clause' query: SELECT COUNT(*) FROM node_access WHERE (nid = 0 OR nid = 6540) AND CONCAT(realm, gid) IN ('all0') AND grant_create = 1 in /var/www/sites/www.******.com/htdocs/includes/database.mysql.inc on line 66.

I'm unsure what the user was actually doing to make this error appear.

Looking at things a bit closer, I've found that the grant_create column is indeed not present in the node_access.

Now, I've looked at the database/database.mysql file and the node_access table is created like this:

CREATE TABLE node_access (
nid int(10) unsigned NOT NULL default '0',
gid int(10) unsigned NOT NULL default '0',
realm varchar(255) NOT NULL default '',
grant_view tinyint(1) unsigned NOT NULL default '0',
grant_update tinyint(1) unsigned NOT NULL default '0',
grant_delete tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (nid,gid,realm)
) TYPE=MyISAM;

No grant_create column.

I've also looked at the latest version of database.mysql in CVS, and there's no mention of grant_create in there, so where does this column come from?

Should be easy enough to fix; just an
update table node_access add column grant_create tinyint(1) unsigned not null default '0'
looks like it should do the job, but I'm more curious about whether this will have any other undesired effects on things, and how my

So my Drupal site crashed...

And I really don't know why. I was getting some SQL errors, but they were repaired quite easily. Then it just crashed:

Parse error: parse error, unexpected T_STRING in /home/kato/public_html/modules/filter.module on line 473

Probably doesn't help much that I don't know any php really, but I asked for any help here on the forums and I didn't get any response from anyone. If anyone can help with that, that would be great. Or at least help shed some light on a few things and help me make a few decisions.

1) The error that I am getting and the SQL database errors I was getting...do you think Drupal CMS crashed or was it the database that went out on me? If you want to see my thread with no answers about my SQL errors, it is here: http://drupal.org/node/52413

2) If it was just Drupal crashing out, how hard is it to reinstall Drupal and use that database again? The site is only a few months old, but it would be nice to not lose any of that information.

3) If the site is just toast (which I have a feeling it is), would you suggest keeping with 4.6.5 or moving up to 4.7 and starting over? I really don't like to do many updates/upgrades as once the site is working, I really don't want to break it. Bad thing about this crash I just suffered last week though is that I didn't do any upgrades or changes at all. It just happened. Which is better? I only installed a few modules on their own and the rest of the site was just the basic Drupal installation.

Users can see administrator pages and links (possible cache problems)

I have a problem. Some anonymous and registered users sometimes can see administrator section if they type URL "www.mysite.com/admin". Sometimes in comment pages users see admin links (moderate etc...). I think that it's problem connected with cache because users actually can't access to admin functions (every attemption to click on admin link bring to login page with the error message). Disabling of cache is not working. Site continue working as if cache is enabled.

finding a node number?

very very basic question...

How do i find a node number from within the node?

what i am trying to do:

create a link that includes the node number like so:

www.somesite.com/node/[node number]

is there any way to add the node number into a link inside the node without hardcoding it?

building a forum structure based on taxonomy

Hi all,

I created a Vocabolary for types "forum topic" and the related terms.
vocabulary: Music
- rock (terms)
- folk
- celtic

I then created a container and added forums and nowhere there was a category to specify.

container: World
forum : UK
forum : Ireland

Customize forum icons

Hi,

is there a way to customize forum icons per drupal theme? For now I changed them in the forum folder, but each time I update drupal I have to copy my files again.

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Post installation