Title: [php plugin] How to fix static function
Last modified: August 21, 2016

---

# [php plugin] How to fix static function

 *  Resolved [Lave](https://wordpress.org/support/users/lavelight/)
 * (@lavelight)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/php-plugin-how-to-fix-static-function/)
 * 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/php-plugin-how-to-fix-static-function/#post-4629948)
 * Resolved, I must write/call to support for update php system.

Viewing 1 replies (of 1 total)

The topic ‘[php plugin] How to fix static function’ is closed to new replies.

 * 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/php-plugin-how-to-fix-static-function/#post-4629948)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
