Title: syntax error DOCTYPE html
Last modified: August 21, 2016

---

# syntax error DOCTYPE html

 *  Resolved [batman42ca](https://wordpress.org/support/users/batman42ca/)
 * (@batman42ca)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-65/)
 * When I fill in and submit the subscription form, Firefox reports a syntax error
   and points to the first line of my web page which is
 * <!DOCTYPE html>
 * I’m using WordPress 3.5.1 and Alo EasyMail 2.4.17
 * This was working fine in the past. If something has changed, I have no idea what
   it is.
 * How do I even begin to debug this?
 * My web site is [http://fccapitalunited.com/test/](http://fccapitalunited.com/test/)
 * This is a test site only, so attempting to register will never lead to you receiving
   a newsletter.
 * [http://wordpress.org/plugins/alo-easymail/](http://wordpress.org/plugins/alo-easymail/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [batman42ca](https://wordpress.org/support/users/batman42ca/)
 * (@batman42ca)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-65/#post-4483756)
 * I found the solution. The problem had little to do with ALO EasyMail.
 * I had some code in place that prevented anyone but an admin from accessing the
   WordPress Admin area. This also prevented Ajax calls to wp-admin/admin-ajax.php
   which is used by ALO EasyMail. The solution was to check to ensure I wasn’t making
   a AJAX call before I prevent access to any admin files like this:
 *     ```
       if (defined('DOING_AJAX') && DOING_AJAX) {
         // AJAX is being called, permit access
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘syntax error DOCTYPE html’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alo-easymail_574f4b.svg)
 * [ALO EasyMail Newsletter](https://wordpress.org/plugins/alo-easymail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alo-easymail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alo-easymail/)
 * [Active Topics](https://wordpress.org/support/plugin/alo-easymail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alo-easymail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alo-easymail/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [batman42ca](https://wordpress.org/support/users/batman42ca/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/syntax-error-65/#post-4483756)
 * Status: resolved