Title: Undefined code error
Last modified: October 15, 2020

---

# Undefined code error

 *  Resolved [dloxton](https://wordpress.org/support/users/dloxton/)
 * (@dloxton)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/undefined-code-error/)
 * I am getting this error in our logs with a form submission, what’s going on?
 *     ```
       [14-Oct-2020 05:32:17 UTC] PHP Fatal error:  Uncaught Exception: No service named request was registered. in /www/wp-content/plugins/mailchimp-for-wp/includes/class-container.php:38
       Stack trace:
       #0 /www/wp-content/plugins/mailchimp-for-wp/includes/functions.php(29): MC4WP_Container->get('request')
       #1 /www/wp-content/plugins/mc4wp-premium/logging/includes/class-logger.php(416): mc4wp('request')
       #2 /www/wp-content/plugins/mc4wp-premium/logging/includes/class-logger.php(396): MC4WP_Logger->get_url_referer()
       #3 /www/wp-content/plugins/mc4wp-premium/logging/includes/class-logger.php(176): MC4WP_Logger->log_request(Array)
       #4 /www/wp-includes/class-wp-hook.php(287): MC4WP_Logger->log_form_request(Object(MC4WP_Form), 'duncan+testcovi...', Array, Array)
       #5 /www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
       #6 /www/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
       #7 /www/wp-content/plugins/mailchimp-for-wp/includes/forms/class-form-listener.php(192): do_action('mc4wp_form_subs...', Object(MC4WP_Form), 'duncan+testcovi...', Array, A in /www/wp-content/plugins/mailchimp-for-wp/includes/class-container.php on line 38
       ```
   

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

 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/undefined-code-error/#post-13536488)
 * Hey [@dloxton](https://wordpress.org/support/users/dloxton/),
 * Thanks for reaching out to us.
 * Can you please let us know which version of PHP is enabled on your server and
   which version of our plugin is installed?
 *  Thread Starter [dloxton](https://wordpress.org/support/users/dloxton/)
 * (@dloxton)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/undefined-code-error/#post-13536628)
 * Thanks for getting back to me – I think you can disregard, Pro license had expired
   and so I think that causes the issue.

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

The topic ‘Undefined code error’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dloxton](https://wordpress.org/support/users/dloxton/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/undefined-code-error/#post-13536628)
 * Status: resolved