Title: Fatal error: Call to undefined function array_replace()
Last modified: July 30, 2018

---

# Fatal error: Call to undefined function array_replace()

 *  Resolved [dom1706](https://wordpress.org/support/users/dom1706/)
 * (@dom1706)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-array_replace/)
 * Hello,
 * I would like to thank you for your plugin. It works prefectly !!
 * Since this morning, I have an error message when I click on ‘Preview’ when inserting
   an ad…
    Fatal error: Call to undefined function array_replace() in /home/XXX/
   html/wp-content/plugins/wpadverts/templates/form.php on line 67
 * Where is the problem ?
 * Thanks in advance for your help !
 * Dominique,
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-call-to-undefined-function-array_replace%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Greg Winiarski](https://wordpress.org/support/users/gwin/)
 * (@gwin)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-array_replace/#post-10539850)
 * Hi, array_replace() is a native PHP function available in PHP since version 5.3.
   It looks like your hosting switched (not sure why) to PHP 5.2 or older, in either
   case it would be best if you would ask their support about it.
 *  Thread Starter [dom1706](https://wordpress.org/support/users/dom1706/)
 * (@dom1706)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-array_replace/#post-10542990)
 * Hello Greg,
 * Thanks for your reply and your help.
    I’ve contacted my provider and he switched
   to PHP 5.6 and all is working now.
 * Best regards.
 * Dominique,

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

The topic ‘Fatal error: Call to undefined function array_replace()’ is closed to
new replies.

 * ![](https://ps.w.org/wpadverts/assets/icon-256x256.png?rev=2423472)
 * [WPAdverts - Classifieds Plugin](https://wordpress.org/plugins/wpadverts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpadverts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpadverts/)
 * [Active Topics](https://wordpress.org/support/plugin/wpadverts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpadverts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpadverts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dom1706](https://wordpress.org/support/users/dom1706/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-array_replace/#post-10542990)
 * Status: resolved