Title: syntax error in version 2.0
Last modified: August 30, 2016

---

# syntax error in version 2.0

 *  [piccart](https://wordpress.org/support/users/piccart/)
 * (@piccart)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-version-20/)
 * Hello,
    I am running a few updates on my test site (that’s why I still have wp
   4.2.1) and when updating your plugin I ran on a syntax error which crashed everything.
 * Parse error: syntax error, unexpected ‘[‘ in /membri/*******/wp-content/plugins/
   custom-database-tables/functions.php on line 10
 * I had a look and indeed I am a bit lost in front of that syntax..
 *     ```
       $lib_includes = [];
   
       $files = [
         'utils.php',         // Common utility class. Base class, and this class is available at single
         'core.php',         // Plugin core class
         'config.php',       // Configuration class
         'validate.php',     // Validate class for plugin inherited a common validator
         'db.php',            // Database class with wrapping wpdb
         'ajax.php',          // Trait for using ajax
         'tmpl.php',          // Trait for dynamic rendering templates
         'shortcodes.php', // Trait for shortcodes definitions
         'webapis.php',     // Trait for web apis definitions
         'extras.php',       // Trait for enhancements (for customization)
         'admin.php',       // Entry point class for admin panels
         'main.php',        // Entry point class for web frontend
         'init.php'          // Instance factory & plugin activater
       ];
       ```
   
 * though, I’ve tried to quickly change it to array(), and change the $files to 
   array( …. ) as well, but then another similar error appeared on another file 
   in /lib/ folder, so I gave up..
 * let me know if you need anything else in order to fix the bug
 * cheers!
 * [https://wordpress.org/plugins/custom-database-tables/](https://wordpress.org/plugins/custom-database-tables/)

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

 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-version-20/#post-6600599)
 * Thank you very much for reporting.
 * You’ve encountered that error, because your environment is less than PHP5.4.
   
   The latest version plugin do work at PHP 5.4 or more.
 * From version 2.0 working environment must be PHP 5.4 or more. Because it is using
   a shortened syntax “[]” of array, “trait” and “closure bind” added at PHP 5.4.
 * If you are using a version earlier than PHP 5.3 and you can not upgrade, please
   use a version 1.x of plugin.
 * You can get past all the version from the following link.
 * [https://wordpress.org/plugins/custom-database-tables/developers/](https://wordpress.org/plugins/custom-database-tables/developers/)
 * Thank you,
 *  Thread Starter [piccart](https://wordpress.org/support/users/piccart/)
 * (@piccart)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-version-20/#post-6600713)
 * ah ok!
    good to know then. 🙂
 * though, I think you should specify in the changelog and in the plugin description,
   that version 2+ are compatible only with php 5.4+
    it will probably also save
   you the hassle of getting bad reviews or help requests. 😉
 * cheers!
 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-version-20/#post-6600739)
 * Thank you very much for your attention!
 * As you said, I will express the operating environment of the plugin at the next
   update.

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

The topic ‘syntax error in version 2.0’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-database-tables_e4e2e2.svg)
 * [Custom DataBase Tables](https://wordpress.org/plugins/custom-database-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-database-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-database-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-database-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-database-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-database-tables/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ka2](https://wordpress.org/support/users/ka2/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-version-20/#post-6600739)
 * Status: not resolved