Note to developer: Problem when changing site to https
-
Hey!
Today we went from http to https and with that also changed all occurences of http://www.ourdomain.com to https://www.ourdomain.com in various database-tables.
After that all snippets disappeared which caused some confusion.After some digging I found out that in the wordpress options-table the replacement of “http” with “https” also effects the post_snippets_options field. (We have a few snippets which include a-tags to pages on our website) However after the replacement the length of the string in the serialized php string is obviously not correct anymore and therefore the snippet plugin cannot display the snippets anymore.
Maybe you could somehow check and update the length of the string before serializing them back to a php-array. I don’t know.
I just wanted to tell you about this problem.
Max
The topic ‘Note to developer: Problem when changing site to https’ is closed to new replies.