PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Misha
Worker
Worker


Joined: Jul 30, 2006
Posts: 203
Location: McLean, VA

PostPosted: Thu Feb 26, 2009 2:33 pm Reply with quote Back to top

Just checked the server logs for a different reason, and stumbled across this warning:

[26-Feb-2009 12:06:54] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/XXXXXXX/public_html/modules/Forums/common.php on line 78

Repeats every few seconds with Argument # cycling 1 through 7.

Would appreciate if anybody could shed any light on it Smile

Still running RN 2.02.02 and BBtoNuke 2.0.21
Yes, I know, I am behind Smile

Thanks, Misha
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Feb 26, 2009 2:46 pm Reply with quote Back to top

Using PHP v5? From
Only registered users can see links on this board!
Get registered or login to the forums!


Warning

The behavior of array_merge() was modified in PHP 5.
Unlike PHP 4, array_merge() now only accepts parameters of type
Only registered users can see links on this board!
Get registered or login to the forums!
.
However, you can use typecasting to merge other types.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Misha
Worker
Worker


Joined: Jul 30, 2006
Posts: 203
Location: McLean, VA

PostPosted: Thu Feb 26, 2009 3:22 pm Reply with quote Back to top

Idea Aha! Thanks Gaylen, that makes sense, my host switched to PHP 5 a while ago.

Ok, so you are saying if I insert (array) before every argument this should solve the problem for now, right?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Feb 26, 2009 3:32 pm Reply with quote Back to top

Casting has worked for me so it should for you Smile. Just remember that there is a certain amount of overhead involved with each cast but you probably won't notice it.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Misha
Worker
Worker


Joined: Jul 30, 2006
Posts: 203
Location: McLean, VA

PostPosted: Thu Feb 26, 2009 3:50 pm Reply with quote Back to top

Yep, it did the trick. I don't think the overhead is greater than warning handling though Smile

Thanks Gaylen, ttyl Smile
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Thu Feb 26, 2009 4:43 pm Reply with quote Back to top

Misha wrote:
Yep, it did the trick. I don't think the overhead is greater than warning handling though Smile

Thanks Gaylen, ttyl Smile


Very true. Casting would be less overhead than throwing a warning Wink
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum