Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-30 01:12:44

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Update from g19 and generate url_title?

Hi,
***edit
I was hoping the update functions would generate the titles for me but it ain’t happening ***

I am trying to update an install from g19. The Title_html is blank and is staying blank no matter what I do. I feel like I have tried everything and I’m really stumped. It seems section/title won’t work without the Title-html.

I really don’t want to go back and manually do this and I am sure a scripted solution must exist somewhere. Or am I being really silly and forgetting something obvious.

tried: 4.0.3 and various flavours of 4.04.

tia

Last edited by Sencer (2006-08-30 17:13:20)

Offline

#2 2006-08-30 04:17:54

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Update from g19 and generate url_title?

Title_html is unused. It’s always blank.


Alex

Offline

#3 2006-08-30 10:52:28

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Update from g19 and generate url_title?

Do you have an actual, visible problem on your site, or was that your only concern?

Offline

#4 2006-08-30 14:24:02

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Re: Update from g19 and generate url_title?

hi, thanks for the replies.

The root of the problem is that switching from section/id/title to section title gives me 404s on the dev-version I am running on my localhost next to several other flavours of textpattern mostly svn and the 4.0.4.zip build sencer announced. As far as I can see all the installs are identically set up (server,mysql,htaccess etc) and the only problems I am having is with this one trying to update from g19.

Newly entered articles work fine in both url modes. (I have no idea why yesterday I was convinced that the articles i entered new were generating tiles in the database – wild goose chase – I can’t recreate that today all.)

The articles that where in the database that I run the new versions on top of give 404’s in section/title when accessing the individual article pages.

I am very lost and confused on this one – It normally goes so smoothly without a hitch.

Offline

#5 2006-08-30 16:23:29

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Re: Update from g19 and generate url_title?

I was mistakenly typing the from database column name.

Whenever I have said Title_html i really meant url_title. If I touch an article (just click save) every-things fine and the url_title field in the db gets filled. What I was trying to say in the first post was that before I script something to go in and fill in the url_title for all the articles ‘cos it would be a nightmare to manually do them all – has anyone already worked out a fix for this, and whether or not this was expected behavior for the titles not to be generated or something thats not been noticed before.

Offline

#6 2006-08-30 17:12:59

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Update from g19 and generate url_title?

The code is in the update-file, and it is being run automatically when you update. I’ve tested the upgrade from g1.19 to 4.0.3, so I am very confident of that. What were you thinking everybody else did when they upgraded? ;)

Maybe you had files missing when doing the initial upgrade? Do you still have the unmodified g1.19 database?

You can look at the code in textpattern/update/_to_1.0.0.php (search for url_title, there’s a couple of places). You could write yourself a plugin from it.

Offline

#7 2006-08-30 17:35:39

domfucssion
Plugin Author
Registered: 2004-10-23
Posts: 39

Re: Update from g19 and generate url_title?

I am fixing it as I type using that url_title code. I would love to work out what I did wrong though. I still have access to the g19 database – I could just run off another dump.

What files were you thinking of when you mention the initial upgrade? I dumped the db from the live server, loaded it into my local mysql and then run the updgrade. (using 4.0.3 and the two 4.0.4s you uplaoded as zips ). What might I be missing?

Thanks for your reply :)

Offline

#8 2006-08-31 10:46:59

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Update from g19 and generate url_title?

Hmmm, I think you had the attach title to permlink preference set to off. Therefore those url_titles were not generated, and you couldn’t use that specific url-schema. This is needed for some languages where transliteration doesn’t work at all for us (like chinese). So they use the same url-schemas but without the titles (if that setting is turned on) – of course some url-schema cannot work without a title.

Try changing that preference and then doing a fresh update from g1.19.

Offline

Board footer

Powered by FluxBB