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  

Problem w/ php.ini & global variables

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

Beginner
Beginner


Joined: Apr 15, 2003
Posts: 3

PostPosted: Sun Apr 20, 2003 10:31 pm    Post subject: Problem w/ php.ini & global variables Reply with quote

This is a great block. Working just fine except I get the following error:

Quote: ›
Warning: extract() expects first argument to be an array in init.php on line 60

Warning: extract() expects first argument to be an array in init.php on line 61

Warning: extract() expects first argument to be an array in init.php on line 62

Warning: Invalid argument supplied for foreach() in init.php on line 64


I following is from the init.php file from the Gallery module:

Quote: ›
if (!$gallery->register_globals) {
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);

foreach($HTTP_POST_FILES as $key => $value) {
${$key."_name"} = $value["name"];
${$key."_size"} = $value["size"];
${$key."_type"} = $value["type"];
${$key} = $value["tmp_name"];
}
}


I assume the global variables have to be updated but I'm not sure in which php file.
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Problem w/ php.ini & global variables  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Mon Apr 21, 2003 5:39 am    Post subject: Reply with quote

this is a gallery issue, not a random block issue. but, try to change the $HTTP_XXX_VARS to just $_XXX on those lines. This is an issue with Gallery and PHP 4.3+
Back to top
Offline View user's profile Send private message Visit poster's website
robadawb

Beginner
Beginner


Joined: Apr 15, 2003
Posts: 3

PostPosted: Mon Apr 21, 2003 3:53 pm    Post subject: Reply with quote

Yep, that fixed it. Thanks for the help!
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 » Gallery 1 Integration 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