Lost tags when upgrading from 0.6.4 to trunk

2 views
Skip to first unread message

madereal

unread,
Jul 5, 2010, 12:23:13 AM7/5/10
to habari-users

Hi there,

I upgraded from 0.6.4 to the trunk version last night.

At first I made a mistake by not keeping .htaccess file when I was
moving my files around. This meant that I could see all my posts and
everything on the homepage but I couldn't open any other pages (ie.
not even admin)... anyway I fixed that problem by just creating
the .htaccess file again and so now that's all working.

However, I've now realised that I lost all my tags in the move. I know
that the tag structure is different between 0.6.4 and 0.7 but I was
expecting the DB to automatically fix itself. Was I supposed to do
something to restructure my DB? (note: I'm using a theme that was
created for 0.7 so I know that it's not a problem with my theme).

While I'm asking questions... I've just noticed that my post content
has extra '<p>' tags when the pages are rendered to html. These '<p>'
tags don't appear in the text when I'm in the editor.

For example, "<p>enjoy!</p>" is being rendered as "<p><p><p>enjoy!</
p></p></p>"... do you know what's causing this?

many thanks in advance!
le

Andy C

unread,
Jul 5, 2010, 3:21:48 AM7/5/10
to habari-users
Not sure about the tags -> terms DB migration. I thought that was
handled automatically by a schema upgrade script. Maybe not...

As for the HTML tagging, I think this is caused by the over zealous
autop() function. I use the goodcode plugin to ensure my HTML is
exactly as I wrote it.

https://trac.habariproject.org/habari-extras/browser/plugins/goodcode

HTH
--
Andy

Andy C

unread,
Jul 5, 2010, 3:30:38 AM7/5/10
to habari-users
Ah I remember now. The autop() fuinction was removed from core and is
now an optional plugin. More info here

http://groups.google.com/group/habari-dev/browse_thread/thread/4f8cfc0deff13d9c/cdfe12dec7e75134?lnk=gst&q=autop#cdfe12dec7e75134

Colin

unread,
Jul 6, 2010, 8:42:39 AM7/6/10
to habari...@googlegroups.com
Hi madereal

As AndyC pointed out, the upgrade should have taken care of your tags and migrated them from tags to terms within the database.

If you edit an entry that had tags in 0.6.4, do you see the tags in the "tags" input field just below the content?

Also try switching to the 0.7 supplied K2 or other theme.  Do you see your tags?

If so, the problem is likely to be your theme.  Whilst your theme may be created for 0.7, it may have been created/last updated before the code was updated to change tags to terms and thus could be calling a non-existent function.  I believe you may get an error in the Habari logs too if this is the case.

HTH
Colin




--
To post to this group, send email to habari...@googlegroups.com
To unsubscribe from this group, send email to habari-users...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/habari-users



--
Colin Seymour
Blog: http://colinseymour.co.uk
Tech Stuff: http://lildude.co.uk
Barefoot Running: http://barefootrunner.co.uk
IRC: lildude #habari
Reply all
Reply to author
Forward
0 new messages