Title: Missing argument
Last modified: September 1, 2016

---

# Missing argument

 *  Resolved [dashbo](https://wordpress.org/support/users/dashbo/)
 * (@dashbo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/missing-argument-17/)
 * Hi,
 * I just started using your plugin and it’s been working great so far, does exactly
   what I need it to do. I just ran into an error though and I’m not sure what to
   do:
 * Warning: Missing argument 2 for wud_widget_text() in /home/[…]/[…]/index/wp-content/
   plugins/grid-wud/grid-wud.php on line 58
 * This error occured after I tried using Grid WUD together with Page Builder by
   SiteOrigin so I’m guessing there is a compatibility issue with the two plugins.
   Do you know if there’s any way to fix this or do I have to pick one or the other
   =/
 * Note: I tried searching for the error and found a few other sites having the 
   same issue but nothing about solutions.
 * Thanks in advance!
 * [https://wordpress.org/plugins/grid-wud/](https://wordpress.org/plugins/grid-wud/)

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

 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/missing-argument-17/#post-7683771)
 * Hi Dashbo,
    Thanks for using our plugin!
 * For every problem is a solution … so we will solve this one.
    This is what makes
   the error:
 *     ```
       function wud_widget_text( $widget_text, $instance )
       ```
   
 * If i look to it, it does not find one of the variables.
    So i will check this
   and give a solution. BTW is it possible that the widget has no name (title)?
 * Regards, Danny
 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/missing-argument-17/#post-7683918)
 * Hi Dashbo,
 * I made some modification to the function in grid-wud.php and changed next lines:
   **
   FROM**
 *     ```
       function wud_widget_text( $widget_text, $instance)
       ```
   
 * **TO**
 *     ```
       function wud_widget_text( $widget_text, $instance = [] )
       ```
   
 * **and FROM**
 *     ```
       if (has_shortcode( $instance['text'], $tag ) )
       ```
   
 * **TO**
 *     ```
       if ( isset($instance['text']) && (has_shortcode( $instance['text'], $tag )) )
       ```
   
 * **So the new code is:**
 *     ```
       function wud_widget_text( $widget_text, $instance = [] )
           {
       		global $gwfuncs, $grid_wud_widget;
               $tag = 'gridwud';
               if ( isset($instance['text']) && (has_shortcode( $instance['text'], $tag )) )
                   $grid_wud_widget=1;
               else
                   $grid_wud_widget=0;
               return $widget_text;
           }
       ```
   
 * This might help you to resolve the problem and will be included into the next
   release.
 * If you can replace the code by yourself it would be great otherwise you can request
   a beta release [here](http://wp.wistudat.be/contact-us/).
 * If it does not resolve your problem, please de-activate 1 by 1 your plugins until
   the error line disappears and let me know the name of this plugin.
 * Regards Danny
 *  Thread Starter [dashbo](https://wordpress.org/support/users/dashbo/)
 * (@dashbo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/missing-argument-17/#post-7683932)
 * That worked!
 * Thanks Danny! Both for the quick and efficient response and for the great plugin!
 *  Plugin Author [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * (@wistudatbe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/missing-argument-17/#post-7683939)
 * Your welcome Dashbo, btw you have point me to this issue and told me exactly 
   when and how it occurred.
    This made it a lot easier for me to find a solution.
   Thank you!
 * Regards, Danny

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/grid-wud_b6d1ea.svg)
 * [Grid WUD](https://wordpress.org/plugins/grid-wud/)
 * [Support Threads](https://wordpress.org/support/plugin/grid-wud/)
 * [Active Topics](https://wordpress.org/support/plugin/grid-wud/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/grid-wud/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/grid-wud/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [AccountClosed](https://wordpress.org/support/users/wistudatbe/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/missing-argument-17/#post-7683939)
 * Status: resolved