[Plugin: Simple Links] Fatal Errors on Install (Syntax Errors…)
-
Hi there!
I tried to install the plugin and on activation I got the following syntax errors, which I fixed manually (and then got your plugin to work ??
Parse error: syntax error, unexpected T_FUNCTION in /my-path/wp-content/plugins/simple-links/classes/simple-links.admin.class.php on line 445
This code has wrong syntax:
//Remove the Add link in the admin bar add_action( 'wp_before_admin_bar_render', function(){ global $wp_admin_bar; $wp_admin_bar->remove_menu('new-link'); });
has to be changed to:
//Remove the Add link in the admin bar add_action( 'wp_before_admin_bar_render', 'simple_links_remove_new_link_menu' ); function simple_links_remove_new_link_menu() { global $wp_admin_bar; $wp_admin_bar->remove_menu( 'new-link' ); }
The next one was:
Parse error: syntax error, unexpected T_FUNCTION in /my-path/wp-content/plugins/simple-links/widgets/init.php on line 22
this is the wrong syntax:
add_action( 'widgets_init', function(){ register_widget('SL_links_replica'); });
has to be changed to:
add_action( 'widgets_init', 'simple_links_register_widget_replica' ); function simple_links_register_widget_replica() { register_widget( 'SL_links_replica' ); }
I’m running: WP 3.4.1 and PHP 5.2.17
Otherwise a great plugin, really well done!
I also wish you’d add full internationalization to it as that would even more users bring to switch from the old system to your’s. ??
Thanks again for your great work!
-Dave from Germany ??
- The topic ‘[Plugin: Simple Links] Fatal Errors on Install (Syntax Errors…)’ is closed to new replies.