Reputation: 31
We recently went through a website migration, PHP & WP upgrades. We are currently using a customized theme and keep getting the following error once we upgrade from PHP 5.6 to 7.0:
Fatal error: Cannot redeclare get_resources() (...) /functions.php on line 220
Already changed all include
to include_once
, but still getting the same error.
Anyone ever went through a similar issue?
Upvotes: 1
Views: 1283
Reputation: 6560
PHP introduced a function called get_resources()
in PHP7:
get_resources
(PHP 7)
get_resources — Returns active resources
Read full manual entry here.
--
You'll have to upgrade your WordPress version to the latest out - the fix will be in there.
Upvotes: 3