Old topic but probably something changed
One thing is not clear to me:
go to joomla core table "joomla3prefix_category" and search the ID of your created guestbook (extension com_phocaguestbook, should be last one)
Is this the
extention_id from extension com_phocaguestbook or when you create the new guestbook the guestbook ID which can be seen in the guestbooks overview?
I used last one and took the ID from the guestbook catagory manager.
I made a backup and cpied the table so I can go back easy and did do the following:
Code: Select all
INSERT `YOUR_PREFIX_phocaguestbook_items-org` ( id, catid, parent_id, lft, level, username, userid, email, homesite, ip, title, content, date, published, checked_out, checked_out_time)
SELECT id+1 AS id, YOURCATAGORY_ID AS catid, 1 AS parent_id, ordering AS lft, 1 AS level, username, userid, email, homesite, ip, title, content, date, published, checked_out, checked_out_time
FROM `jos_phocaguestbook_items`
As you an see I removed the alias and the language field because I got errors on it.
Then I updated the language field:
UPDATE `YOUR_PREFIX_phocaguestbook_items-org` SET `language` = '*';
After these changes I saw my old items in the new guestbook and all items posts are marked green.
BUT I am getting an error when adding a new guestbook posting:
Code: Select all
1062 - Duplicate entry '1' for key 'PRIMARY' SQL=INSERT INTO `q7i16_phocaguestbook_items` (`id`, `catid`, `parent_id`, `lft`, `rgt`, `level`, `path`, `username`, `userid`, `email`, `homesite`, `ip`, `title`, `alias`, `content`, `date`, `published`, `checked_out`, `checked_out_time`, `params`, `language`) VALUES (1, 0, 0, 0, 1, 0, '', 'ROOT', 0, '', '', '', 'root', 'root', '', '0000-00-00 00:00:00', 0, 0, '0000-00-00 00:00:00', '', '*');
After this I tryed to rebuild the postings with the above mentioned seps. I have changes some of them but I am still getting the Duplicate entry 1 fault.
Who can give some help? I am not afraid to test things but I don't know anything about PHP or mysql

I use my common sense to do things with some help from google

. So
DON'T use my steps if you are a not knowing what you are doing and if you DO do it on your own risk. Make ALWAYS backups before you change anything.
regards Walter
I found out that two fields must be rebuild lft and and rgt. lft must starts with 1 and then for all other entries 1 higher and same for the rgt field which only has to start 1 number higher than lft
so lft = 1 same record rgt = 2.
then as last the first row rgt wich is from root must be a number +1 from the highest count from that rft record
now finding a slolutiun to replace that tft and rgt field