Title: &#8220;Invalid argument&#8221; after switch from http to https
Last modified: July 2, 2018

---

# “Invalid argument” after switch from http to https

 *  [netscape](https://wordpress.org/support/users/netscape/)
 * (@netscape)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/)
 * Hi,
 * after switch from http to https I get this error in the frontend:
 * `Warning: Invalid argument supplied for foreach() in /homepages/17/d86437294/
   htdocs/_wordpress_site/wp-content/plugins/accordion-shortcode-and-widget/front/
   ac-content.php on line 63`
 * And in the backend:
    `Warning: Invalid argument supplied for foreach() in /homepages/
   17/d86437294/htdocs/_wordpress_site/wp-content/plugins/accordion-shortcode-and-
   widget/lib/admin/add-acc.php on line 21`
 * Any idea?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [dikshita46](https://wordpress.org/support/users/dikshita46/)
 * (@dikshita46)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/#post-10456931)
 * hello,
    plz check if you have used any special character and if used then remove
   those special character .
 *  Thread Starter [netscape](https://wordpress.org/support/users/netscape/)
 * (@netscape)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/#post-10457843)
 * Hi,
 * there are no special chars in the domain name. I only used the “better search
   replace” plugin to replace [http://domain.xy](http://domain.xy) to [https://domain.xy](https://domain.xy)
 *  [BaLwAnT KaShYaP](https://wordpress.org/support/users/balwantwpshomart/)
 * (@balwantwpshomart)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/#post-10461161)
 * Hi,
    Thanks For your Suggestion, We will Check this issue and will resolved it.
 * Thanks
    Balwant
 *  Thread Starter [netscape](https://wordpress.org/support/users/netscape/)
 * (@netscape)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/#post-10486463)
 * Hi,
 * any idea how to fix this problem? The problem still exist. No one else has this
   problem?
 *  [johnny9900](https://wordpress.org/support/users/johnny9900/)
 * (@johnny9900)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/#post-10828719)
 * hello. i have same issue.. did u fixed already?
 *  [onlinemo](https://wordpress.org/support/users/onlinemo/)
 * (@onlinemo)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/#post-11194825)
 * This has also happened to me. I used a search and replace plugin to update everything
   in the site to https:// and now the accordion doesn’t work “invalid argument 
   supplied for foreach()..”
 * What is the solution to this problem please?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘“Invalid argument” after switch from http to https’ is closed to new 
replies.

 * ![](https://ps.w.org/responsive-accordion-and-collapse/assets/icon-128x128.png?
   rev=2339019)
 * [Accordion FAQ - Compatible With All Page Builder (Elementor, Gutenberg)](https://wordpress.org/plugins/responsive-accordion-and-collapse/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-accordion-and-collapse/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-accordion-and-collapse/reviews/)

## Tags

 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * 6 replies
 * 5 participants
 * Last reply from: [onlinemo](https://wordpress.org/support/users/onlinemo/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/invalid-argument-after-switch-from-http-to-https/#post-11194825)
 * Status: not resolved