Go Back   SZONE.US Forums > Do it yourself (DIY) > Web Tips > vBulletin

vBulletin Here you can find vBulletin add-ons, discussions and support.

function.array-merge Argument #2 is not an array in modules vbgallery.php on line 49

Views:6720
Reply
Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average.
  #1  
Unread 09.29.07, 09:31 PM
niceguy niceguy is offline
Junior Member
 
Join Date: 09.07
Posts: 4
Exclamation function.array-merge Argument #2 is not an array in modules vbgallery.php on line 49

Been working on the integration of cmps on my forum. running the gallery in vertical mode on the ride side

when i enable the integration for showthread i receive this error along the top:
Quote:
function.array-merge Argument #2 is not an array in modules vbgallery.php on line 49
I also do not see any images. If i remove the module from that page integration, the error goes away.

vb 3.6.8
gallery Powered by PhotoPost vBGallery v2.3
Reply With Quote
  #2  
Unread 09.30.07, 03:51 PM
Zachariah Boren's Avatar
Zachariah Boren Zachariah Boren is offline
Administrator
 
Join Date: 02.07
Location: Canoga Park, CA
Posts: 928
Blog Entries: 6
Images: 10075
Send a message via ICQ to Zachariah Boren Send a message via MSN to Zachariah Boren Send a message via twitter to Zachariah Boren
I have plans to redesign the way the gallery is integrated.

Currently there is a plug-in that needs to be edited.

AdminCP => Plugins & Products => Plugin Manager
- Product : PhotoPost vBGallery
-- Fetch Datastore

PHP Code:
if(in_array(THIS_SCRIPT, array(
            
'index',
            
'member',
            
'adv_index'))) 
Change To:
PHP Code:
if(in_array(THIS_SCRIPT, array(
            
'index',
            
'member',
            
'adv_index',
            
'showthread'))) 

Any default vBulletin file (and most vB hacks) will define the constant "THIS_SCRIPT" at or near the top of the file to help identify it.

Example in a PHP file:
Code:
define('THIS_SCRIPT', 'value');
__________________
http://www.szone.us | http://www.gzhq.net
Twitter | Facebook | My:Hacks @ vBulletin.org
Member of Kiwanis Club of Chatsworth
Reply With Quote
  #3  
Unread 09.30.07, 09:35 PM
niceguy niceguy is offline
Junior Member
 
Join Date: 09.07
Posts: 4
Yup, that resolved the issue of it not showing up on the showthread, however, even when setting:

Quote:
Column Span
How many columns would you like to span across?
(1 = vertical display)
to 1

i get 4 images across, horizontal.
Reply With Quote
  #4  
Unread 10.03.07, 12:20 PM
niceguy niceguy is offline
Junior Member
 
Join Date: 09.07
Posts: 4
is there a doctor in the house ?

Reply With Quote
  #5  
Unread 10.07.07, 01:17 PM
niceguy niceguy is offline
Junior Member
 
Join Date: 09.07
Posts: 4
tried the setup on another site, same issue. 1 image works, if i do 4 vertical they force themselves horizontal.
Reply With Quote
  #6  
Unread 12.30.07, 09:57 AM
Hello Hello is offline
Junior Member
 
Join Date: 12.07
Posts: 1
Thankio Admin
Reply With Quote
Reply

Tags
argument, array, functionarraymerge, modules, vbgalleryphp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array @NASA N.A.S.A. 0 09.17.08 09:43 AM
Fixing the Array @NASA N.A.S.A. 0 11.05.07 03:56 PM
NASA Assigns Crew for Final Solar Array Delivery to Station @NASA N.A.S.A. 0 10.19.07 05:55 PM
Updating the Array @NASA N.A.S.A. 0 06.16.07 04:17 AM
GM, Ford to Merge? Steve Boren Business 0 09.23.06 09:29 AM


All times are GMT -8. The time now is 09:30 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 20017 SZONE.US All rights reserved
You Rated this Thread: