• Resolved Digitsoft

    (@digitsoft)


    PHP Ver: 5.5.17
    OS: Centos 5
    Apache: 2.2.29

    I installed this and not only did it not work (hung in admin), but also created a 458mb error_log file in wp-admin.

    I dug into the errors and found that these fields in the Options table had no values (the fields existed, but had no values):

    auto_image_width
    auto_image_height
    auto_image_fontsize

    I fixed that in the db, but it still failed and created a 458mb error_log file.

    It now works properly due to these changes.
    Changed this:

    add_option('auto_image_fontsize',"72");

    To this:

    add_option('auto_image_fontsize',72);

    Added these after the last add_option on line 36:

    $auto_image_width = 640;
    $auto_image_height = 360;
    $auto_image_fontsize = 72;

    Added these after line 137:

    $red = 255;
    $grn = 255;
    $blu = 255;
    
    $red = $shadow["red"];
    $grn = $shadow["green"];
    $blu = $shadow["blue"];

    Changed line 140 to use the new vars:

    $shadow_color = imagecolorallocate( $new_featured_img, $red, $grn, $blu);

    It’s working for me now.

    Thanks for writing it…was going to create this exact plugin.

    Rob

    https://www.ads-software.com/plugins/auto-featured-image-from-title/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chris Huff

    (@brochris)

    Hey, thanks a bunch. Greatly appreciate the feedback and work on it to make it even better! I’ll include these fixes in an update, hopefully tomorrow.

    Plugin Author Chris Huff

    (@brochris)

    Strange, I can’t duplicate many of the errors you received. But I did implement your first fix and move the add_option lines to before the main function, which should assure that all of the settings are set. I’ll release this update today.

    Thread Starter Digitsoft

    (@digitsoft)

    I just tested the new version and all is working fine – even after removing the settings from the db.

    Glad to help…

    Plugin Author Chris Huff

    (@brochris)

    Glad to hear it. Thanks again and God bless.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Bug Found & Fixed’ is closed to new replies.