Title: error: Undefined variable: attr
Last modified: August 22, 2016

---

# error: Undefined variable: attr

 *  Resolved [bobdobbs](https://wordpress.org/support/users/bobdobbs/)
 * (@bobdobbs)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/)
 * I’ve installed the plugin. I have this line in a post:
 * [embed]http://dev3.sunil.co.nz/wp-content/uploads/2014/08/RJRabin_RESUME4.pdf[/
   embed]
 * The resulting page shows no pdf.
    The following error message shows:
 * Notice: Undefined variable: attr in [prefix]/public_html/dev3/wp-content/plugins/
   dirtysuds-embed-pdf/embed.php on line 100
 * The line in question is from the file ’embed.php’, and looks like this:
 * return apply_filters( ’embed_pdf’, $embed, $matches, $attr, $url, $rawattr );
 * [https://wordpress.org/plugins/dirtysuds-embed-pdf/](https://wordpress.org/plugins/dirtysuds-embed-pdf/)

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

 *  [php-developer](https://wordpress.org/support/users/php-developer-1/)
 * (@php-developer-1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/#post-5315837)
 * Hello that PDF is working.
    Where is a page link ? can you plz give me that link
 *  [php-developer](https://wordpress.org/support/users/php-developer-1/)
 * (@php-developer-1)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/#post-5315838)
 * why you installed that plugin. WordPress allowed you to upload a PDF you can 
   directly link that in your post
 *  Plugin Author [Pat Hawks](https://wordpress.org/support/users/pathawks/)
 * (@pathawks)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/#post-5316020)
 *  Plugin Author [Pat Hawks](https://wordpress.org/support/users/pathawks/)
 * (@pathawks)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/#post-5316021)
 * **OH!**
 * `$atts` ≠ `$attr`
 * I’ll try to get a fix out as soon as possible.
 *  Plugin Author [Pat Hawks](https://wordpress.org/support/users/pathawks/)
 * (@pathawks)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/#post-5316023)
 * This has been fixed in 1.0.6
 *  Thread Starter [bobdobbs](https://wordpress.org/support/users/bobdobbs/)
 * (@bobdobbs)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/#post-5316028)
 * thanks 🙂

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

The topic ‘error: Undefined variable: attr’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dirtysuds-embed-pdf.svg)
 * [Embed PDF](https://wordpress.org/plugins/dirtysuds-embed-pdf/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dirtysuds-embed-pdf/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dirtysuds-embed-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dirtysuds-embed-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dirtysuds-embed-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dirtysuds-embed-pdf/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [bobdobbs](https://wordpress.org/support/users/bobdobbs/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/error-undefined-variable-attr/#post-5316028)
 * Status: resolved