Title: Warning Error
Last modified: August 30, 2016

---

# Warning Error

 *  Resolved [Nicola](https://wordpress.org/support/users/nicoleuk/)
 * (@nicoleuk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/warning-error-33/)
 * I receive this error on all pages upon activating this plugin. I am using a multisite.
 * Warning: array_merge(): Argument #1 is not an array in /wp-content/plugins/auto-
   featured-image-from-title/auto-featured-image-from-title.php on line 452
 * Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect
   value given in /wp-content/plugins/auto-featured-image-from-title/auto-featured-
   image-from-title.php on line 452
 * [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)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/warning-error-33/#post-6307476)
 * I’ve tested with multisite so that shouldn’t be the issue. I’m out of town right
   now, but I’ll try to troubleshoot this error when I get home in a couple days.
 *  Plugin Author [Chris Huff](https://wordpress.org/support/users/brochris/)
 * (@brochris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/warning-error-33/#post-6307533)
 * I’m home, sorry for the delay.
 * You can safely delete or comment out that line. It is simply a notice that you
   can receive 30% off if you upgrade to the PRO version.
 * In fact, if I were you, I’d delete this whole chunk:
 *     ```
       // Check that the user hasn't already clicked to ignore the message
           if ( ! get_user_meta($user_id, 'afift_lite2pro_ignore_notice') ) {
               echo '<div class="updated"><p>';
               printf(__('<strong>Thanks for using Auto Featured Image from Title LITE!</strong><br />Use discount code LITE2PRO to get 30% off the <a href="http://designsbychris.com/auto-featured-image-from-title">PRO version</a>! | <a href="%1$s" rel="nofollow">Hide Notice</a>'), '?' . http_build_query(array_merge($params, array('afift_lite2pro_ignore_notice'=>'0'))));
               echo "</p></div>";
               }
           }
   
       add_action('admin_notices', 'afift_lite_admin_notice');
       ```
   
 * Hope this helps!
 *  Thread Starter [Nicola](https://wordpress.org/support/users/nicoleuk/)
 * (@nicoleuk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/warning-error-33/#post-6307548)
 * Hi no problem,
 * I did as suggested and I now receive this error
 * Parse error: syntax error, unexpected end of file in /wp-content/plugins/auto-
   featured-image-from-title/auto-featured-image-from-title.php on line 461
 *  Plugin Author [Chris Huff](https://wordpress.org/support/users/brochris/)
 * (@brochris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/warning-error-33/#post-6307550)
 * Sorry, take this out too, then it should work.
 *     ```
       // Display a notice that can be dismissed
       function afift_lite_admin_notice() {
           global $current_user;
           $user_id = $current_user->ID;
       ```
   

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

The topic ‘Warning Error’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Chris Huff](https://wordpress.org/support/users/brochris/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/warning-error-33/#post-6307550)
 * Status: resolved