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

406 Not Acceptable Error, Please Help!

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

Beginner
Beginner


Joined: Jan 07, 2006
Posts: 7

PostPosted: Sun Jan 08, 2006 7:54 pm    Post subject: 406 Not Acceptable Error, Please Help! Reply with quote

Ok, here is the deal, you should be able to see the error here [talusiancell.net]

I've searched these forums and found only 1 other person who had this problem, i tried the solution listed here:

http://www.nukedgallery.net/postt2123.html [nukedgallery.net]

to no avail, changing that file and reuploading just messed EVERYTHING up. I dont have the rewrite module on because its recommended to have it deactivated.

I have the latest g2 and integration module installed with phpnuke 7.7 and everything works perfectly, users, permissions, adding photos, everything but this. When there are already photos in a particular album and a user wants to add more, they use the drop down menu i have set in the lower left of the screen with the album actions, or at least, thats what they WOULD do if it worked. Currently while using g2 through phpnuke, none of these options in the drop down menu work, doesnt matter who is logged in, but i get the same error for any option. (the error is linked above)

Note: the dropdown menu works as it should when viewing g2 in standalone mode, hence why my post is located here.

Now.. removing the g2_return from the url somewhat fixes the problem, it allows for action to take place, but apparantly g2_return is required to show thumnails because any that will be shown while that string is missing break.

I have not edited manually any files, but if you need anything posted, let me know. This problem is a thorn in my side right now, it needs to be fixed, and i welcome any help that can be given. Smile
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: 406 Not Acceptable Error, Please Help!  

Back to top
nakaron

Beginner
Beginner


Joined: Jan 07, 2006
Posts: 7

PostPosted: Sun Jan 08, 2006 11:39 pm    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

ok fixed the problem somewhat, i used the advice found here (the advice on the second page, first page suggestion didnt work at all):

http://www.nukedgallery.net/postt2109.html

and it allows for full integration, however, when i or my users try to view the fullsize images, they do not load properly, i copied the image location to a new window and it seems there are some header conflicts, ill post them here.

Code: ›
Warning: Cannot modify header information - headers already sent by (output started at /home/talusian/public_html/modules/gallery2/modules/core/classes/GalleryUrlGenerator.class:666) in /home/talusian/public_html/modules/gallery2/modules/core/DownloadItem.inc on line 127

Warning: Cannot modify header information - headers already sent by (output started at /home/talusian/public_html/modules/gallery2/modules/core/classes/GalleryUrlGenerator.class:666) in /home/talusian/public_html/modules/gallery2/modules/core/DownloadItem.inc on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/talusian/public_html/modules/gallery2/modules/core/classes/GalleryUrlGenerator.class:666) in /home/talusian/public_html/modules/gallery2/modules/core/DownloadItem.inc on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/talusian/public_html/modules/gallery2/modules/core/classes/GalleryUrlGenerator.class:666) in /home/talusian/public_html/modules/gallery2/modules/core/DownloadItem.inc on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/talusian/public_html/modules/gallery2/modules/core/classes/GalleryUrlGenerator.class:666) in /home/talusian/public_html/modules/gallery2/modules/core/DownloadItem.inc on line 134

and then all the binary image data is displayed in plain text under the error. any ideas?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Jan 09, 2006 8:14 am    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

is your version of g2 from CVS or the 2.0.2 install?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
nakaron

Beginner
Beginner


Joined: Jan 07, 2006
Posts: 7

PostPosted: Mon Jan 09, 2006 9:03 am    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

gallery-2.0.2-full.zip... the install.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Jan 09, 2006 9:11 am    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

does this appear when you try to view it standalone?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
nakaron

Beginner
Beginner


Joined: Jan 07, 2006
Posts: 7

PostPosted: Mon Jan 09, 2006 9:15 am    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

yes, that fix i did to the GalleryURLGenerator.class seems to have broken the ability to view any image of the gallery in full size whether viewing integrated or in standalone.
Back to top
Offline View user's profile Send private message
nakaron

Beginner
Beginner


Joined: Jan 07, 2006
Posts: 7

PostPosted: Mon Jan 09, 2006 10:01 am    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

bah, still cant fix it, thought i had it, but no luck.
Back to top
Offline View user's profile Send private message
nakaron

Beginner
Beginner


Joined: Jan 07, 2006
Posts: 7

PostPosted: Mon Jan 09, 2006 2:39 pm    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

seems like i need to add some sort of conditional to the line:
PHP: › <?php
if ($beingcalledtodisplayimage) {
return 
sprintf('%s://%s%s'$protocol$domain$path);
} else {
return 
sprintf(''$protocol$domain$path);
}
?>

that changes sprintf depending on where its being called from, i know the different formats, but not sure of the conditions, any help?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Jan 09, 2006 4:00 pm    Post subject: Re: 406 Not Acceptable Error, Please Help! Reply with quote

the url generator is being changed in 2.1, that might fix it. you might want to ask in the normal gallery forums, esp. if this is problematic for you when viewing it standalone as well.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 2 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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th 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