• Resolved cscsflep

    (@cscsflep)


    excuse my english, i’m french, and imake a google traduction for my probleme

    My current WP configuration

    PHP / MySQL Version: 5.2
    Theme used: agama
    Extensions in place: woo commerce
    Name of the host: ovh
    Website address: http://www.cscsflep.com

    Problem (s) encountered: Hello, due to a billing problem, OVH a cut to the domain name and to the hosting of the site.

    The bill has been regularized, so I get my services but when I want to connect to the site I have an error:

    <b> Parse Error </ b>: Syntax error, ‘[‘ Unexpected in <b> /home/cscsflep/www/wp-content/themes/agama/framework/class-agama-core.php </ b> on line <b> 48 </ b>

    Here is line 48: add_action (‘wp_head’, [$ this, ‘IE_Scripts’]);

    Thank you for helping me because I do not see what has not happened, knowing that nothing has been changed.

    This problem is right after the reactivation of the site

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @cscsflep,

    Just replace next code:
    add_action (‘wp_head’, [$ this, ‘IE_Scripts’]);

    With this one:
    add_action( 'wp_head', array( $this, 'IE_Scripts ) );

    Or even better you should upgrade your server PHP version to 5.6+ (7.x recommended).

    Best Regards

    Thread Starter cscsflep

    (@cscsflep)

    ok, thanks, i try

    Thread Starter cscsflep

    (@cscsflep)

    now, i have the same problem on line 49

    Parse error: syntax error, unexpected ‘[‘ in /home/cscsflep/www/wp-content/themes/agama/framework/class-agama-core.php on line 49

    Thread Starter cscsflep

    (@cscsflep)

    ok, problem resolve with upgrate php

    thanks

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

The topic ‘Probleme “parse error : syntaxe error” sur theme agama’ is closed to new replies.