Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Translation Extension error

Open arlensot opened this issue 11 years ago • 3 comments

After installing the Translation Extension, my site went down

Parse error: syntax error, unexpected T_FUNCTION in /home/dcolores/www/wp-content/plugins/unyson/framework/extensions/translation/class-fw-extension-translation.php on line 41

Can you help me how to fix it? URGENT!

arlensot avatar May 15 '15 14:05 arlensot

There is an anonymous function which doesn't not work in php 5.2.

We will fix it in the next release.

For now, you can fix it manually by replacing those lines with:

add_action( 'widgets_init', create_function('', "register_widget( 'FW_Widget_Language_Switcher' );"));

ghost avatar May 15 '15 15:05 ghost

Thanks a lot!

arlensot avatar May 15 '15 15:05 arlensot

Thank you for reporting.

ghost avatar May 15 '15 16:05 ghost