• This error has only started in the last few days. Everything worked perfectly up until then. As far as I know nothing has changed, this is why I am confused.

    When I go to upload images (already compressed to 800×600) I get a failure notice BUT the images are actually uploaded and the thumbnails are created. I don’t know why I get the failure notice though. The site is a clients site so having failure notices appearing is obviously not ideal.

    So any idea what is going on here?

    Thanks!

    My server stats are

    * Operating System : Linux
        * Server : Apache/2.2.3 (CentOS)
        * Memory usage : 11.85 MByte
        * MYSQL Version : 5.0.45
        * SQL Mode : Not set
        * PHP Version : 5.2.9
        * PHP Safe Mode : Off
        * PHP Allow URL fopen : On
        * PHP Memory Limit : 96M
        * PHP Max Upload Size : 2M
        * PHP Max Post Size : 8M
        * PHP Max Script Execute Time : 30s
        * PHP Exif support : Yes ( V1.4 )
        * PHP IPTC support : Yes
        * PHP XML support : Yes

Viewing 15 replies - 1 through 15 (of 25 total)
  • I am having the same problem, is it a server configuration problem as it worked fine on the old server I just brought it over from, but can not figure out what it could be!

    Any help would be great.

    Narrowed it down to it not being able to create a thumbnail, the larger image is there, all folders have correct permissions.

    All seems to be good.

    If anyone can help, here is a link to my phpinfo()

    I had this problem when developing with

    • WordPress MU 2.8.4
    • using NextGen Gallery 1.3.5.

    The problem was occuring due to some extra invisible characters being tacked on to the msg variable in the run function of the ngg.ajax.js file.

    To make this work properly, I added parseInt to the switch statement parameter like so…

    Approximately Line 30 of ngg.ajax.js


    success: function(msg){
    switch (parseInt(msg)) {
    case -1:

    ....

    Don't forget to remove the double quotes from the case statements!

    If this fix worked for you, please let me know.
    I know it drove me nutz.

    Sounds like a good solution… I will change that in my code

    i changed the code (as suggested above) and i’m still getting the same “A failure occured” error messages.

    Can’t seem to upload more than 40 or so images into a single gallery without this error popping up.

    love this plugin, but this error is really hurting its effectiveness atm.

    thanks for any help, in advance

    Hi boilr,

    When you click on the [more] link, does it show up as ‘1’?

    @ shawnkltucker:

    no “1” – instead i get:

    [more]
    [object XMLHttpRequest]

    when i mouseover [more] that is what shows up. nothing actually clicks thru

    strange cause i never had any issues until the latest release. not sure if its NGG and/or some issue with 2.8.4

    I am seeing similar issues on some but not most images I try to upload.

    I originally thought it was because images I was trying to upload were very large, but my upload_max_filesize PHP setting is 100M, so that couldn’t be it, right? Or since I’m working with Flash, does it have its own built-in filesize limit?

    Hi boilr,

    My fix is for a separate issue.

    Going on stevemagruder’s comment, try adjusting you php memory limit.
    In general, the memory limit should at least be twice the size of the max upload file size.

    Also strange things happen when scripts time out. Try adjusting the max execution time in your php.ini. I think the default is 30 seconds, so try pumping it up to 120 seconds.

    Please let me know if it works.

    I having this problem as well.

    The javascript fix doesn’t seem to help. I have pumped the memory limit and timeout numbers on the PHP side (even though no error is being reported in the server logs). I’ve tried multiple browsers, multiple versions. I’ve deactivated every plugin on the site except for this one. I’ve uninstalled and reinstalled the plugin.

    Would love to see a real solution to this, if someone has one.

    I’m also having this issue. its driving me insane. The images upload fine, but when it tries to create the thumbnail i get “an error has occured” with no explanation.

    I’d like to try shawnkltucker’s fix, but im not sure where to add this code. if this help here is my server info….

    * Operating System : Linux
    * Server : Apache
    * Memory usage : 11.61 MByte
    * MYSQL Version : 5.0.81-log
    * SQL Mode : Not set
    * PHP Version : 4.4.9
    * PHP Safe Mode : Off
    * PHP Allow URL fopen : On
    * PHP Memory Limit : 40M
    * PHP Max Upload Size : 20M
    * PHP Max Post Size : 8M
    * PHP Max Script Execute Time : 50000s
    * PHP Exif support : Yes ( V1.4 )
    * PHP IPTC support : Yes
    * PHP XML support : Yes

    Any help would be greatly appreciated!

    Hi,
    my ngg.js does not show any line with function(msg) so where should I put it? (You mean the ngg.js in the plugin/nextgen-gallery/js/ directory, don’t you?)

    Betriebssystem : Linux
    Server : Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-22 mod_ssl/2.0.54 OpenSSL/0.9.7e
    Speicherverbrauch : 4.05 MByte
    MySQL Version : 4.1.11-Debian_4sarge8
    SQL Modus : Nicht gesetzt
    PHP Version : 4.3.10-22
    PHP Safe Mode : Aus
    PHP Allow URL fopen : Aus
    PHP Memory Limit : 32M
    PHP Max Upload Gr??e : 20M
    PHP Max Post Gr??e : 14M
    PHP Max Script Execute Time : 30s
    PHP Exif Modul : Ja ( V1.4 )
    PHP IPTC Modul : Ja
    PHP XML Modul : Ja

    WP 2.8.4
    NextGEN Version 1.3.6 DE-Edition

    (my German Server-stats, although it really sounds like a msg-problem, as thumbnails are created correctly, and it just gives the error-explanition “1” when I click on “more”..

    Sorry… the file was plugin/nextgen-gallery/admin/js/ngg.ajax.js

    But I still have the problem, the file looks like this on these lines now:

    success: function(msg){
    			   		switch (parseInt(msg)) {
    			   			case -1:
    					   		nggProgressBar.addNote( nggAjax.settings.permission );
    						break;
    			   			case "0":
    					   		nggProgressBar.addNote( nggAjax.settings.error );

    Why do I remove the doubledashes for the -1 statement for case?

    A client of mine is receiving the same error as boilr.

    [more]
    [object XMLHttpRequest]

    Happens each time he tries to upload a new image. What’s strange is that when I try I don’t receive the error. He’s on a Mac, I’m on a PC. Would that make a difference? I also noticed that the images upload but the thumbnails are missing.

    I’m at a lost as to what to do.

    Odd that the error appears only for some.
    Could be a browser compatability issue.
    Since javascript is implemented differently in different browsers, and Ajax uses java script to function.

    For those of you that receive the error, what browser version and OS are you using?

    I have successfully used IE8 and Firefox 3.5

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘[Plugin: NextGEN Gallery] ID 675: A failure occurred [more] 1’ is closed to new replies.