• Resolved t.yme1111

    (@tyme1111)


    Getting this error when I try to activate the plugin. My site is very basic at this point, with minimal plugins. (Never encountered before, and Googling turns up nothing.)

    Fatal error: Call to undefined function array_replace() in /home/myaccount/public_html/mywebsite.org/wp-content/plugins/query-wrangler/includes/class-qw-settings.php on line 28

    Anyone have any ideas?

    https://ww.wp.xz.cn/plugins/query-wrangler/

Viewing 1 replies (of 1 total)
  • Plugin Author Jonathan Daggerhart

    (@daggerhart)

    Hi tyme1111,

    That means your version of PHP is pretty old. I highly recommend updating to a newer version. Some shared hosting will let you choose the PHP version you run on sites.

    If you can’t upgrade PHP, I recommend finding an alternative function for array_replace that you can add to your theme’s functions file.

    SimonSimCity’s answer in this thread looks good (not the top accepted answer): http://stackoverflow.com/questions/6198679/array-replace-alternatives-for-earlier-version-of-php

    In general, you would be better off finding a way to get a newer PHP version. If you aren’t sure how, ask your host, they should be able to do it. PHP 5.2 is over 5 years old now, and in internet time that’s ancient.

    Thanks,
    Jonathan

Viewing 1 replies (of 1 total)

The topic ‘Activation fatal error …class-qw-settings.php’ is closed to new replies.