• Resolved vijayrajesh

    (@vijayrajesh)


    Hi,

    Here is my server config,

    ==============================
    Operating System : Linux (32 Bit)
    Server : Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
    Memory usage : 12.67 MByte
    MYSQL Version : 5.5.34-cll
    SQL Mode : Not set
    PHP Version : 5.4.23
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 128
    PHP Max Upload Size : 64M
    PHP Max Post Size : 64M
    PCRE Backtracking Limit : 1000000
    PHP Max Script Execute Time : 1400s
    PHP Exif support : No
    PHP IPTC support : Yes
    PHP XML support : Yes
    Graphic Library

    GD Version : bundled (2.1.0 compatible)
    FreeType Support : No
    T1Lib Support : No
    GIF Read Support : Yes
    GIF Create Support : Yes
    JPEG Support : Yes
    PNG Support : Yes
    WBMP Support : Yes
    XPM Support : Yes
    XBM Support : Yes
    JIS-mapped Japanese Font Support : No
    ==================================

    I am not able to upload more than 2MB file in nextgen gallery.

    Please note that the following things are possible,

    1. I am able to upload 2 MB, 3 MB or even 6 MB of files in normal media upload of WordPress (Built in WordPress .

    2. But I am able to upload only 2 MB of files with “/wp-admin/admin.php?page=ngg_addgallery”

    3. When i upload a file that is more than 2MB or somewhat equal to 3MB, the error i am getting in popup is

    ======================
    There was a problem uploading the file.
    0 images were uploaded
    ======================

    http://wordpress.org/plugins/nextgen-gallery/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @vijayrajesh – Are you seeing this with single files, or uploads of multiple files of those sizes?

    – Cais.

    Thread Starter vijayrajesh

    (@vijayrajesh)

    Suppose if i am uploading multiple files of different size , one 2mb another 3 3mb, only 2mb file gets uploaded and the 3 mb file gives error.

    Plugin Contributor photocrati

    (@photocrati)

    @vijayrajesh – This is reading like a limitation in your server environment but I cannot see anything in the details you have already provided.

    Would you be able to send us a Bug Report (http://www.nextgen-gallery.com/report-bug/ … please reference this topic) so we can get a closer look.

    We will need log in and FTP credentials to your WordPress installation as well, please include those with the Bug Report, too.

    Thanks!

    – Cais.

    Thread Starter vijayrajesh

    (@vijayrajesh)

    Dear Cais,

    I am not sure whether it is a server config issue.

    Because, the same 3mb file uploads very fine with internal built in Wp media upload.

    Any idea please,

    Plugin Contributor photocrati

    (@photocrati)

    @vijayrajesh – It may not be server related, but NextGEN does not have any size limiting functionality.

    As much as I doubt it, have you checked to see if this is a plugin conflict?

    – Cais.

    Thread Starter vijayrajesh

    (@vijayrajesh)

    Dear Cais,

    It is a very very fresh install, No additional plugins at all. Just a fresh install with nextgen plugin.

    Thank you for your real quick replies,

    Plugin Contributor photocrati

    (@photocrati)

    @vijayrajesh – You are still more than welcome to submit a Bug Report with the details of your site so we can look further into this. I cannot think of any other troubleshooting we can attempt second-hand.

    Thanks.

    – Cais.

    Thread Starter vijayrajesh

    (@vijayrajesh)

    Dear Cais,

    Ok , I understand, I shall make myself ready with other information and get back to you,

    Thread Starter vijayrajesh

    (@vijayrajesh)

    Good News,

    The problem is solved now.

    Well, first I had added a custom php.ini with the following content in /wp-admin/ section only.

    ====================
    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 1400
    ====================

    Because, the upload is happening in admin only, I added the php.ini in wp-admin folder, so any file under it can have the features of new php.ini

    Later, I found that Nextgen uses ajax based uploads and the ajax refers root of the site, so i thought i should add php.ini in the root too,

    I uploaded to root and great , it worked 🙂

    I am now able to upload even 12 MB of files,

    I hope it helps others too,

    (One question is still in me “Then, how WordPress built in upload can manage 12 MB file uploads without php.ini”. IMO, I think Nextgen checks php.ini value before uploads, But WP built in not checks that, not sure though, this is just my thinking),

    Thank you all and thank you Cais for the wonderful plugin,

    Plugin Contributor photocrati

    (@photocrati)

    @vijayrajesh – Thanks for the update!

    I’m glad everything is working well for you now.

    (I don’t have an answer for the difference between how the Media Library and NextGEN Gallery handle uploads but I am looking into it.)

    – Cais.

    Can someone explain the fix a bit more in detail. I am having the same issue as well. I am using a theme. Where can I find the folders, and do i need to add that to an existing file or make one with a specific name?

    Thread Starter vijayrajesh

    (@vijayrajesh)

    @findlay customs, Please note that custom php.ini may not be get supported by all hosts.

    However, You can try. Yes, you need to create file with name php.ini

    Suppose if there is already php.ini there in root of the site, just add the content that i have pasted on top,

    Thank you,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Not able to upload image files more than 2 MB’ is closed to new replies.