Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thank you, 3.9.14 seems to have fixed our issue so far. I don’t know if it is related to the issue OP is having or something else. I’ll post if I notice anything else.

    We also have a problem that with the latest update, the images are not generated anymore, we use “Find in post” setting. WordPress 6.0.1 and PHP 8.0.22. I had looked at the plugin logs through the UI and did not notice any obvious issue, I can provide them if needed. However when I go to the plugin page image tab I get a PHP error, hope this helps.

    Uncaught DivisionByZeroError: Division by zero in 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/includes/class-wapt-image.php:337
    Stack trace:
    #0 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/includes/class-apt.php(1328): 
    WBCR\APT\Image->write_text()
    #1 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/admin/pages/image.php(168): 
    WBCR\APT\AutoPostThumbnails::generate_image_with_text()
    #2 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/libs/factory/templates/pages/templates/impressive-lite/class-page-template-impressive-lite.php(275): 
    WAPT_ImageSettings->showRightSidebar()
    #3 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/libs/factory/templates/pages/templates/impressive/class-page-template-impressive.php(221): 
    WBCR\Factory_Templates_110\ImpressiveLite->showOptions()
    #4 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/libs/factory/pages/includes/page.class.php(125): 
    WBCR\Factory_Templates_110\Impressive->indexAction()
    #5 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/libs/factory/pages/includes/admin-page.class.php(427): 
    Wbcr_FactoryPages457_Page->executeByName()
    #6 
    /srv/www/redacted.site/wp-content/plugins/auto-post-thumbnail/libs/factory/pages/pages.php(57): 
    Wbcr_FactoryPages457_AdminPage->connect()
    #7 /srv/www/redacted.site/wp-includes/class-wp-hook.php(307): 
    Wbcr_FactoryPages457::actionAdminMenu()
    #8 /srv/www/redacted.site/wp-includes/class-wp-hook.php(331): 
    WP_Hook->apply_filters()
    #9 /srv/www/redacted.site/wp-includes/plugin.php(476): 
    WP_Hook->do_action()
    #10 /srv/www/redacted.site/wp-admin/includes/menu.php(155): do_action()
    #11 /srv/www/redacted.site/wp-admin/menu.php(394): require_once('...')
    #12 /srv/www/redacted.site/wp-admin/admin.php(158): require('...')
    #13 {main}
    thrown
    
    Thread Starter zaburt

    (@zaburt)

    Updated to 5.15.1 and enabled fulltext index on titles, we don’t have any issues. We can try out other changes too, ping me when you need.

    Thread Starter zaburt

    (@zaburt)

    Thank you for the quick response ! I have tried the updated version above it has worked great;

    * Did not have any issues on updating the plugin
    * Enabling FT on titles worked much better on our test environment (under simulated user interaction). Index generation time was 22 minutes (on posts), now it is 89 seconds (titles only). Generated index size (FTS_*) dropped to 0.8%
    * the note about index timings and adding index manually is really a good idea

    I can try other things too if you want. With the current approach when you make a release we are planning to enable index on titles. Thanks again.

    I have the same issue, on 3.7.1 “set feeatured image from the first image in the post” is not working. If I revert back to 3.7.0 it works. Running WordPress 5.4.2 on PHP 7.2 and 7.3 on different environments. Looked at the differences and reverting this part of the change fixed it for me

    diff --git a/auto-post-thumbnail/includes/class-wapt-base.php b/auto-post-thumbnail/includes/class-wapt-base.php
    index 4c8546f8..86a9d58b 100644
    --- a/auto-post-thumbnail/includes/class-wapt-base.php
    +++ b/auto-post-thumbnail/includes/class-wapt-base.php
    @@ -588,9 +588,9 @@ class AutoPostThumbnails {
     	public function publish_post( $post_id ) {
     		global $wpdb;
     
    -		if ( ! is_single( $post_id ) ) {
    -			return 0;
    -		}
    +		//if ( ! is_single( $post_id ) ) {
    +		//	return 0;
    +		//}
     
     		// First check whether Post Thumbnail is already set for this post.
     		$_thumbnail_id = get_post_meta( $post_id, '_thumbnail_id', true );
    
Viewing 5 replies - 1 through 5 (of 5 total)