• Resolved KHannibal

    (@khannibal)


    Hi Florian !

    Your theme looks very good, I’d be glad to use it and to translate it into French. But every time I try to activate it (last version available so far, 1.2.3), I get this error :

    Parse error: syntax error, unexpected T_FUNCTION in /home/.../subdomains/theme/httpdocs/wp-content/themes/fanoe/functions.php on line 497

    And then I have to deactivate the theme by FTP and use the default one. Do you know what’s happening ? Thanks for your help ! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Florian Brinkmann

    (@webdesign-florian-brinkmann)

    Hi,
    I will try to find the error!

    Florian Brinkmann

    (@webdesign-florian-brinkmann)

    Okay, I have looked around in the web and it seems, that you are using a PHP Version which is to old … What version of PHP are you using?
    This is the code from the Error:

    add_action('widgets_init', function()
    {
         return register_widget('Fanoe_Social_Media_Widget');
    });

    I hope we can fix the problem and it would be nice, if you can send me the french Translation after fixing it ??

    Florian Brinkmann

    (@webdesign-florian-brinkmann)

    Okay, maybe I have a solution.
    Try to replace the code above in the functions.php with the following and then upload the Theme to your site. If the problem is fixed then, I will change it for the next official update.

    // register Fanoe_Social_Media_Widget
    function register_fanoe_social_media_widget() {
        register_widget( 'Fanoe_Social_Media_Widget' );
    }
    add_action( 'widgets_init', 'register_fanoe_social_media_widget' );

    Thread Starter KHannibal

    (@khannibal)

    The PHP version of the client is 5.0.90 and the server’s one is 5.1.50.
    And the fix you proposed did the job, thank you ! ??

    I’ll try to send you the translation files between tomorrow and Tuesday. ??

    thanks a lot, it worked for me.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parse error: syntax error, unexpected T_FUNCTION’ is closed to new replies.