- Posts: 58
COMMUNITY FORUM
Migrating Items from 1.5 to 1.7
- Paul
-
Topic Author
- Offline
- Senior Member
Tried that again, it is Shf404 that stops k2 working, If i post a new item all fine, these imported ones using this way do not, neither does categories.
Paul
Please Log in or Create an account to join the conversation.
- Peter Thompson
-
- Offline
- New Member
- Posts: 2
Also I'm a bit stuck on points 4, 5, 6. Do I need to change anything in the queries that you've listed ie. substitute anything out? Or do I just copy and paste that query. Under the query section in phpmyadmin there are alot of fields. Do I need to populate those fields at all?
Sorry to be a pain, just trying to muddle my way through this. Any help would be appreciated folks.
Please Log in or Create an account to join the conversation.
- Paul
-
Topic Author
- Offline
- Senior Member
- Posts: 58
I was not a pro at database work but i did the operation after a few tries and learned the following.
Here is what I did
Yes the database prefixes have to be the same on both old and new,
To run the queries, go into the particular table and just below the top main menu where a query shows is another text menu aligned to the right, click on "inline" first option and the editor window opens (see attached)
This is where you type in the Query to change the old admin ID to the New one etc and press go, make sure you are in the correct table.
This does work and i can view K2 in the site, also with the built in SEO of joomla, but i use shf404 on all joomla sites and this cannot read these imported articles.
There seems to be one viewable field that is different in 1.5 - 1.7, i tried copying a new item entry info from this field into one of the imported ones and still did not work, still trying!
Params field has a diffrerent layout.
Hope that helps?
Paul
Please Log in or Create an account to join the conversation.
- Paul
-
Topic Author
- Offline
- Senior Member
- Posts: 58
The next thing to figure out, how to run a Query on 1500+ items to add * into a blank field
May have to check the categories as well
HELP:
I tried to run these Queries -
UPDATE `jos_k2_items` SET language = * WHERE language = NULL
UPDATE `jos_k2_items` SET language = * WHERE language = IS NULL
UPDATE `jos_k2_items` SET language = * WHERE language = NONE
and get the same syntax error, trying to find out more
The language field on the imported items has nothing inside so i used NULL, also tried leaving that blank and adding 0, what is the terminology you use for a blank field database query?
UPDATE:
Found the Query, big learning curve, added the following on k2 items and k2 categories
UPDATE `jos_k2_items` SET language = "*" WHERE language = ""
UPDATE `jos_k2_categories` SET language = "*" WHERE language = ""
My SHF404 Now seems to work with the imported 1500+ k2 in items and categories, hope this helps others
Paul
Happy as a pig in s*** at the minute
Please Log in or Create an account to join the conversation.
- avion121
-
- Offline
- New Member
- Posts: 3
edit. manage to resolve this problem by running a query:
UPDATE `PREFIX_k2_categories` SET access = 1 WHERE access = 0
Now i have trouble with logging into backend, but thats another story i guess,i guess i messed up something with jos_users... :)
Please Log in or Create an account to join the conversation.
- theandygram
-
- Offline
- Senior Member
- Posts: 49
There was a problem rendering your image gallery. Please make sure that the folder you are using in the Simple Image Gallery Pro plugin tags exists and contains valid image files. The plugin could not locate the folder: media/k2/galleries/3786
I have copied over all the media from the media/k2/ directory including "items" and "galleries" and I set the file path in the SIG manager but I don't see the images or galleries associated with my k2 articles.
Does anyone have any suggestions as to what might be wrong?
Many thanks!
Please Log in or Create an account to join the conversation.
- Andy Connell
-
- Offline
- Senior Member
- Posts: 54
I have one question though if anyone can help with Steps 6 & 7
6. Update k2_items created_by ID to new J1.7 Super User ID by running SQL query:
UPDATE `PREFIX_k2_items` SET created_by = NEW_ID WHERE created_by = OLD_ID
7. Update k2_items modified_by ID to new J1.7 Super User ID:
UPDATE `PREFIX_k2_items` SET modified_by = NEW_ID WHERE modified_by = OLD_ID
I'm assuming this is if all the articles where written and modified by the same person?
I have 500 articles written by about 40 Authors and modified by around 10 Admins.
How can I get all the articles/items updated to there existing authors?
I have a new J2.5.8 install with K2.6.1 and not much else.
I know I obviously need to also migrate all the Joomla users over. that's my next test.
Andy
Please Log in or Create an account to join the conversation.