WordPress.org

Forums

WP Photo Album Plus
[resolved] Warning messages at top of page (17 posts)

  1. eventors
    Member
    Posted 3 years ago #

    I just moved my site from one host to another and the slide show works fine, but I don't know why the "warning" message is there? Can someone suggest how to remove it?
    Thanks Jeff

    Warning: Division by zero in /home3/ournewpr/public_html/whereisbuddylee/wp-content/plugins/wp-photo-album-plus/wppa_functions.php on line 1173

    Warning: Division by zero in /home3/ournewpr/public_html/whereisbuddylee/wp-content/plugins/wp-photo-album-plus/wppa_functions.php on line 1173

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    Check the hosts php config, it is most likely that the proper GD library is not loaded. You can see that in the Photo Albums -> Settings page, Table X php config chapter GD.

  3. eventors
    Member
    Posted 3 years ago #

    Sorry to not understand. Can you be more specific?
    Does this mean that in the transfer the GD library did not make it over into the right files?
    What is the "GD library"? How do I actually find this info and where do I put it?

    Thanks very much, Jeff.

  4. eventors
    Member
    Posted 3 years ago #

    This is under table x php config.
    Do I look in my old host's files, then move it to new host?

    gd
    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.2.1
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled

  5. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    Ask your server administrator or see the php manual how to compile php to include the GD options. The list of gd oprions avove is indeed what i ment.

  6. eventors
    Member
    Posted 3 years ago #

    Is it easier to save my image files, then delete the plugin and reinstall?

  7. eventors
    Member
    Posted 3 years ago #

    Hello,
    I have 2 wordpress installations on the same hosting account.
    I am using your plugin on both of them.
    One works fine (no error message)
    The other has error.
    http://www.wihlacoocheegulfpreserve.com (no error message)
    http://www.whereisbuddylee.co (has error)

    Do you have any other suggestions on correcting this?

  8. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    Both links do not work at the moment, but you never have to save your imagefiles when you de-install and re-install the plugin. As with updating, removing the plugin will never destroy your album and photo information and data. So it is always safe to delete and reinstall the plugin.

    The division by zero error originates most likely from the fact that the php internal routine getimagesize() does not exist, that is why i suggested you to check the php config.

    If you want more errormessages to determine the problem, open the page with the problem in your browser, add &debug (or ?debug if there are no arguments like ?page= ) and press the goto button or the enter key.

  9. eventors
    Member
    Posted 3 years ago #

    Sorry about the links! They are both missing letters.
    Here they are:

    http://whereisbuddylee.com/friend-gallery/
    http://withlacoocheegulfpreserve.com/photo-album

  10. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    Please enable allow debugging (Table IX item 5) of the Photo Albums -> Settings page on both sites. Then the ?debug will work, see...?

  11. eventors
    Member
    Posted 3 years ago #

    Allow WPPA+ Debugging Allow the use of &debug=.. in urls to this site.

    I just checked box,saved changes, reloaded site and warning is still
    there.

    http://whereisbuddylee.com/friend-gallery/

  12. eventors
    Member
    Posted 3 years ago #

    Just realized that you wanted me to check for errors.
    This is what I get:

    Notice: Use of undefined constant hmt_activate_custom_header - assumed 'hmt_activate_custom_header' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 594

    Notice: Use of undefined constant hmt_preset_mode_activated - assumed 'hmt_preset_mode_activated' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 686

    Notice: Use of undefined constant hmt_header_lock - assumed 'hmt_header_lock' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 706

    Notice: Use of undefined constant hmt_display_header_lock_bar - assumed 'hmt_display_header_lock_bar' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 714

    Notice: Use of undefined constant hmt_display_header_lock_bar - assumed 'hmt_display_header_lock_bar' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 826

    Notice: Use of undefined constant hmt_display_sub_header_lock_bar - assumed 'hmt_display_sub_header_lock_bar' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 912

    Notice: Use of undefined constant hmt_hide_header - assumed 'hmt_hide_header' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 1126
    Notice: Use of undefined constant hmt_activate_custom_header - assumed 'hmt_activate_custom_header' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 1128
    >
    Notice: Use of undefined constant hmt_logo_url - assumed 'hmt_logo_url' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 1147

    Notice: Use of undefined constant hmt_show_title_and_tagline - assumed 'hmt_show_title_and_tagline' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 1173

    Notice: Use of undefined constant hmt_h1_setting - assumed 'hmt_h1_setting' in /home3/ournewpr/public_html/whereisbuddylee/wp-content/themes/hmtpro4/header.php on line 1181

  13. eventors
    Member
    Posted 3 years ago #

    Bluehost suggested in settings I should change the pixel size of thumbnail and cover picture, then save changes. And it worked!
    No warning message:
    http://whereisbuddylee.com/friend-gallery/

  14. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    One of you thumbnail image files was corrupted (#22: magnet buddy fighting_500x333.jpg ).

    You need not to change the size, you can rebuild the thumbnails by checking Table VIII item 7 in the Settings panel and click Save Changes and follow the instructions.

    I will supply a better errormessage in these cases in the next version.

    Thanx for your input.

  15. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    BTW: the errormessages in debug mode tell you that there is a lot of bad programming in your theme...

  16. eventors
    Member
    Posted 3 years ago #

    Thanks for your input. Should I change or eliminate the #22 image?

    I like the Heatmap Theme a lot. What is the potential effect of the "bad programming" you mention above. This should be helpful information to the program developer?

    On a slightly different subject: Do you have a favorite video plugin for wordpress?

  17. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    No, you need not to remove photo 22. It is fixed by you through the changing of the thumbnail size, it triggered the regeneration of thumbnails which fixed it.

    I only ment that you can fix such errors easier by just trigger the regen at the settings page. In rare cases (when the server reaches a time limit at the wrong moment) you get this situation, the thumbnailfile was created, but was incomplete. When it is missing, wppa+ fixes this automatic but in this case the error came up because ther was no width and height info in the file. The thumbnail did not display also in the filmstrip.

    The warnings from your theme are not a real problem, but may indicate that there are instabilities. It is an indication of the programming quality.

    Also, it is confusing when debug mode is on when analyzing problems when there are a lot of easy avoidable warnings.

    I do not have a favorite video plugin. In the future i would like to expand wppa+ to support videos as well, but that will take some time...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Photo Album Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic