Title: Warning on line
Last modified: March 24, 2020

---

# Warning on line

 *  Resolved [Marila](https://wordpress.org/support/users/marila22/)
 * (@marila22)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/)
 * Hi guys!
    on my wordpress cdpanel I am having this message with error “Warning:
   Invalid argument supplied for foreach() in /usr/home/generate.com/web/wp-content/
   plugins/connect-polylang-elementor/modules/widgets/polylang-language-switcher.
   php on line 276”. How i could fix it. is there Some code that I have to add or
   what I can do?

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

 *  Plugin Contributor [Brad Johnson](https://wordpress.org/support/users/p4fbradjohnson/)
 * (@p4fbradjohnson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12577684)
 * Hello [@marila22](https://wordpress.org/support/users/marila22/)
 * Normally this is a result of not setting up your languages. It could also be 
   the result of the latest Elementor Pro which I have not had a chance to test 
   yet. Also make sure you have no duplicator plugins installed on your site at 
   all please.
 * Have you setup languages for your site?
 *  Thread Starter [Marila](https://wordpress.org/support/users/marila22/)
 * (@marila22)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12577988)
 * Hi Brad thank you for answering me.
 * I am usin Auros theme, and this theme have ours widgets like elementor pro, but
   also use basic elementor free plugin. I has a duplicate post inactive, but now,
   after your reply I deleted it.
 * I am using polylang and yes I have three configureds languages (portugués, Inglés
   and Español). I will wait to see if deleting inactive duplicate post plugin, 
   the error notice disappears. 🙂
 * Thank you for all
 *  Plugin Contributor [Brad Johnson](https://wordpress.org/support/users/p4fbradjohnson/)
 * (@p4fbradjohnson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12578477)
 * Okay, I don’t know the compatibility of Polylang + Elementor + Polyconnect with
   other Elementor related plugins. That could also be a problem.
 * I always try and only use the full Elementor Pro things. That way I totally avoid
   using the theme.
 * Please let me know if the problem is resolved as soon as you can.
 * I am based in Portugal. Where are you based?
 * Thanks,
    Brad
 *  Plugin Contributor [Brad Johnson](https://wordpress.org/support/users/p4fbradjohnson/)
 * (@p4fbradjohnson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12585946)
 * [@marila22](https://wordpress.org/support/users/marila22/)
 * Have you managed to resolve the problem?
 *  Thread Starter [Marila](https://wordpress.org/support/users/marila22/)
 * (@marila22)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12590673)
 * Hi Brad,
 * ther message error said:
 * “Warning: Invalid argument supplied for foreach() in /usr/home/generate.com/web/
   wp-content/plugins/connect-polylang-elementor/modules/widgets/polylang-language-
   switcher.php on line 276”
 * But I detected that when I deactivate the auros core plugin, created by WpOpal
   for the Auros theme, the post error message disappears. They have made inside
   elementor free version their premius widtches similar to the elementor pro version.
   
   So I think the problem is in that “Auros core” plugin.
 * So I don’t know how I can fix the error. Some idea or advise??
 *  Plugin Contributor [Brad Johnson](https://wordpress.org/support/users/p4fbradjohnson/)
 * (@p4fbradjohnson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12591011)
 * [@marila22](https://wordpress.org/support/users/marila22/) That you would need
   to contact the theme creator. Sorry
 *  Thread Starter [Marila](https://wordpress.org/support/users/marila22/)
 * (@marila22)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12591320)
 * Okay Brad, then I will
    Thank you for all

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

The topic ‘Warning on line’ is closed to new replies.

 * ![](https://ps.w.org/connect-polylang-elementor/assets/icon-256x256.png?rev=2676314)
 * [Connect Polylang for Elementor](https://wordpress.org/plugins/connect-polylang-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/connect-polylang-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/connect-polylang-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/connect-polylang-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/connect-polylang-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/connect-polylang-elementor/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 7 replies
 * 2 participants
 * Last reply from: [Marila](https://wordpress.org/support/users/marila22/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/warning-on-line/#post-12591320)
 * Status: resolved