News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

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

Nao 尚

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.

thatguy

The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

Nao 尚

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.

thatguy

Quote from: Nao 尚 on June 16, 2009, 07:55:11 PM
Google. Upload-related variables.

OK but where is the ini file for smg located?

Thanks
The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

thatguy

So, I get where your coming from. I have to install PHP 5 in CPanel?

Thanks
The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

thatguy

Quote from: LinK187 on April 30, 2009, 07:12:59 AM
Quote from: Atheo on April 30, 2009, 02:05:09 AM
you have to get into your phpconfig on cpanel, select PHP5 (Single php.ini), then check the two boxes below that area and then click "install php.ini master file"

navigate to that file and you will find settings that need adjusted

Code (find) Select
; Maximum size of POST data that PHP will accept.
post_max_size =64M


Code (replace) Select
; Maximum size of POST data that PHP will accept.
post_max_size = xxxM


Where xxx is at least double what you have.

Code (find) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 64M


Code (replace) Select
; Maximum allowed size for uploaded files.
upload_max_filesize = 128M

Consider the size of your files for this amount.

There is also a variable in the gallery "settings" area that reads "Max file size (KB)"
I changed this amount too to a very large number and all is well.

This seems to be a common error that nobody is looking at or helping with.

Good luck!

Even if Nao were awake he would have ignored you due to the answer being posted several times. Also in addition to adjusting the max file size variables. You will also have to change the max upload time and max execution time. Otherwise the value of the max upload size will be irrelevant.

As well with php 5, all folders must be 755 and all files must be 644.

Unfortunately I do not have the option to configure PHP 5, all I can do is turn it on or off.  Here is the php.ini file that I found. I don't have any of the options mentioned in that post though, like I said on or off, that's all.

register_global = Off

[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.6
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.6
zend_optimizer.version=3.2.6
zend_extension = /usr/local/ioncube/ioncube_loader_lin_4.4.so

zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

Thank you once again for your replies.
The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

Özgür

If you don't have any server or VPS, so you don't have directly access php.ini. So if you don't have access, you an try httaccess solution.
Open your main .htaccess file, and add this

php_value post_max_size 8M
php_value upload_max_filesize 8M
if don't work, you must say this issue to your host provider.
So Long

thatguy

Quote from: [Daydreamer] on June 16, 2009, 09:29:37 PM
If you don't have any server or VPS, so you don't have directly access php.ini. So if you don't have access, you an try httaccess solution.
Open your main .htaccess file, and add this

php_value post_max_size 8M
php_value upload_max_filesize 8M
if don't work, you must say this issue to your host provider.

This is what what I was told when I enabled PHP 5.

Warning: If you have any custom .htaccess content, it will no longer work and you will have to re-add the content. The content will be backed up to a timestamped .htaccess file if you required any content from it.

If you use FrontPage extensions, they will cease to function as they add content to your .htaccess file which will be renamed.


Will this conflict with anything you mentioned to me in your post?

Thanks once again for everyone's help.
The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

thatguy

Good morning. I edited the PHP.ini file and they told me in addition to that, to create a custom htaccess file with this info in it: suPHP_ConfigPath_/home/username/public_html/ with the "username" field being replaced by my cpanel user name. When I did that it took my site down with:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Once I deleted that file, the site came right back but with editing the PHP ini file I still can't upload files larger then 1 MB.

I am sorry to dominate the discussion here, it is not my intention to do that. I have been doing the things that everyone was nice enough to suggest and I appreciate it. I have included some screen shots of my SMF gallery settings, to see if I have something misconfigured.

The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

thatguy

Done! It works! I'll not darken the doorstep of this topic for some time!

Thanks to everyone for the helpful tips
The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

Nao 尚

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.

thatguy

Quote from: Nao 尚 on June 17, 2009, 09:57:26 AM
So, what was the problem?

The problem was directly related to the php.ini file, as was mentioned here by you and others. I did what was suggested here and edited that file but there was also a php info file that needed to be created that probably was mentioned to me but I overlooked it. Also, my syntax was wrong in editing the php.ini. It was also suggested that I create an htaccess file but when I did that it took the website down.

Uploading single files works fine now, no matter the size, I just have to figure out why I can't upload mass files.

I willingly admit I am not a coder by any means but I can usually follow directions when given them and make things work given a reference point to go by. So it made no sense to me why the suggestions mentioned here worked for others but not for me. This is an extremely useful mod and I am glad I have it working on my site.

Thanks again for all the help. Hopefully, you won't hear from me for a while since I dominated the topic here for a bit. LoL
The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

redsc

Hello.

I have installed the Gallery Mod some time back I uninstalled it and said uninstalled sucsefual and moved from my forum.

How ever in members permissions you can still controll the permissions.

Im getting arround 15000 error logs a day and ive been told that its due to this MOD.

Please can you help ?

JUst some of the error logs are here.

http://www.simplemachines.org/community/index.php?topic=318321.msg2115927#msg2115927

please can someone help to resolve the problem.

thanks.

thatguy

How can I specify the video size in the gallery page? For example, I uploaded a video that was 1920x1080. It works fine but I wanted to have it sized in the page to something like 800x600 or 640x480 so that it wouldn't break the template. I don't know if it is specified in the php.ini file or index.html or index.php. I am using SMF 1.19 and Simple Media Gallery.

Also, will the scaled video keep its aspect ratio?

Thank You.
The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

scvoyager

You need to resize the video before you install it. Here is a free converter that I use. http://www.any-video-converter.com/products/for_video_free/ [nofollow]

scvoyager

I'm having a problem with installing gallery icon pictures and also icons for videos. Has anyone else come across this problem?

In future releases is their going to be a batch upload system like SMF Pro in were we can ftp a file to the server and then do a upload from the gallery? This works well with Pro and gets around the problems of php.ini limits.

radioninty

Hi

I'm running SMF 1.1.9 with TP 1b4.

I've tried installing SMF Media Gallery 1.5.6, it installed fine, however whenever I try and do anything within the gallery I get this error message -

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.


Any ideas?

Thanks in advance.

thatguy

The statements above have not been evaluated by the Food and Drug Administration.
These statements are not intended to diagnose, treat, cure or prevent any disease.

rolltidega

I am trying to get the menu option along the top to show up in the PS-Black theme.  The gallery is working but I cannot figure out how to get the Gallery option to show up properly along the top menu bar using the same fonts and such that the PS-Black theme uses.  Has anyone set this up?  Any help would be great!  Thanks....

nopity4u

Quote from: rolltidega on June 22, 2009, 08:23:18 AM
I am trying to get the menu option along the top to show up in the PS-Black theme.  The gallery is working but I cannot figure out how to get the Gallery option to show up properly along the top menu bar using the same fonts and such that the PS-Black theme uses.  Has anyone set this up?  Any help would be great!  Thanks....

Here is an index.template.php with the menu item inserted. This assumes you haven't done any other edits to your index.template.php file.
Since I'm not a coder (And you should do it regardless) backup any files you replace.


Advertisement: