Title: reporting syntax error
Last modified: August 18, 2016

---

# reporting syntax error

 *  [gamerhk](https://wordpress.org/support/users/gamerhk/)
 * (@gamerhk)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/reporting-syntax-error/)
 * hi all.
 * i am in the process of writing a plugin.
    i realize when i make a syntax error,
   nothing will be output and i have to check the apache log.
 * here is the question:
    how can i change wp so that it will report syntax error
   to client? like in normal php… if u do <? invalid syntax’ (); ?> the brwoser 
   will tell u that u have made a syntax error. how can i make wp behaves like regular
   php

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

 *  Thread Starter [gamerhk](https://wordpress.org/support/users/gamerhk/)
 * (@gamerhk)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/reporting-syntax-error/#post-439731)
 * does anyone know?
 *  Thread Starter [gamerhk](https://wordpress.org/support/users/gamerhk/)
 * (@gamerhk)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/reporting-syntax-error/#post-440066)
 * push
 *  [masquerade](https://wordpress.org/support/users/masquerade/)
 * (@masquerade)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/reporting-syntax-error/#post-440067)
 * WordPress is regular PHP. Turn your PHP error reporting on.
 *  Thread Starter [gamerhk](https://wordpress.org/support/users/gamerhk/)
 * (@gamerhk)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/reporting-syntax-error/#post-440113)
 * no
    it won’t work i have error_reporting(E_ALL) it just shows a blank page whenever
   i have error
 *  [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * (@pizdin_dim)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/reporting-syntax-error/#post-440115)
 * If you’re running under Apache, then it’s possible that your host has globally
   disabled displaying errors. Try adding these two lines to your own “.htaccess”
   file:
    ` php_flag display_errors on php_flag display_startup_errors on
 *  [Mittineague](https://wordpress.org/support/users/mittineague/)
 * (@mittineague)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/reporting-syntax-error/#post-440154)
 * Because WP parses templates, if a file has an error, you’ll only get a “blank
   page” unless you make an HTTP request directly for the plugin. eg.
    [http://www.yoursite.com/blogfolder/wp-content/plugins/yourplugin.php](http://www.yoursite.com/blogfolder/wp-content/plugins/yourplugin.php)
   If there are syntax errors you’ll then see them. Once the page is OK you’ll get
   an “option not found” type of error depending if the plugin is adding an action,
   option, filter, etc.

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

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

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [reporting](https://wordpress.org/support/topic-tag/reporting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Mittineague](https://wordpress.org/support/users/mittineague/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/reporting-syntax-error/#post-440154)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
