Title: PHP-Warning with Sitemaps.php
Last modified: January 18, 2021

---

# PHP-Warning with Sitemaps.php

 *  Resolved [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * (@roundaboutweb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-sitemaps-php/)
 * WP-Version: 5.6
    PHP-Version: 7.4 Plugin “Connections Business Directory”: 10.1**
   There are 2 Warnings in PHP with your Plugin:
 *     ```
       Warning: array_merge(): Expected parameter 2 to be an array, string given in /html/wordpress/wp-content/plugins/connections/includes/Sitemaps/Sitemaps.php on line 142
       Warning: in_array() expects parameter 2 to be array, null given in /html/wordpress/wp-content/plugins/connections/includes/Sitemaps/Sitemaps.php on line 146
       ```
   
 * Can you please fix it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-with-sitemaps-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-sitemaps-php/#post-13923360)
 * The next update already has an additional check added, which should prevent this
   warning notice from being generated by PHP.
 * You can prevent the warning; please navigate to the Connections Settings admin
   page and click the Advanced tab. Make no changes and click the Save button.
 * I hope this helps. Please let me know.
 *  Thread Starter [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * (@roundaboutweb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-sitemaps-php/#post-13923427)
 * The warnings are now no longer displayed, but are only the warnings disabled 
   or is the cause fixed?
 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-sitemaps-php/#post-13923453)
 * If you saved the advanced settings as described in my last reply, the issue that
   was triggering the warning is resolved.
 * I hope that thoroughly answers your question, let me know.
 *  Thread Starter [roundaboutweb](https://wordpress.org/support/users/roundaboutweb/)
 * (@roundaboutweb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-sitemaps-php/#post-13923485)
 * I only saved the config and in the moment it looks like there is no warning –
   thanks.
 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-sitemaps-php/#post-13923488)
 * Great to hear and happy to help!

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

The topic ‘PHP-Warning with Sitemaps.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/connections_2b7e99.svg)
 * [Connections Business Directory](https://wordpress.org/plugins/connections/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/connections/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/connections/)
 * [Active Topics](https://wordpress.org/support/plugin/connections/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/connections/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/connections/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/php-warning-with-sitemaps-php/#post-13923488)
 * Status: resolved