Title: [Plugin NGG]
Last modified: August 20, 2016

---

# [Plugin NGG]

 *  Resolved [m0mo](https://wordpress.org/support/users/m0mo/)
 * (@m0mo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-ngg/)
 * Hello,
 * I just implemented the following hack to my wordpress theme:
 * [http://wp-wizzard.com/functions/next-gen-gallery-random-set-of-images-anywhere-on-your-page-without-hacking-core-files](http://wp-wizzard.com/functions/next-gen-gallery-random-set-of-images-anywhere-on-your-page-without-hacking-core-files)
 * everything works fine, I just get the following warning mesaage:
 * Missing argument 2 for WP_Widget::__construct() at …
 * so I googled a bit and found this article with a comment related to the problem:
 * ____________
    If you get “Missing argument 2 for WP_Widget::__construct(), ” 
   make sure that you when you renamed your widget class that extends WP_Widget(),
   to name the function with the ops to same thing. ____________
 * So, easy problem: What do I have to I change? I do not know what ops means in
   this way and my oo programing skills are not the best – could somebody give me
   a hint?
 * Best regards
    m0mo

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-ngg/#post-2342005)
 * Make sure that your _Widget extension class name is the same as the first function
   in the class – eg:
 *     ```
       class nggWidget extends WP_Widget {
   
          	function nggWidget() {
       ```
   
 *  Thread Starter [m0mo](https://wordpress.org/support/users/m0mo/)
 * (@m0mo)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-ngg/#post-2342017)
 * Hey, thank you!
 * fast and perfect. 🙂
 * Best regards
    m0mo
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-ngg/#post-2342038)
 * No problem 🙂

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

The topic ‘[Plugin NGG]’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-ngg/#post-2342038)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
