Title: Warning: Missing argument
Last modified: August 20, 2016

---

# Warning: Missing argument

 *  Resolved [angutir](https://wordpress.org/support/users/angutir/)
 * (@angutir)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/)
 * In “edit.php?post_type=instructions” this warning:
 * Warning: Missing argument 1 for plugin_dir_url(), called in /expert/htwebs/www4/
   ftplagale/www.domain.com/wp-content/plugins/back-end-instructions/instructions.
   php on line 601 and defined in /expert/htwebs/www4/ftplagale/www.domain.com/wp-
   includes/plugin.php on line 599
 * [http://wordpress.org/extend/plugins/back-end-instructions/](http://wordpress.org/extend/plugins/back-end-instructions/)

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

 *  Plugin Author [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537428)
 * Well, this is only a _warning_, so it doesn’t affect how the plugin works. However,
   if you want to fix it, you can open up instructions.php, and change line 601 
   from this:
 * $path = plugin_dir_url();
 * to this:
 * $path = plugin_dir_url(__FILE__);
 * Alternatively, you can just shut off error messages in your WordPress install.
 * I can’t replicate this issue, though – so I’m not 100% sure that will work.
 *  Thread Starter [angutir](https://wordpress.org/support/users/angutir/)
 * (@angutir)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537435)
 * Thank you, I’ll leave it as it is now, does not bother me. 🙂
 * Good work! good plugin!
 *  [sillinguist](https://wordpress.org/support/users/sillinguist/)
 * (@sillinguist)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537442)
 * [@angutir](https://wordpress.org/support/users/angutir/), What plugins are you
   using because I have the same warning…
 *  Plugin Author [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537444)
 * Hugh, if you have the same warning, just setting the line:
 * `define('WP_DEBUG', false);`
 * in your wp-config.php file should solve the problem.
 *  [sillinguist](https://wordpress.org/support/users/sillinguist/)
 * (@sillinguist)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537445)
 * actually it was showing up, even though `define('WP_DEBUG', false);` was set 
   to _false_.
 *  Plugin Author [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537449)
 * Well your server settings could also be set to show notices and warning messages.(
   The WP_DEBUG setting is only for WordPress, not the entire server.) So if it’s
   still showing, that’s probably what it is.
 * You’re not stating *exactly* what your message is, Hugh – and I’m wondering if
   the message is even related to my plugin (since you asked “what plugin are you
   using?” – this is the board for *my* plugin, and as I stated above, I can’t replicate
   this, even with my error_reporting turned on). It would be helpful to know what
   messages you’re getting, since I can’t see the issue myself.
 *  [sillinguist](https://wordpress.org/support/users/sillinguist/)
 * (@sillinguist)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537453)
 * Actually the warning text goes away if I deactivate the plugin… I figured that
   I could just implement the features as a custom content type and do no front 
   end theming…. conceptually the content is supposed to only be accessed through
   the admin pannel anyway…
 * Here is the error I get (personal info replace with ~), which happens to be exactly
   the same as cited above:
 * > **Warning**: Missing argument 1 for `plugin_dir_url()`, called in `/home/~/
   > wordpress/wp-content/plugins/back-end-instructions/instructions.php` on line
   > 601 and defined in `/home/~/wordpress/wp-includes/plugin.php` on line 599
 * I was asking [@angutir](https://wordpress.org/support/users/angutir/) which plugins
   they were using because it is logical that there could be a plugin conflict between
   your plugin and another plugin. So, in an effort to compare plugin sets we are
   using, I was asking “what plugin_s_ are they using?”
 * The error only shows up on the admin page for your plugin. `wordpress/wp-admin/
   edit.php?post_type=instructions`
 * Is it a variable name conflict?
 *  Thread Starter [angutir](https://wordpress.org/support/users/angutir/)
 * (@angutir)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537454)
 * Basic Google Maps Placemarks
    Google XML Sitemaps contact form 7 And the theme
   Daisho
 * And the warning it is the same, but as the plugin author say “it doesn’t affect
   how the plugin works” i don’t try to fix it because doesn’t bother me.
 *  [sillinguist](https://wordpress.org/support/users/sillinguist/)
 * (@sillinguist)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537455)
 * Yea, I am not using any of those plugins. I wonder if it is an incomplete array
   or syntax based issue based on the the part of the warning saying “Missing argument
   1″… of course I have not looked the code for myself
 *  Plugin Author [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537456)
 * Again, Hugh, as stated above, it’s a warning, not an error, so it doesn’t affect
   how the plugin works. And, per the solution I provided above:
 * > you can open up instructions.php, and change line 601 from this:
   > $path = plugin_dir_url();
   > to this:
   > $path = plugin_dir_url(__FILE__);
 * That *should* fix it.
 *  [webbushka](https://wordpress.org/support/users/webbushka/)
 * (@webbushka)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537461)
 * That does work. Thanks!

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

The topic ‘Warning: Missing argument’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/back-end-instructions_226b31.svg)
 * [Back End Instructions](https://wordpress.org/plugins/back-end-instructions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/back-end-instructions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/back-end-instructions/)
 * [Active Topics](https://wordpress.org/support/plugin/back-end-instructions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/back-end-instructions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/back-end-instructions/reviews/)

## Tags

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

 * 11 replies
 * 4 participants
 * Last reply from: [webbushka](https://wordpress.org/support/users/webbushka/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/warning-missing-argument-5/#post-3537461)
 * Status: resolved