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

Lost password?
Advanced Search
Forum Scope


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
Colin Valnion
New Member
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

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

$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
Peter Baylies
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:
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 36
Members: 22137
Moderators: 0
Admins: 8
Forum Stats:
Groups: 4
Forums: 28
Topics: 2056
Posts: 8912
Newest Members:
彰兼 上原
Administrators: Michael TorbertPeter BayliesSupport TeamSteve MortiboyMatthew RobinsonSteve Klasen, Arnaud: 218Ashish Ravi
Skip to toolbar