Warning: array_merge() [function.array-merge]: Argument #2 is not an array | Troubleshooting All in One SEO Pack Pro | Support | Semper Plugins

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Warning: array_merge() [function.array-merge]: Argument #2 is not an array
October 11, 2012
12:49 pm
Avatar
Colin Vallan
Canada
New Member
AIOSEOP
Forum Posts: 2
Member Since:
September 20, 2012
sp_UserOfflineSmall Offline

I was showing these two warnings on the performance page and it was not displaying the system status because of it.

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /nfs/c07/h02/mnt/109116/domains/customhomebuildertoronto.com/html/wp-content/plugins/all-in-one-seo-pack-pro/aioseop_performance.php on line 204

Warning: Invalid argument supplied for foreach() in /nfs/c07/h02/mnt/109116/domains/customhomebuildertoronto.com/html/wp-content/plugins/all-in-one-seo-pack-pro/aioseop_performance.php on line 208

To fix it I added (array) to line 204

Original
$debug_info = array_merge($debug_info, $inactive_plugins);

Corrected
$debug_info = array_merge($debug_info, (array)$inactive_plugins);

This caused both warnings to go away and the system status to display properly.

October 11, 2012
1:16 pm
Avatar
Peter Baylies
Admin
Forum Posts: 578
Member Since:
October 16, 2011
sp_UserOfflineSmall Offline

** You currently do not have permission to see this post. To obtain access to these Premium Support Forums, please purchase a plugin and support subscription from Semper Plugins **

Forum Timezone: America/New_York

Most Users Ever Online: 964

Currently Online:
28 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 35

Members: 19443

Moderators: 0

Admins: 8

Forum Stats:

Groups: 4

Forums: 28

Topics: 1872

Posts: 7971

Newest Members:

Vernon Prather

Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve KlasenArnaud BroesAshish Ravi

[i]
[i]
Skip to toolbar