Title: Warning: array_replace_recursive(): Expected parameter 2 to be an array
Last modified: May 27, 2021

---

# Warning: array_replace_recursive(): Expected parameter 2 to be an array

 *  Resolved [mamarabbit](https://wordpress.org/support/users/mamarabbit/)
 * (@mamarabbit)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/)
 * Hi,
    I had a log in problem with Word press account due to all-in-one-seo-pack,
   got a support here and fixed the problem by using file manager and renaming the
   plug-in.
 * Now I have these Warnings like below on dashboard and they also show up when 
   I click wherever in my dashboard.
    For example, When I click post to edit, these
   Warnings show up first and disappears, then post page appears.
 * Thought I should install and unistall the plugin but wonder if it affects the
   website?
    Could you tell me a solution please?
 * Warning: array_replace_recursive(): Expected parameter 2 to be an array, string
   given in /home/xs998290/mamarabbit-kitchen.com/public_html/wp-content/plugins/
   all-in-one-seo-pack/app/Common/Utils/Options.php on line 742
 * Warning: array_replace_recursive(): Expected parameter 2 to be an array, string
   given in /home/xs998290/mamarabbit-kitchen.com/public_html/wp-content/plugins/
   all-in-one-seo-pack/app/Common/Utils/Options.php on line 770

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

 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14492000)
 * [@mamarabbit](https://wordpress.org/support/users/mamarabbit/) We now have a 
   beta version of All in One SEO which should fix this. You can download the beta
   version here – [https://www.dropbox.com/sh/3ymm9vkgtvjsayy/AABP_Q3siOv3WLVrtRKnC_Zpa?dl=0](https://www.dropbox.com/sh/3ymm9vkgtvjsayy/AABP_Q3siOv3WLVrtRKnC_Zpa?dl=0)
 * Please give that a try and let me know if it does, or doesn’t work.
 *  [dudlaj](https://wordpress.org/support/users/dudlaj/)
 * (@dudlaj)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14503275)
 * I had the same problem and the fix works.
    Best regards dUDLAJ
    -  This reply was modified 4 years, 11 months ago by [dudlaj](https://wordpress.org/support/users/dudlaj/).
 *  [StephanR](https://wordpress.org/support/users/stephanr-1/)
 * (@stephanr-1)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14506086)
 * Hello,
 * This issue has occurred since version 4.1.1.1, now over 10 days ago.
    This error
   message appears on the site even if WP_DEBUG is false.
 * I am sorry but I do not find this serious, I manage many sites and unfortunately
   I do not activate the automatic update.
    Please, what are you waiting for to 
   provide an update to fix this problem? Your tool is a very good tool and it seems
   to me that your reputation is at stake.
 * Best Regards
 * Stephan Renault
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14508189)
 * [@stephanr-1](https://wordpress.org/support/users/stephanr-1/) As you can see
   from above, we’ve released a beta version that fixes this and the fix will be
   included in our next release due out very soon.
 *  [StephanR](https://wordpress.org/support/users/stephanr-1/)
 * (@stephanr-1)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14508258)
 * Yes of course I saw 🙂
    But I prefer the official version. I would be patient.
   Thank you for your reply. Good continuation
 *  [Lisa Linn Allen](https://wordpress.org/support/users/spacegrrl/)
 * (@spacegrrl)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14694299)
 * [@wpsmort](https://wordpress.org/support/users/wpsmort/) is this fix in 4.1.2.2?
   we seem to be encountering this on a few pages, 4.1.2.2 seemed to help with one
   of them but we still see this message on a couple more upon Update, and cannot
   update the pages so long as all in one is turned on.
 * if there’s a github issue that i can read up on that has more details about what
   causes it from a technical perspective i’d be glad to read it.
 * Hope you’re well!
 *  [Lisa Linn Allen](https://wordpress.org/support/users/spacegrrl/)
 * (@spacegrrl)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14694604)
 * [@wpsmort](https://wordpress.org/support/users/wpsmort/) just to update, I found
   a github issue stating that the problem is fixed in 4.1.2.2 but data corruption
   in affected pages can cause the issue to continue on those pages. We will get
   4.1.2.2 out on our production site this weekend and then re-create the affected
   pages after update. Because we’re on an intranet and behind a firewall, we can’t
   share our data for cleanup as the github issue suggests.
 *  Plugin Author [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * (@arnaudbroes)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14694668)
 * Hey [@spacegrrl](https://wordpress.org/support/users/spacegrrl/),
 * I’m the developer who worked on a fix for the issue you’re experiencing.
 * We’re fixing the issue in 4.1.3 in the sense that it will no longer be able to
   occur going forward. However, any data that has already been affected will not
   automatically be fixed, simply because we’re not able to automatically detect
   which sites have been affected (very limited amount). So that’s why the “cleaning”
   procedure as I like to call it needs to be triggered manually.
 * If you could reach out to us at [https://aioseo.com/contact](https://aioseo.com/contact)(
   click the “Submit a Form” button) and ask for me, I’d be happy to instruct you
   on how you can run this cleaning procedure and already implement the fix we are
   shipping in 4.1.3.
 *  [Lisa Linn Allen](https://wordpress.org/support/users/spacegrrl/)
 * (@spacegrrl)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14694765)
 * [@arnaudbroes](https://wordpress.org/support/users/arnaudbroes/) I understand.
   I believe we will have to purchase a support license to be able to contact you
   via that form – is that correct?
 *  Plugin Support [Steve M](https://wordpress.org/support/users/wpsmort/)
 * (@wpsmort)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14694892)
 * Hi Lisa (@spacegrrl), You can use the normal contact form to reach us.
 *  [Lisa Linn Allen](https://wordpress.org/support/users/spacegrrl/)
 * (@spacegrrl)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14694907)
 * [@wpsmort](https://wordpress.org/support/users/wpsmort/) thank you! contact form
   sent.
 *  Plugin Author [arnaudbroes](https://wordpress.org/support/users/arnaudbroes/)
 * (@arnaudbroes)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14700762)
 * Hey [@spacegrrl](https://wordpress.org/support/users/spacegrrl/),
 * Just as an FYI, I responded last week. If you have not seen my reply yet, definitely
   check your spam box.
 *  [Lisa Linn Allen](https://wordpress.org/support/users/spacegrrl/)
 * (@spacegrrl)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14702211)
 * [@arnaudbroes](https://wordpress.org/support/users/arnaudbroes/) – got it! thank
   you for the quick response.

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

The topic ‘Warning: array_replace_recursive(): Expected parameter 2 to be an array’
is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 13 replies
 * 6 participants
 * Last reply from: [Lisa Linn Allen](https://wordpress.org/support/users/spacegrrl/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/warning-array_replace_recursive-expected-parameter-2-to-be-an-array/#post-14702211)
 * Status: resolved