WP-SimpleViewer » How-to and Troubleshooting

Hanging when creating gallery files

(10 posts)

Tags:


  1. dart
    Member

    The specific text on the screen when it hangs reads:

    GD library version 2 or later is required. You are running version: bundled (2.0.34 compatible)

    Now the images and XML file for the selected folder will be created:

    Now I am working on file IMG_0505.jpg:

    I'm running WP 2.2 with plugin v0.5.4. Everything seemed to work fine, I was able to change the directory under the options tab to "files/pics" but then when trying to manage the gallery, I ran into problems. Intitially I thought that maybe this was due to permissions so I did CHMOD 777 on all parent directories of the gallery, but no luck. I saw a couple of other people with a similar error message but it seems that was due to a versioning issue of GB lib which does not affect me. I'm stuck, any help you have would be greatly appreciated.

    Posted 3 years ago #
  2. You can try to upload smaller pictures to resize - if it works with small pictures but not with large ones that is related to the php memory settings, see this thread, too: http://wp-simpleviewer.fuggi82.de/topic.php?id=27&page&replies=4

    There is nothing I can do, maybe asking your provider might help or if you have the possibility to change the settings yourself, you can try this.

    Posted 3 years ago #
  3. You can also try this, maybe that it will help you:

    Open the plugin's php file and search for the line
    foreach($files_array as $filename_without_directory).

    Above this line you add a new line were you set a new value as memory_limit. With my provider I have 40M and I have no problem to create the thumbs, but I think that also smaller values should be fine, you have to test it out yourself. Then it should look like:

    } else {
    ini_set("memory_limit","40M");
    foreach($files_array as $filename_without_directory) {

    Where 40M is your new value. However this won't work if you have php's safe_mode enabled.

    Let me know if one helped you with your problem!

    Posted 3 years ago #
  4. dart
    Member

    Thanks Markus, I was able to use the fix to augment the memory limit. Looking forward to other versions / updates; this is a great plugin. BTW, I made an edit so that I can use a transparent background which I'm sure you have though of but it might be nice to add as a feature. Thanks.

    Posted 3 years ago #
  5. That's good - some others already had this error now now there is a workarround for it.

    Hmm...actually I did not think about adding a transparent background yet - how did you do it, I could not find an option for that?

    Posted 3 years ago #
  6. dart
    Member

    Sorry, didn't see your reply until today. What I did was add a parameter to the flash object in the script in wp-simpleviewer.php:

    fo.addParam("wmode", "transparent");

    Worked like a charm, the simpleviewer just sits on top of my background now.

    Posted 3 years ago #
  7. Thanks, looks like an interessting feature for the next version, thanks!

    Posted 3 years ago #
  8. Help!!!!

    The program hangs while creating the files, the last lines read:

    Now I am working on file XXX.JPG:
    I have created the regular image and the thumbnail and now it has been added to the XML file!
    Now I am working on file XXX.JPG:
    I have created the regular image

    I am trying to create 32M worth of pictures (300 pics to be exact) I had created the SimpleViewer my self with picasa and it worked fine, but not with this plugin (which I think is awesome, by the way).

    What do you think is happening? Any ideas?
    If this has something to do with PHP safe mode, how do I disable that?

    Thank you!

    Posted 2 years ago #
  9. Safemode is a php variable that ahs to be disabled on your webserver, nothing you can do inside a php script.
    Did you try to increase the memory_limit as described in the FAQ? Otherwise I have no idea what could cause this...
    http://wp-simpleviewer.fuggi82.de/topic/faq-or-how-to-use-the-plugin

    Posted 2 years ago #
  10. Markus, I did change the memory limit but it did not help, I will contact my webserver provider to see if they can change this. Thank you though

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.