• Resolved stob88

    (@stob88)


    I cannot upload photos without importing them from FTP.

    Here are the errors I get.

    Warning: getimagesize(/home/mysite/public_html/wp-content/uploads/wppa/thumbs/1920.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/furrytow/public_html/wp-content/plugins/wp-photo-album-plus/wppa_functions.php on line 739

    Warning: Division by zero in /home/mysite/public_html/wp-content/plugins/wp-photo-album-plus/wppa_functions.php on line 746

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Edit the album to see if the thumbnail of photo nr 1920 exists.

    If not, either try to regenerate thumbnails (by changing the size of [the largest of coverphoto size and thimbnail size] by at least 25 px, and later back) or delete the photo and re-upload.

    The problem here is not the uploading, but the generation of the thumbnail from a very large photo. This may cause out of memory errors or the server simply gives up without any errormessage.

    In this case you have the database entry and the fullsize image, but not the thumbnail. This generates the errors you get.
    If your serever does not allow you to use more than 32 mb, you still need to make your photos no larger than approx 1024 pixels.

    If you set ‘resize on upload’ to on, you still will have the same problem, but a little earlier, namely when the resized picture is attempted to be generated. In this case you will only have the database entry.

    When importing as opposed to uploading, this will automatically be corrected. At the start of the procedure a check will be done to see if there are broken entries like this in the most recently used album.
    In case of problems, the db entry and (if present) the fullsize image will be deleted after any failure (as is: no thumbnail could be created). The ftp’d picture is still there and you may retry.

    So: if this kind of erros persist when you have set max memory to 64MB and you have turned ‘resize on upload’ to on: you still need to resize your pictures before uploading or ftp’ing.

    However, i will make sure in the next version that you will no longer get an errormessage when the thumbnail image does not exist.

    Thread Starter stob88

    (@stob88)

    I set the max memory to 64MB, but I still am having problems with both way of uploading.

    Anything else I can do? Or should I manually re-size photos?

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 800 bytes) in /home/mysite/public_html/wp-content/plugins/wp-photo-album-plus/wppa_class_resize.php on line 181

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Your provider (like mine) allows you only 32 mb approx (33.554.432 bytes)
    This is the problem.

    When creating a new (smaller) image for ‘resize on upload’ or for the thumbnail when there is a 7 megapixel picture, the php makes a full color image to be able to resample it to the disired size, that is the way it works. This full color image is like a bitmap, so it will require 7M * 3 = 21 MB that you do not have unfortunately. It is not just 800 bytes missing, that is just the size of a small chunk by which a larger space is attepted to be allocated in steps.

    Setting WP to 64 MB is fine but it does not help you overcome your hosting providers limit.

    The only solution is resize before upload.

    If you use windows, just google on image resizer and you will find many easy to use resizers.

    I have read and understand all you have said opajaap and it all sounds reasonable.
    My problem is the same…

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 800 bytes) in /home/mysite/public_html/wp-content/plugins/wp-photo-album-plus/wppa_class_resize.php on line 181

    However, I can now change nothing in the settings pages. No matter what I try to change, I get the same (above) reply. Any solutions?

    Another thing I would like to ask is this. When I single view an image in any of my galleries (even during slideshow), that image is stuck to the left of the page. Is there any way it can be moved in the center? It would look more professional.

    https://dvattika.com/gallery/galleries/?album=1&photo=40&occur=1

    Oh and one more thing. When viewing an image, the bottom links from the drop down menu (pages) are not working, they seem to be behind the picture.
    And one last thing, I think you’ve done a great job with this plugin, if a couple of things are fixed, it can be awesome.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Diagnosis: You have a photo in the system that is too big to make a thumbnail from.

    Try one of the following to get rid of the errormsg:

    Try to edit the album (click ‘Edit’ in the albumtable) and delete the photos that do not display a thumbnail. This will delete the full size and the database entry

    OR:

    Go to the upload page and upload one photo that you are sure of that it is not too big. This will automaticly do the same as the above, IF the problem is in the most recently used album.

    If both methods fail (which i doubt) do the following:

    FTP to wp-content/uploads/wppa/thumbs and find out what entries exist.
    Then go one up and see waht entries you have MORE than in the thumbs dir.

    Delete those (full-size) images.

    Do upload one photo to the album that caused the problem, this will fix the database as in the very first fix suggestion.

    The alignment problem you have:

    Normaly the width of your display column (in your case i guess 870 pixels) is the same as the full image size.
    So, Do one of the following:

    Resize your photos to 500 pixels before uploading and set full image size to 870 and uncheck Stretch.

    OR:

    set %%size=870%% as the last token in (p.e.) %%wppa%% %%album=13%% %%size=870%% and uncheck Stretch as above.

    Also in either case set vertical alignment to ‘fit’. (If vertical alignment is off, also no horizontal placement is done)

    Play with all the settings i mentiond here so you get a feeling on how to..

    Because of the fading effect used in slideshow and browse full image the photo displayd is on a top level (z-value very high). Therefor it is always on to, even over a menu.

    By the way:
    Upload or import with ‘Resize on upload’ ON will NEVER enlarge, will only make pictures smaller.

    Pls tell me how you fixed it.

    You were absolutely right, there was something wrong with one of the images, although I never found which one. I deleted all albums and images and started all over again but this time with one album and a handful of images at 500px.

    Everything is working fine apart from one thing.
    I tried what you said about the alignment of the images in the center of the main window and nothing, I tried various combinations.
    The only thing that worked was when I tick Stretch but then, they don’t look nice.
    I have left the settings at %%size=500%% %%wppa%% %%album=13%% %%size=500%% just now as I don’t like a large window and I hate Vertical alignment to “fit”.

    Any more ideas about the alignment?

    https://dvattika.com/gallery/galleries/?album=8&slide=true&occur=1

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    make a copy of wp-photo-album-plus/theme/wppa_style.css and put it in your theme directory.

    edit .slide_frmame at line 172 as follows: add:

    margin-left: 185px;

    that is (870 – 500)/2.
    This will fix it.

    Have a nice day!

    I added margin-left: 135px; as I have now reduced my overall page to 800px wide and guess what…

    you are the man. I can’t thank you enough and I really love your plug-in. It is my style.

    If I may suggest something for future upgrade? When you are viewing a single picture, it would be nice to be able to click a (back) button on the picture and return to the thumbs as right now, you need to find the link above the picture for return.
    Also, it would be nice to have the choice of keeping the main window for viewing the pictures at around 500px but also view them at ie 900px by clicking on them, something like lightbox.

    Oh, and a donation is on its way. Thank you.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thank you for your positive feedback.

    I will add a setting, something like ‘Column width’ or so, so you don’t have to set margin-left every rev.

    There are more ideas, like a filmstrip of thumbnails below the browsed picture etc. As I’m thinking about these things ideas are always welcome.

    Enjoy it as much as i do.

    Filmstrip is a really good idea indeed. I’ll look fwd to the new upgrade. ??

    eventors

    (@eventors)

    I still am not sure how to center slide show after reading above. Can you help me?
    Jeff

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try this:

    %%wppa%%
    %%slide=..%% (Fill in the album number)
    %%size=400%% (Example only)
    %%align=center%%

    If this doesn’t help you, supply a link ro the site and be a bit more specific in your question, please

    eventors

    (@eventors)

    Thanks for the reply. website is”
    https://withlacoocheegulfpreserve.com/?page_id=136
    Should I just paste above in HTML editor? Where do I find album #

    Thanks very much,
    Jeff

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Yes, type the text (may be on one line, but keep the ordering sequence!) like:

    %%wppa%%%%slide=3%%%%size=400%%%%align=center%%

    The album # is the ID in the column in the table on the Photo Albums -> Photo Albums page.

    Also when editing an album (after pressing Edit in that table) it is at the top of the page (Album number: ..)

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘[Plugin: WP Photo Album Plus] Uploaded photos are errors’ is closed to new replies.