WordPress.org

Forums

[Plugin: NextGEN Gallery] ID 675: A failure occurred [more] 1 (26 posts)

  1. deanes02
    Member
    Posted 6 years ago #

    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 800x600) 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
  2. brettreilly
    Member
    Posted 6 years ago #

    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.

  3. brettreilly
    Member
    Posted 6 years ago #

    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()

  4. shawnkltucker
    Member
    Posted 6 years ago #

    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.

  5. Alex Rabe
    Member
    Posted 6 years ago #

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

  6. boilr
    Member
    Posted 6 years ago #

    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

  7. shawnkltucker
    Member
    Posted 6 years ago #

    Hi boilr,

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

  8. boilr
    Member
    Posted 6 years ago #

    @ 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

  9. stevemagruder
    Member
    Posted 6 years ago #

    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?

  10. shawnkltucker
    Member
    Posted 6 years ago #

    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.

  11. mwisconsin
    Member
    Posted 6 years ago #

    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.

  12. xideizm
    Member
    Posted 5 years ago #

    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!

  13. Llasse
    Member
    Posted 5 years ago #

    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"..

  14. Llasse
    Member
    Posted 5 years ago #

    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?

  15. myaleigh
    Member
    Posted 5 years ago #

    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.

  16. shawnkltucker
    Member
    Posted 5 years ago #

    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

  17. Llasse
    Member
    Posted 5 years ago #

    Google Chrome 3.0.195 and Firefox (although I don't know the version here) have produced the error for me and a colleague using it on his computer..

  18. tomfoley
    Member
    Posted 5 years ago #

    I have the same issue. I have several images in a gallery and they display fine. It's only the thumbnails that are not being generated.

    When I manage a gallery, I can select an image and set the action to generate thumbnail. The ID 4 error then occurs and no thumb is generated. I don't think it's a browser issue as I've seen it in Chrome, Firefox, Flock and IE (all latest versions).

    It appears to be a server problem.

  19. Llasse
    Member
    Posted 5 years ago #

    I have installed the exact same NextGEN Files on another server, but don't get the error there.. it must be a server error, but how can I fix it?

  20. raghunathi
    Member
    Posted 5 years ago #

    I had similar errors like many. I am new to WP/NextGen. I installed WP 2.8.4 and NextGen 1.3.5. When I created galleries (imported images), the thumbnails would get created correctly BUT I will always get an error for each thumbnail with a ID and text saying "a failure occurred" and more below. Mouse over more would show character 1. Shawnkltucker's solution which Alex said was a good change, solved my problem. Initially though I thought it did not solve because I kept seeing the same issue. However one day later the problem was indeed solved. Looks like we ALSO need to clear browser cache. I used Firefox 3.0.6 on XP-SP3. Before trying Shawkltucker's suggestion I had tried increasing PHP memory to 96MB - no luck. My images are between 50K and 150K. I even took packet captures and the packet captures showed response to the Ajax call returning just a Hex byte 31. Still Shawnkltucker's suggestion has worked for me.

    To Llase: You must remove the "" from all the case statements.

    I have two more problems to fix - cannot edit thumbnails. And cannot see alt/description text when I mouse over slideshows.

    Thanks Alex for a nice plugin.

  21. shawnkltucker
    Member
    Posted 5 years ago #

    Hi raghunathi,

    I'm glad to hear the solution worked for you.
    Yes, sometimes you need to force the cache to clear. Some browsers like to cache javascript.

    I've chased my own tail a few times on that.

  22. ballyhoo
    Member
    Posted 5 years ago #

    hi shawnkltucker & raghunathi

    thanks for the advice, but all these tryouts do not help to solve the problem..
    I have been searching in lots of fora now, a lot of people have problems with it.;

    It is not a server problem (safe mode = off) and it worked on the same server with another directory/location.

    js change etc..

    Can anyone help please?
    di

  23. abidan54
    Member
    Posted 5 years ago #

    I think this is because the image is just too big and it has problems creating the thumnails. I simply made my images smaller in photoshop then uploaded again and thumbnail created with no error. try testing by making image smaller by at least half then upload it again and i bet it work!

    Hope this helps :)

  24. rounak
    Member
    Posted 5 years ago #

    why don't this plugin author helps?
    i am having same issue and i am not able to get a solution

  25. TGMaster
    Member
    Posted 5 years ago #

    I also was getting this error for large images. Simple fix is to add the following to wp-config.php:
    define('WP_MEMORY_LIMIT', '96M');

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    After this, I was able to batch process creating thumbnails for 10 images all 2560x1440 pixels in size.

  26. brian317
    Member
    Posted 5 years ago #

    I'm dying here from something very simliar.

    Tried 4 browsers, tried changing the memory limit code in the plugin.

    There are no errors or messages except "0 picture(s) successfully added" after the upload, and I do get the large file but it does not generate a thumbnail. The gallery manager will not show the images because there is no thumbnail, and the pages do not display them either, but the FTP backend shows the large file does upload. (small large files btw - 127kb)

    I've already re-upgraded wordpress and re-upgraded the plugin. This is a no-fun problem chewing at me!

    Any suggestions much appreciated

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.