Title: PHP error: add_field was called incorrectly
Last modified: May 25, 2018

---

# PHP error: add_field was called incorrectly

 *  Resolved [Jacob](https://wordpress.org/support/users/jake33/)
 * (@jake33)
 * WCBRS 2019 Contributor
 * [8 years ago](https://wordpress.org/support/topic/php-error-add_field-was-called-incorrectly/)
 * I’ve been having some issues on my site so I checkout the PHP log and found these
   errors – what would you advise?
 * Notice: Kirki::add_field was called incorrectly. Do not use “alpha” as an argument
   in color controls. Use “choices[alpha]” instead. Please see Debugging in WordPress
   for more information. (This message was added in version 3.0.10.) in /home/xxx/
   public_html/wp-includes/functions.php on line 4148
 * I’m using PHP 7.0.30. Let me know if you’d like any more information.
 * Cheers,
    Jacob

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

 *  [Ari Stathopoulos](https://wordpress.org/support/users/aristath/)
 * (@aristath)
 * [8 years ago](https://wordpress.org/support/topic/php-error-add_field-was-called-incorrectly/#post-10324665)
 * Hey there.
 * As the message says the theme you’re using is not adding a color field correctly.
 * If there is an update available for your theme then please update your theme,
   this might have already been fixed. If that doesn’t fix the error then you’ll
   have to contact your theme author so they can fix that on their fields.
    Documentation
   about how an RGBA color field should be added properly can be found on [http://aristath.github.io/kirki/docs/controls/color.html#adding-an-rgba-colorpicker](http://aristath.github.io/kirki/docs/controls/color.html#adding-an-rgba-colorpicker)
 *  Thread Starter [Jacob](https://wordpress.org/support/users/jake33/)
 * (@jake33)
 * WCBRS 2019 Contributor
 * [8 years ago](https://wordpress.org/support/topic/php-error-add_field-was-called-incorrectly/#post-10324713)
 * Ah, I didn’t realise that related to the theme. Excellent, I’ll get in touch 
   with the theme author. Useful to have the docs reference too.
 * Thanks for the help,
 * Jacob

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

The topic ‘PHP error: add_field was called incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/kirki/assets/icon-256x256.jpg?rev=3518366)
 * [Kirki – Freeform Page Builder, Website Builder & Customizer](https://wordpress.org/plugins/kirki/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kirki/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kirki/)
 * [Active Topics](https://wordpress.org/support/plugin/kirki/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kirki/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kirki/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jacob](https://wordpress.org/support/users/jake33/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/php-error-add_field-was-called-incorrectly/#post-10324713)
 * Status: resolved