Title: error _() expects 1 parameter, 2 given
Last modified: August 20, 2016

---

# error _() expects 1 parameter, 2 given

 *  Resolved [normadize](https://wordpress.org/support/users/normadize/)
 * (@normadize)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/)
 * Using v0.70 on WP v3.5.1 I get the errors bellow. I think you meant to use `__()`
   rather than `_()`.
 *     ```
       Warning: _() expects exactly 1 parameter, 2 given in /var/www/{DOMAIN}/wp-content/plugins/email-encoder-bundle/email-encoder-bundle.php on line 749
   
       Warning: _() expects exactly 1 parameter, 2 given in /var/www/{DOMAIN}/wp-content/plugins/email-encoder-bundle/email-encoder-bundle.php on line 751
   
       Warning: _() expects exactly 1 parameter, 2 given in /var/www/{DOMAIN}/wp-content/plugins/email-encoder-bundle/email-encoder-bundle.php on line 752
       ```
   
 * Cheers.
 * [http://wordpress.org/extend/plugins/email-encoder-bundle/](http://wordpress.org/extend/plugins/email-encoder-bundle/)

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

 *  [Opally](https://wordpress.org/support/users/opally/)
 * (@opally)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/#post-3432044)
 * I’m seeing the same problem. Thanks normadize for the solution. I changed these
   lines:
 *     ```
       . ' title="' . _('Succesfully Encoded (this is a check and only visible when logged in as
       admin)', $this->domain) . '">'
       		. '<img class="encoded-check-icon" src="' . plugins_url('images/icon-
       email-encoder-bundle.png', __FILE__)
       		. '" alt="' . _('Encoded', $this->domain) . '" />'
       		. _('Succesfully Encoded', $this->domain) . '</a>';
       ```
   
 * to
 *     ```
       . ' title="' . __('Succesfully Encoded (this is a check and only visible when logged in as
       admin)', $this->domain) . '">'
       		. '<img class="encoded-check-icon" src="' . plugins_url('images/icon-
       email-encoder-bundle.png', __FILE__)
       		. '" alt="' . __('Encoded', $this->domain) . '" />'
       		. __('Succesfully Encoded', $this->domain) . '</a>';
       ```
   
 *  Thread Starter [normadize](https://wordpress.org/support/users/normadize/)
 * (@normadize)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/#post-3432062)
 * Yes, just replace `_()` with `__()` — note the double underscore.
 * Interesting how this one escaped the developer – unless he doesn’t have display
   errors enabled? but that would be against the principles of developing 🙂
 * I’m sure he’ll fix it soon.
 *  [Pi Zi](https://wordpress.org/support/users/freelancephp/)
 * (@freelancephp)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/#post-3432067)
 * Normandize, you are right. I used the wrong method. Try to fix it asap.
 * Gr, Victor
 *  [Opally](https://wordpress.org/support/users/opally/)
 * (@opally)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/#post-3432069)
 * note that “Successfully” is misspelled, too.
 *  [scirceo](https://wordpress.org/support/users/scirceo/)
 * (@scirceo)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/#post-3432080)
 * Glad this explanation and fix are here. That was a shocker to see this problem.
 *  [Pi Zi](https://wordpress.org/support/users/freelancephp/)
 * (@freelancephp)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/#post-3432082)
 * Should be OK now (version 0.71).
 * Thanks for reporting this issue.

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

The topic ‘error _() expects 1 parameter, 2 given’ is closed to new replies.

 * ![](https://ps.w.org/email-encoder-bundle/assets/icon-256x256.png?rev=2056506)
 * [Email Encoder - Protect Email Addresses and Phone Numbers](https://wordpress.org/plugins/email-encoder-bundle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-encoder-bundle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-encoder-bundle/)
 * [Active Topics](https://wordpress.org/support/plugin/email-encoder-bundle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-encoder-bundle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-encoder-bundle/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Pi Zi](https://wordpress.org/support/users/freelancephp/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/error-_-expects-1-parameter-2-given/#post-3432082)
 * Status: resolved