Title: Note to developer: Problem when changing site to https
Last modified: April 26, 2018

---

# Note to developer: Problem when changing site to https

 *  Resolved [xammm](https://wordpress.org/support/users/xammm/)
 * (@xammm)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/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](http://www.ourdomain.com) to [https://www.ourdomain.com](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

Viewing 1 replies (of 1 total)

 *  [davdebcom](https://wordpress.org/support/users/davdebcom/)
 * (@davdebcom)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/note-to-developer-problem-when-changing-site-to-https/#post-10229432)
 * Hi Max
 * Thank for reaching out!
 * How many snippets did you have on that site? It might be related to another issue.
   I’m not sure what is causing this issue, it might be the known max_input_vars
   issue which we will fix in one of the next versions.
 * What is the max_input_vars in your php.ini, and can you double it (from 1000 
   to 2000 for example)? If you don’t know how to find this, you can ask your hoster.
 * Kind regards
    David

Viewing 1 replies (of 1 total)

The topic ‘Note to developer: Problem when changing site to https’ is closed to 
new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [davdebcom](https://wordpress.org/support/users/davdebcom/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/note-to-developer-problem-when-changing-site-to-https/#post-10229432)
 * Status: resolved