News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Media Gallery (SMG) - 2.0.5 is out! (December 2)

Started by SMGTeam, September 09, 2008, 03:14:05 PM

Previous topic - Next topic

DirtRider

Quote from: Nao/Gilles on November 30, 2009, 06:29:03 AM
mod_security > I think it's fixed in SMG 2.0.4 anyway... (?)
Does single form upload work for that particular file?
Mr. Error log, what say you?

I was having it happen on 2.0.4 so I enabled the error log in the gallery to see what it was doing and the problem went away  :P  So I don't know if by enabling error log it did something  ;D
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

Nao 尚

Paracelsus, I'll need FTP access and an admin account to your board (as well as its URL). Please provide them by PM.

DirtRider, I don't think so ;)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

russ skinner

Quote from: Nao/Gilles on November 30, 2009, 06:29:03 AM
mod_security > I think it's fixed in SMG 2.0.4 anyway... (?)
Does single form upload work for that particular file?
Mr. Error log, what say you?

Single file upload for that file is no problem.

Not sure if this is required, but I have enabled log access errors in the security settings menu, attempted another mass upload and neither the forum maintenance error log or the error log in the forum root directory are flagging any errors?

Vyache

#5243
I'm having an issue with mass upload and single upload, I wrote up .htaccess file and put it into my root, but I cannot upload my images. I get blanks....

I have the same type of file in my root of my root site...

This is my .htaccess code:

  1  RewriteEngine on
  2   
  3
  4 <IfModule mod_security.c>
  5    # Turn off mod_security filtering.  SMF is a big boy, it doesn't need its hands held.
  6    SecFilterEngine Off
  7
  8    # The below probably isn't needed, but better safe than sorry.
  9    SecFilterScanPOST Off
10 </IfModule>



I'm willing to provide temporary ftp access...

AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

Nao 尚

@russ> I'll need FTP access and an admin account to your forum to look into it.

@vyache> Same, + phpmyadmin.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

perplexed

The link for dragoon's plugin on the mod page doesn't work "page not found" and I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

So I can't go any further with either of them.

Since they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?

thanks

Arantor

Any mods on the SMF site have to be given away for free, but I don't know about the other issues.
Holder of controversial views, all of which my own.


DirtRider

Quote from: quiteperplexed on December 01, 2009, 05:55:35 AM
The link for dragoon's plugin on the mod page doesn't work "page not found" and I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

So I can't go any further with either of them.

Since they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?

thanks

Firstly you need to register on the site and then you will be able to purchase Foxy. Best ad on I have ever purchased made my gallery complete, love it
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

russ skinner

Quote from: Nao/Gilles on December 01, 2009, 05:15:20 AM
@russ> I'll need FTP access and an admin account to your forum to look into it.

@vyache> Same, + phpmyadmin.

PM sent.

Nao 尚

Quote from: quiteperplexed on December 01, 2009, 05:55:35 AM
I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:
Sorry, I should have specified that the link requires you to be logged into the website.
The topic is locked because it's not a support topic.

QuoteSince they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?
SMF mod site = free mods
It doesn't mean that something not hosted on SM.org is not written with the same quality level ;)
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Nao 尚

Quote from: russ skinner on December 01, 2009, 09:43:42 AM
Quote from: Nao/Gilles on December 01, 2009, 05:15:20 AM
@russ> I'll need FTP access and an admin account to your forum to look into it.

@vyache> Same, + phpmyadmin.

PM sent.
Okay, here it is...
When going through single form upload, it works. Using mass upload, it fails.
I used Wireshark (overkill!) to get the error message.
Turns out the server sends back this error code to the upload Flash file (which in turns sends me back a less detailed error report):

<TITLE>406 Not Acceptable</TITLE>
Not Acceptable
An appropriate representation of the requested resource /forum/index.php could not be found on this server.
Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.

To me, this sounds very much like mod_security crap... But it *does* seem to be disabled. More precisely, the ;id= filter is off. It doesn't mean mod_security is not present or not enabled -- it just means SMG can achieve normal behavior without issues. But it's very possible that mod_security is enabled and has some specific filter that I'm not aware of. :(

Any ideas?

PS: I've used the opportunity to look into the YUI documentation and found a way to retrieve errors from the Flash uploader. I'm so excited about this that I'll probably put the feature into the next SMG 2.0.x, even though it's feature-frozen.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

russ skinner

Quote from: Nao/Gilles on December 01, 2009, 02:10:21 PM

To me, this sounds very much like mod_security crap... But it *does* seem to be disabled. More precisely, the ;id= filter is off. It doesn't mean mod_security is not present or not enabled -- it just means SMG can achieve normal behavior without issues. But it's very possible that mod_security is enabled and has some specific filter that I'm not aware of. :(

Any ideas?


Sorry no ideas, but many thanks for checking this out.

As the specific filter cannot be identified , can this problem be resolved be disabling mod security with a .htaccess file.




perplexed

Quote from: Nao/Gilles on December 01, 2009, 09:57:11 AM
Quote from: quiteperplexed on December 01, 2009, 05:55:35 AM
I went to the Foxy site to look at that plugin and that looks very good btw, but the thread is locked and the link to buy takes you to a page that says:
Sorry, I should have specified that the link requires you to be logged into the website.
The topic is locked because it's not a support topic.

QuoteSince they are not available for download on the Mod page does that mean they are not approved by SMF or just because you have to pay for them?
SMF mod site = free mods
It doesn't mean that something not hosted on SM.org is not written with the same quality level ;)

ah excellent.  I'll try to do that tomorrow

Nao 尚

Quote from: russ skinner on December 01, 2009, 04:40:44 PM
Sorry no ideas, but many thanks for checking this out.

As the specific filter cannot be identified , can this problem be resolved be disabling mod security with a .htaccess file.
Very oddly -- yes.
I tried it earlier and couldn't get it to work.
Then I went back from dinner and decided I would try to put it in your forum's root instead of your Themes/default/mgallery folder. And guess what, it worked!
Apparently, it needs to be in the same folder as your INDEX.PHP files, rather than the upload Flash file (which is in mgallery). I never thought of that.
I used to have that mention in the readme file saying to add the dreaded two lines in the root's htaccess, then I decided to drop it and instead provide a readymade htaccess for mgallery, thinking it would work. It didn't.

Anyway...
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

Vyache

#5254
Quote from: Nao/Gilles on December 01, 2009, 05:18:03 PM
Quote from: russ skinner on December 01, 2009, 04:40:44 PM
Sorry no ideas, but many thanks for checking this out.

As the specific filter cannot be identified , can this problem be resolved be disabling mod security with a .htaccess file.
Very oddly -- yes.
I tried it earlier and couldn't get it to work.
Then I went back from dinner and decided I would try to put it in your forum's root instead of your Themes/default/mgallery folder. And guess what, it worked!
Apparently, it needs to be in the same folder as your INDEX.PHP files, rather than the upload Flash file (which is in mgallery). I never thought of that.
I used to have that mention in the readme file saying to add the dreaded two lines in the root's htaccess, then I decided to drop it and instead provide a readymade htaccess for mgallery, thinking it would work. It didn't.

Anyway...

Hmm,

This doesn't seem to work in my case. I moved the file from mgallery dir and placed it in the root dir of my network...

What could it be then.


AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

Vyache

Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.

AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

DirtRider

Quote from: Vyache on December 02, 2009, 12:00:29 AM
Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.

My one is set to 755 and it seems to work but I did have issue that seemed to just go away. Should I change my permission to 777 just in case?
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

Vyache

Quote from: DirtRider on December 02, 2009, 12:42:08 AM
Quote from: Vyache on December 02, 2009, 12:00:29 AM
Finally solved, the problem was with mgal_data/tmp, it needs to be set to 777 to work. For some perverted reason it wasn't...
Thank You for the help.

My one is set to 755 and it seems to work but I did have issue that seemed to just go away. Should I change my permission to 777 just in case?

Well if I understand currently, tmp holds something for a short time and then copies it to the database. Maybe if it doesn't have full access it might not work.

However, I think you should wait till Nao see this... It might of solved my problem, I don't want to create one for you...

AjaxChat - SMF 2.0 RC2 Edition Download.
mrtrc266 ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~

DirtRider

Well I change it to see what happens and it still works but I may be mistaken it seems to now upload without stopping for a short time during the upload.
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

SMGTeam

DirtRider, if it ain't broken, don't fix it. :) 0755 for folders and 0644 for files is just fine.

SMG 2.0.5 is out!

Version 2.0.5                                    December 2, 2009
-----------------------------------------------------------------
! Fixed list of allowed document extensions to remove any extension from other
  allowed filetypes (previously, this would break images from showing a preview.)
+ Added error handler for the Flash uploader tool. Previously, errors were
  only caught after the tool had handed control back to Javascript.
! Fixed placement of the first item in the mass upload file list
! Fixed broken album creation page layout in SMF2

Advertisement: