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.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Random Photo Error

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
Hadron

Beginner
Beginner


Joined: Apr 17, 2003
Posts: 2

PostPosted: Sun Apr 20, 2003 12:18 am    Post subject: Random Photo Error Reply with quote

I've got gallery 1.3.3, installed and working as a module in nuke 6.5 (using php 4.3.1). In order to complete the nuke integration I used the updated DB files from this site (worked like a charm). I downloaded the random photo block also and did the following:

-edited the Gallery_Basedir, Album_Basedir, Server_Addr, and chose Random in block-random.php.

-edited Gallery_Basedir in random_support.php

Uploaded those files, added the block in the nuke admin. At this point I got a few file open errors when trying to load the page. So, I hand create the block-random.cache it was looking for, chmod that file and directory and the random photo works.

Here is the kicker. Although the random photo appears to work, I still am getting an error:
Code: ›
Warning: Invalid argument supplied for foreach() in /home/timlowe/public_html/gallery/session.php on line 55


Now, this file is a part of the gallery install and the line referenced is in the section for:
Code: ›
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
    foreach($HTTP_SESSION_VARS as $key => $value) {
        eval("\$$key = & \$HTTP_SESSION_VARS[\"$key\"];");
    }
}


Any ideas on how I can get rid of this error? If you'd like to see the webpage go to http://www.tjee.org

--Tim
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Random Photo Error  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Sun Apr 20, 2003 8:53 am    Post subject: Reply with quote

change $HTTP_SESSION_VARS to $_SESSION for both of those occurances in that section.
Back to top
Offline View user's profile Send private message Visit poster's website
Hadron

Beginner
Beginner


Joined: Apr 17, 2003
Posts: 2

PostPosted: Sun Apr 20, 2003 11:15 am    Post subject: Reply with quote

Worked.. Thanks. Very Happy

--Tim
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

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