SMFHacks.com

SMF Gallery Pro => Support => Topic started by: gofishont on March 19, 2009, 11:30:54 am

Title: new Gallery Pro installation issue
Post by: gofishont on March 19, 2009, 11:30:54 am
Hi, I just purchased and installed the gallery pro.. it all went smooth and seems to work great with one exception..

After pictures are uploaded, I See the thumbnail, but when I click for full size, I get the 501/505 error
"The website is unable to display the webpage"

Any thoughts to the issue?

(I'm running SMF20RC1)

regards, Mike.
Title: Re: new Gallery Pro installation issue
Post by: SMFHacks on March 19, 2009, 06:54:23 pm
This is most likely a mod_security issue. Check out this post on simplemachines.org
www.simplemachines.org/community/index.php?topic=34270

If you are still having issues you can try contacting your host to disable mod_security for your site or I can give you some code to change.
Title: Re: new Gallery Pro installation issue
Post by: gofishont on March 19, 2009, 07:39:44 pm
ok I tried that, (appending the code to my .htaccess file) but it didnt seem to matter...

any other thoughts??

If I click on the thumbnail, the unapprove, edit or delete - I always get the same page can not be displayed message.
Title: Re: new Gallery Pro installation issue
Post by: gofishont on March 19, 2009, 11:07:26 pm
some more info that might be helpful... as per microsoft 501/505 errors for IE I turned off http settings and also turned off friendly error messages..

here's the output now:

Method Not Implemented
GET to /smf/index.php not supported.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


hopefully this helps :)
Title: Re: new Gallery Pro installation issue
Post by: SMFHacks on March 19, 2009, 11:47:16 pm
It is an issue with mod_security they do not like ;id= in the url for some reason

You can open Sources/Gallery2.php
Code: [Select]
;id=
And replace all with
Code: [Select]
&id=

And themes/default/Gallery2.template.php

Find
Code: [Select]
;id=
And replace all with
Code: [Select]
&id=
Title: Re: new Gallery Pro installation issue
Post by: gofishont on March 20, 2009, 12:24:08 am
that worked,, thank you so much!! now I can enjoy it. :)
Title: Re: new Gallery Pro installation issue
Post by: gofishont on March 20, 2009, 10:15:15 am
it's happening again on a user gallery.. is there another file I need to perform the edit on??
Title: Re: new Gallery Pro installation issue
Post by: SMFHacks on March 20, 2009, 07:08:13 pm
Yes I forgot also apply the same fix to
Themes/default/UserGallery2.template.php
And
Sources/UserGallery2.php
Title: Re: new Gallery Pro installation issue
Post by: gofishont on March 21, 2009, 12:50:43 am
ok thanks :)
Title: Re: new Gallery Pro installation issue
Post by: kevjkel on April 21, 2009, 08:55:34 am
It is an issue with mod_security they do not like ;id= in the url for some reason

You can open Sources/Gallery2.php
Code: [Select]
;id=
And replace all with
Code: [Select]
&id=

And themes/default/Gallery2.template.php

Find
Code: [Select]
;id=
And replace all with
Code: [Select]
&id=

I did this and it worked for when i wanted to create a new album in smf Media Gallery, but when i want to view a pic in an album i get this again:
Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


My host wont disable mod_security2 :( :(
Is there anything else i can do??
Title: Re: new Gallery Pro installation issue
Post by: SMFHacks on April 21, 2009, 06:51:01 pm
That code above should fix all issues as long as you do it in all the gallery files and do a find and replace all.
Title: Re: Rss Feed Poster
Post by: edgar80 on September 15, 2009, 12:43:17 pm
Hello,

I get the same error with rss feed poster.

I have smf 1.1.10
I added .htaccess

I get the error when I try to edit or delete a rss feed.

I'm able to add rss feeds but not edit or delete.

Thanks for your help,
Title: Re: new Gallery Pro installation issue
Post by: edgar80 on September 15, 2009, 12:59:13 pm
It is an issue with mod_security they do not like ;id= in the url for some reason

You can open Sources/Gallery2.php
Code: [Select]
;id=
And replace all with
Code: [Select]
&id=

And themes/default/Gallery2.template.php

Find
Code: [Select]
;id=
And replace all with
Code: [Select]
&id=

Hello,

Just to let you know that I resolved the problem by appling the same solution to : feedposter.template.php

;id ==> &id
;sa ==> &sa

Have a nice day,
Title: Re: new Gallery Pro installation issue
Post by: SMFHacks on September 15, 2009, 03:25:46 pm
Glad you got it working.