PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old September 9th, 2005, 09:37 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2004
Posts: 24
function.array-merge error

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr/web/sites/www.buckeyeplanet.com/htdocs/gallery/index.php on line 176

Getting this error at the top of the gallery/index.php page. Wasn't earlier, and all I've done since is set user permissions, create a couple new categories, and enable .htaccess protection.

I've since disabled the latter, but still getting the error. Not sure what the problem is, and looking at line 176 didn't help.

Any suggestions? Did a search here for the error, but just found something similar for CMPS.

--edit--
It only seems to be on the main page.
Bryant is offline  
Old September 10th, 2005, 02:48 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Posts: 464
Re: function.array-merge error

it might have todo with your settings...
did you exclude some categories from being viewed on index? and have deleted them afterwards...
or
it might have todo with the private categories..
at least it has todo with that line...

i would try to delete all private categories..
and set them up again..

luc
its just an idea...
Luciano is offline  
Old September 10th, 2005, 11:02 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Mar 2004
Posts: 24
Re: function.array-merge error

No categories excluded, have only created a few, and they're open to all, so no privates either.

When I log out of my account, the error isn't there. So I've looked at permissions but everything seems kosher.

I am running PHP5, the few other threads I saw about this were in the CMPS area, but mentioned PHP5 being an issue. Hard to believe that would be the case here though.

Either way, anxious to put this to use, but not going to until that error is gone. It's all seems to be completely functional, so I'm not sure what problem this error is causing.

I've tried loading up my settings and resaving thinking maybe it's the cache as well, no luck.

Thanks for the suggestions though, Luc.
Bryant is offline  
Old September 11th, 2005, 03:14 PM   #4 (permalink)
Brian
Guest
 
Posts: n/a
Re: function.array-merge error

Admin CP => vBa Gallery => Modify Settings => Main Index Page Options => Excluded Categories

Double check there to make sure that you do not have any categories selected. You may also want to try selecting a category there, saving the options, and then going back to deselect the category and see if that helps to solve the problem.
 
Old September 23rd, 2005, 09:46 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2004
Posts: 1
Re: function.array-merge error

I have a similar problem, running PHP5. I removed all private categories and the error is gone. But as soon as I add one it returns.

Any ideas?
nmcfaul is offline  
Old October 14th, 2005, 04:20 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Australia, mate
Posts: 37
Re: function.array-merge error

I've got the same, I'd like to exclude a NSFW gallery so its pretty important :P
ZGeek is offline  
Old October 14th, 2005, 01:11 PM   #7 (permalink)
Brian
Guest
 
Posts: n/a
Re: function.array-merge error

Look in your gallery/index.php file for:
Code:
Content visible to verified customers only.
Replace with:
Code:
Content visible to verified customers only.
And that should take care of the problem.
 
Old October 14th, 2005, 10:59 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Location: Australia, mate
Posts: 37
Re: function.array-merge error

That did the trick. Thanks heaps. Love your work
ZGeek is offline  
Old November 7th, 2005, 06:39 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: Gilbert, AZ
Posts: 394
Re: function.array-merge error

I get it here now
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions_gallery.php on line 2174

after installing php5. php5 does array_merge differently now
Quote:
The behavior of array_merge() was modified in PHP 5. Unlike PHP 4, array_merge() now only accepts parameters of type array. However, you can use typecasting to merge other types
7thgencivic.com is offline  
Old November 8th, 2005, 01:44 PM   #10 (permalink)
Brian
Guest
 
Posts: n/a
Re: function.array-merge error

Try looking in your functions_gallery.php file for this code (almost at the very bottom):
Code:
Content visible to verified customers only.
And add this right above it:
Code:
Content visible to verified customers only.
 
Old November 15th, 2005, 10:18 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: Gilbert, AZ
Posts: 394
Re: function.array-merge error

sweet, thanks
7thgencivic.com is offline  
Old November 22nd, 2005, 11:03 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Jan 2003
Location: Gilbert, AZ
Posts: 394
can we get this fix added to the download. also, why are Brians posts all foobarred?
7thgencivic.com is offline  
Old January 12th, 2006, 10:50 AM   #13 (permalink)
Registered User
Verified Customer
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,229
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Fixed and added
Zachariah is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
It's back: Warning: array_merge() [function.array-merge] pennylessz28 Installs and Upgrade - vBulletin 3.5.X 7 December 17th, 2005 11:23 AM
mysql array and stripped slashes error MortysTW Photopost Pro Installation & Upgrades 5 April 13th, 2005 03:15 PM
installation error Fatal error: Call to undefined function: init_user_groups hoss ReviewPost Installation & Upgrades 1 January 16th, 2005 08:35 PM


All times are GMT -5. The time now is 07:04 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0