Home | Support Forums | Your Account | Gallery [2] | 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.
   DONATIONS
Help keep us going
Make donations with PayPal!
Donation Stats
July’s Goal: $350.00
Due Date: Jul 31
Gross Amount: $25.00
Net Balance: $23.72
Left to go: $326.28

Donations
Anonymous $25 Jul-16

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
 PHP-Nuke
 phpBB2
 phpBB3 (Olympus)

 Gallery 1 Blocks
 Random Photo
 Featured Photo
 Newest Photo
 Most Popular Photo

 Misc Blocks
 CNN News
 RSS Feed

 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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingWeb hosting AustraliaSEO Web DesignWeb Design New YorkSearch Engine Optimization

5th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia