td_subtitle database insertion

Posted in: Newspaper
Post count: 52

Hi

I am working in a migration and generating subtitles manually to insert in postmeta table like this:
post_id
td_post_theme_settings
a:1:{s:11:”td_subtitle”;s:10:”AAAAAAAAAA”;}

Unfortunately this only works when I updated through editor even doing same insertion. What am I missing?

  • This topic was modified 9 years by gcamara.
Post count: 20685

Hi,

I don’t know how I could help you with this. I have not tried inserting subtitles manually in the database. If you could provide more details about the problem for better understanding, maybe I could be able to help you.

Thanks

Post count: 52

well, I should migrate like 8000 posts and if you could do a simple test inserting directly in db and comparing why a dashboard editing has a different effect, that could be a great achievement… Maybe I missed some other table link or similar.

AFAIK wp_postmeta has only relation with wp_post, so thats my problem. I’m stuck

Post count: 20685

Hi,

I have tried inserting a subtitle through the database for a post
https://www.screencast.com/t/banGM82k
And it is displayed in the post as soon as I refresh the page
https://www.screencast.com/t/5ZBNodhf

Thanks

Post count: 52

That’s strange, thank you for your test, I’ll keep testing to see what could be failing here.

Post count: 52

ok, seems special characters like ñ á é í etc are not compatible when you inserted them through phpmyadmin or command line script. Any advice? Romanian language special characters are also affected as well.

Post count: 52

wow, this is extremely strange… seems that every special char count by two in string count parameter, this is one of the most “rarities” i’ve ever seen.

  • This reply was modified 9 years by gcamara.
  • This reply was modified 9 years by gcamara.
Post count: 52

solved, multibyte characters count 1 in char_length but two in length functions in mysql, that was the problem.

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.