Title: Bug Found &amp; Fixed
Last modified: August 22, 2016

---

# Bug Found & Fixed

 *  Resolved [Digitsoft](https://wordpress.org/support/users/digitsoft/)
 * (@digitsoft)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-found-fixed/)
 * 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://wordpress.org/plugins/auto-featured-image-from-title/](https://wordpress.org/plugins/auto-featured-image-from-title/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Chris Huff](https://wordpress.org/support/users/brochris/)
 * (@brochris)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-found-fixed/#post-5773941)
 * 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](https://wordpress.org/support/users/brochris/)
 * (@brochris)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-found-fixed/#post-5774009)
 * 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](https://wordpress.org/support/users/digitsoft/)
 * (@digitsoft)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-found-fixed/#post-5774082)
 * 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](https://wordpress.org/support/users/brochris/)
 * (@brochris)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/bug-found-fixed/#post-5774088)
 * 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.

 * ![](https://ps.w.org/auto-featured-image-from-title/assets/icon-256x256.png?rev
   =1230724)
 * [Auto Featured Image from Title](https://wordpress.org/plugins/auto-featured-image-from-title/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-featured-image-from-title/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-featured-image-from-title/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-featured-image-from-title/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-featured-image-from-title/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-featured-image-from-title/reviews/)

## Tags

 * [bug fixed](https://wordpress.org/support/topic-tag/bug-fixed/)

 * 4 replies
 * 2 participants
 * Last reply from: [Chris Huff](https://wordpress.org/support/users/brochris/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/bug-found-fixed/#post-5774088)
 * Status: resolved