Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
   PARTNERS





   DONATIONS
Help keep us going
Make donations with PayPal!
Donation Stats
September’s Goal: $350.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $350.00

Donations

Or, purchase an item from my wishlist:
http://wishlist.com/dmolavi


   MAIN MENU

 Home

 Contribute 

 About Us

 Support Forums

 Paid Support

 Premier Membership

 FAQ

 Site Map

 Old News


   DOWNLOADS

 Gallery 2 Integration
 PHPNuke
 phpBB2
 phpBB3

 Gallery 1 Blocks

 Misc Blocks

 PHP Nuke

 Gallery


   SUPPORT US
Like what we do here? Click the button below to help us out.

NukedGallery FAQ (Frequently Asked Questions)



Category: Main -> D. Error messages

Question
·  D.1. Warning: Invalid argument supplied for foreach()
·  D.3. Warning: main(errors/configure_help.php)
·  D.2. Warning: rand() expects parameter 2
·  D.4. Fatal error: Call to undefined function: isalbumname()

Answer
·  D.1. Warning: Invalid argument supplied for foreach()

If you get complaints about invalid arguments for the "foreach()" method in session.php, make the following replacements on/around the line that registers the complaint:

$_HTTP_SESSION_VARS ==> $_SESSION

This is an issue with newer versions of PHP and how it handles global variables. Gallery is written to be backwards compatible with older versions of PHP.

EXAMPLE
/modules/gallery/sessions.php - should look like this:

[ Back to Top ]

·  D.3. Warning: main(errors/configure_help.php)

In the BLOCK file:

Just below the:

<?

Add:

global $gallery;

[ Back to Top ]

·  D.2. Warning: rand() expects parameter 2

BLOCK: RANDOM IMAGE
Try deleting your block-random.cache from your ALBUMS directory first.

If that doesn't work, try this:

Add this:

$count = floatval($count);

in front of:

$choose = rand(1, $count);

in your random_support.php (around line 196)

[ Back to Top ]

·  D.4. Fatal error: Call to undefined function: isalbumname()

This function had a name change in a recent version of Gallery. In your block file, change all calls for 'isAlbumName' to 'getAlbumName'.

[ Back to Top ]






Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationAustralian Web HostingNeckermannLook For GadgetsSwag Listings

10th year online! 2003-2013
Legal Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion Works SourceForge.net Logo Theme by TonicMedia