This forum is for questions about upgrading an existing Drupal site. Don't forget to read the UPGRADE.txt file that comes with every Drupal download.

Creating posts gets duplicate entries in database (primary keys?)

* user warning: Duplicate entry '8' for key 1 query: INSERT INTO node (nid, vid, title, type, uid, status, created, changed, comment, promote, moderate, sticky) VALUES (8, 8, 'hk', 'blog', 1, 1, 1146009658, 1146009658, 2, 1, 0, 0) in /hsphere/local/home/thesutex/blog.heggli.biz/includes/database.mysql.inc on line 120.
* user warning: Duplicate entry '8' for key 1 query: INSERT INTO node_revisions (nid, vid, title, body, teaser, log, timestamp, uid, format) VALUES (8, 8, 'hk', 'gy', 'gy', '', 1146009658, 1, 3) in /hsphere/local/home/thesutex/blog.heggli.biz/includes/database.mysql.inc on line 120.
* user warning: Duplicate entry '8' for key 1 query: INSERT INTO node_comment_statistics (nid, last_comment_timestamp, last_comment_name, last_comment_uid, comment_count) VALUES (8, 1146009658, NULL, 1, 0) in /hsphere/local/home/thesutex/blog.heggli.biz/includes/database.mysql.inc on line 120.

i upgraded my drupal site to 4.7 and encountered some problems. so i backed up my database and installed a fresh install, where i moved the posts and comments over to the new database. but then it started to add posts in the database with key=1 and so on. trying to overwrite posts that are occupying these key spots if you know what i mean.

as you can see, it started at the top again when creating posts, adding them with nid=1 and so on.. but i have them filled untill 220. How do i tell drupal (or the database) to stop this and start adding posts at nid=221 and so on?

Acidfree 4.7 1, 2, 3, Next / Last links are mangled

I have installed Acidfree (4.7) with Drupal 4.7 rc/3 with filemanager form CVS
The primary issue is that the acidfree albums are OK and are created, however, when viewing individual photos the links to the next photos are mangled and do not produce valid URL's

Old module is not working properly

Dear Drupal Experts,

I recently patched my drupal 4.6 to the newer 4.6.x version... but I just found out that an old module that I developed myself serve simple but important function is not working properly.

The problem is with the "Profile" module which I use in conjuction with my module...

I added few more fields into the registeration system including

Full name textfield
Address
Telephone etc etc

The module I developed uses the data in the "Full Name" field which was previously stored in the "profile_values" table which came with the "profile module"....

This is the code I used to accessing that... field...

[code]
$account = user_load(array('mail' => $edit['email']));

$result = db_query("SELECT value FROM {profile_values} WHERE fid = '%d' AND uid = '%d'", 2,$account->uid);
$fullname = db_result($result);
[/code]

note: 2 stands for the fullname field

It used to return the fullname of the particular user that registered....

When I upgraded, that field no longer returns anything, just blank return....

And I've found out with breif research of how drupal stores things... that the "profile_values" table does no longer store profile data which is forwarded by the registeration system. But I found out that in the "users table", there is a field named "data" and it had data which includes the fullname and other things...

e.g.
this is what is stored in the "data" field of the "users table", a test user that I registered while testing...

Issues with 4.7

Being a relative newcomer to this world, I hope you forgive me....I've got a few issues and questions I'd love help with...

Just as a FYI, I operate a non-profit organization (in my basement) that works to help kids learn to write better. We are a collaboration of professional writers, teachers, students, journalists and newspapers. I developed the present site off HTML; it works fine but needs to be much more dynamic. I am now working on the next generation site for this fall. I've learned a lot about Drupal and like it. Now I am doing the trial and error method which, I find, is not a bad way to learn, but it is slow to be sure.

I've managed to load up the Drupal 4.7 and have gotten it working well and looking pretty good. (Thanks to Walt for helping me find some installation info I needed.)

1) I am finding that with 4.7 a number of modules can't be configured...I get an error message when I attempt to do so. For instance, here's one I got when I tried to establish settings for Acidfree:....Fatal error: Call to undefined function: form_select() in /home/youngwri/public_html/drupal/modules/acidfree/acidfree.module on line 295...
The same thing has with SUBMISSIONS, Gallery, poormanscron and a few others....

I'm not sure this is the right place to ask, but is this something that is because 4.7 is in scheduled release level and is not formally released and these modules haven't been modified yet? Or are there some fixes out there I can try?

How to update fotter page

Hi
I am facing problem to updating my fotter section.for updating i am doing these steps:
in admin section
administer>general setting>footer message

in footer message box i am giving my new message but on site it is showing old one.

Suggest me
Thanks & Regards
Rohit

warning: call_user_func_array(): First argumented is expected to be a valid callback, 'taxonomy_term_page' was given

I've the following problem after installing i18n module. When I open the start page of the site the following message displayed (and nothing else):

warning: call_user_func_array(): First argumented is expected to be a valid callback, 'taxonomy_term_page' was given in /usr/local/stuff/web/icebrains-soft/html/includes/menu.inc on line 354.

I have no access to the drupal interface. I can't understand the cause of this error. It appears after drupal configuring via "Settings" page.

How can I avoid this problem?

Thanks a lot beforehand.

Pages

Subscribe with RSS Subscribe to RSS - Upgrading Drupal