Title: Error when adding PHP code to single.php
Last modified: August 21, 2016

---

# Error when adding PHP code to single.php

 *  Resolved [kerms](https://wordpress.org/support/users/kerms/)
 * (@kerms)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-php-code-to-singlephp/)
 * Hello,
 * I installed the plugin and chose the manual setting. I then added `<?php mashsharer();?
   >` in my single.php file where I wanted the sharing icons to appear, but I get
   the error below. Any suggestions?
 * > Warning: Missing argument 2 for mashsharer::mashsharerShow(), called in /home/
   > directory/site/wp-content/plugins/mashsharer/mashsharer.php on line 214 and
   > defined in /home/directory/site/wp-content/plugins/mashsharer/class.mashsharer.
   > php on line 89
 * Thanks!
 * [https://wordpress.org/plugins/mashsharer/](https://wordpress.org/plugins/mashsharer/)

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

 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-php-code-to-singlephp/#post-4705738)
 * I did a fix for it. Should be published now.
 *  Thread Starter [kerms](https://wordpress.org/support/users/kerms/)
 * (@kerms)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-php-code-to-singlephp/#post-4705768)
 * Thanks for the update. For some reason, I still get the same error though when
   using the PHP tag. Also, the buttons get cut-off. For example, the Facebook button
   says “Face-” and you can only see “book” upon hoovering over the button. Maybe
   it’s something specific to my setup as others don’t seem to be having the issue.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-php-code-to-singlephp/#post-4705833)
 * Hi, please write me here and give me more details for your site so i can fix 
   it: [http://www.mashshare.net/contact-support/](http://www.mashshare.net/contact-support/)
 *  Thread Starter [kerms](https://wordpress.org/support/users/kerms/)
 * (@kerms)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-php-code-to-singlephp/#post-4705855)
 * Sent, thanks

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

The topic ‘Error when adding PHP code to single.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mashsharer_33bbee.svg)
 * [MashShare - Social Media Share Buttons, Social Share Icons](https://wordpress.org/plugins/mashsharer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mashsharer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mashsharer/)
 * [Active Topics](https://wordpress.org/support/plugin/mashsharer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mashsharer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mashsharer/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [kerms](https://wordpress.org/support/users/kerms/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/error-when-adding-php-code-to-singlephp/#post-4705855)
 * Status: resolved