• Resolved bkesting

    (@bkesting)


    I am in the proces of moving a wordpress site to a new server and at the same time updating software versions.

    Current (old) and running site is running on Apache 2.2, WordPress ver. 4.1, PHP 5.3.17 and MySQL 5.5.60. Everything is running fine.

    Migrating to new server and have upgraded to Apache 2.4, WordPress ver. 4.9.8, MariaDB 10.0.35 and PHP 7.0.7.

    The site loads fine on the new system, but everytime I click on a menu item to go to a sub page I get the following message:

    ERROR THROWN: Call to undefined function split ()

    Thoughts?

    Thank you for any advice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • https://php.net/split

    The split() function was deprecated in PHP 5.3 and removed in 7.0. That means that anything trying to use it can’t any more.

    The way to fix it is to find out where it is in the code and cange it to something else that works. It will most likely be in something that is either custom-made, or hasn’t been updated for years. There’s no calls to that function in the WordPress core.

    Thread Starter bkesting

    (@bkesting)

    Thanks. I read that a little a bit ago. Looks like I need to replace any call to “split” with “explode”, correct?

    So to be clear, I’m going to have to go through the individual php files and see where “split” is being called?

    It’s most likely to be explode(), but there’s no way to be sure until you see how it’s being used in the code.

    And yes, you will have ot go through the code. A good IDE will help you there as anything that’s even remotely decent will let you do a global search for that.

    Thread Starter bkesting

    (@bkesting)

    Found the issue. An old plugin reference split one time. Disabled the plugin or replacing “split” with “explode” solved it.

    Thanks for the advice folks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Call to undefined function split()’ is closed to new replies.