syntax error in version 2.0
-
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!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘syntax error in version 2.0’ is closed to new replies.