Title: [plugin write]Static function error
Last modified: August 21, 2016

---

# [plugin write]Static function error

 *  Resolved [Lave](https://wordpress.org/support/users/lavelight/)
 * (@lavelight)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-writestatic-function-error/)
 * Hi everyone 🙂
 * I writing plugin and i have some problems.
    Working on localhost – xampp and 
   here check my plugin. Plugin works have 100% correct on my localhost. Problem
   started when i transfer file on real host
 * Website error
 *     ```
       Parse error: syntax error, unexpected T_STATIC in
       ```
   
 * This is line:
 *     ```
       if(get_current_screen()->id == 'toplevel_page_'.static::$plugin_id){
       ```
   
 * up script
 *     ```
       class blabla{
       private static $plugin_id = 'blablabla';
       ```
   
 * Host use php 5.4.21

Viewing 1 replies (of 1 total)

 *  Thread Starter [Lave](https://wordpress.org/support/users/lavelight/)
 * (@lavelight)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-writestatic-function-error/#post-4631708)
 * Resolved, I must write/call to support for update php system.

Viewing 1 replies (of 1 total)

The topic ‘[plugin write]Static function error’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [Lave](https://wordpress.org/support/users/lavelight/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/plugin-writestatic-function-error/#post-4631708)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
