Title: PHP Error: Undefined variable: button &#8230; on line 448
Last modified: August 21, 2016

---

# PHP Error: Undefined variable: button … on line 448

 *  Resolved [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/)
 * Hello,
 * I am using the PHP from this tutorial ([http://www.jacobtomlinson.co.uk/2013/03/17/using-the-addthis-share-buttons-wordpress-plugin-in-a-custom-theme/](http://www.jacobtomlinson.co.uk/2013/03/17/using-the-addthis-share-buttons-wordpress-plugin-in-a-custom-theme/))
   so I can place the share buttons where I want in my template.
 * However, the share buttons are not showing up and when I turn on WP debugging
   I get this error:
 * _Notice: Undefined variable: button in …/plugins/addthis/addthis\_social\_widget.
   php on line 448_
 * Can this PHP error in the plugin be fixed in an update please? I am using the
   latest version of the plugin (3.5.3).
 * Thanks!
 * [http://wordpress.org/plugins/addthis/](http://wordpress.org/plugins/addthis/)

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

 *  Thread Starter [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305132)
 * Hello,
 * I just updated the plugin to 3.5.4 and can confirm that the following error from
   the plugin is still appearing:
 * _Notice: Undefined variable: button in …/plugins/addthis/addthis\_social\_widget.
   php on line 448_
 *  Thread Starter [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305199)
 * So I am having to revert back to 3.5.1, as that version seems to work.
 * I believe this issue is the same thing: [http://wordpress.org/support/topic/build-your-own-social-media-buttons-not-appearing-at-the-bottom-of-posts?replies=3](http://wordpress.org/support/topic/build-your-own-social-media-buttons-not-appearing-at-the-bottom-of-posts?replies=3)
 *  [Srijith V](https://wordpress.org/support/users/srijithv/)
 * (@srijithv)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305203)
 * [@courtney](https://wordpress.org/support/users/courtney/): Yes, it’s the same
   issue and we are working out a fix for it. Keep checking that thread, and we 
   will share a beta version of the plugin with the fix there.
 *  Thread Starter [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305219)
 * Hi srijith.v,
 * I have just updated to 3.5.6 and this issue, reported over a month ago, is still
   a problem.
 * When will a fix be released? I am stuck at 3.5.1 and to be at 3.5.6 without a
   resolution is very very disappointing.
 * Thanks
 *  Thread Starter [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305223)
 * Two months now, is there any resolution to this?
 * Considering looking at other options at this point…
 *  Thread Starter [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305230)
 * [@srijith](https://wordpress.org/support/users/srijith/).v
 * I am still getting this same PHP error after upgrading from 3.5.1 to the latest,
   3.5.9:
 * **Notice: Undefined variable: button in …/plugins/addthis/addthis_social_widget.
   php on line 447**
 * It shows up on the front-end in place of the social icons.
 * Any help here?
 *  Thread Starter [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305231)
 * Comparing to version 3.5.1, the variable $button is inside of an IF statement
   that doesn’t exist in 3.5.1:
 * **if (isset($options[‘type’]) && $options[‘type’] != ‘custom_string’) { … }**
 * Is there a NEW option for the array in **do_action( ‘addthis_widget’, get_permalink(),
   get_the_title(), array(…));** ???
 * ETA: Simply adding **type => ‘custom’** to the array stops the error. It also
   works empty. Looks like the article I linked to above was also updated for this.
 *  Thread Starter [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * (@ridingforlife)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305232)
 * I’m going to mark this as resolved…

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

The topic ‘PHP Error: Undefined variable: button … on line 448’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis_70cced.svg)
 * [WordPress Share Buttons Plugin – AddThis](https://wordpress.org/plugins/addthis/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis/reviews/)

## Tags

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

 * 8 replies
 * 2 participants
 * Last reply from: [Courtney Fantinato](https://wordpress.org/support/users/ridingforlife/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/php-error-undefined-variable-button-on-line-448/#post-4305232)
 * Status: resolved