Tagged: 

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #1051365

    Hi,

    I have uploaded a local wordpress website, but when I try to connect to it I get the following warning :
    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in class-avia-font-management-base.php on line 429

    Here is the code :
    $filter = array_map( function( $value ) { return '\.' . $value; }, $this->file_ext );

    My PHP version : 7.0

    Can you help me with this ?

    Thanks

    • This topic was modified 5 years, 11 months ago by mborel.
    #1051676

    Hey mborel,

    Which version of the theme are you running?

    Best regards,
    Rikard

    #1051814

    Hi Rikard,
    How do I know the version I am running ? Since I cannot access my WP dashboard.

    Thanks,
    Mathias

    #1052234

    Hi Mathias,

    You could go to the theme folder and open up style.css for instance?

    Best regards,
    Rikard

    #1052288

    Hi Rikard,
    I am running the last version 4.5.1
    (I have installed this update recently but I encountered the same problem with previous version).

    #1052616

    Hi,

    Thanks for the info, are you getting the same problem when running 4.5.2 (latest version)?

    Best regards,
    Rikard

    #1052716

    Hi Rikard,

    As recommended I have just installed the latest version but I am still getting the same problem and same warning.

    Thank you for your time
    Mathias

    #1052791

    Hi Mathias,

    Try upgrading your php to php7.2.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1052822
    #1052868

    Hi Mathias,

    Please try the code like this:

    
    $filter = array_map( function( $value ) { return "\.{$value}"; }, $this->file_ext );
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1054528

    Hi,

    I have tried this code. Unfortunately it doesn’t work, I get the same error.

    Best regards,
    Mathias

    #1055199

    Hi Mathias,

    Here is a thread for you to consider
    https://kriesi.at/support/topic/error-parse-error-syntax-error-unexpected-t_function/

    Best regards,
    Victoria

    #1058791

    Hi Victoria,
    I had already read this thread before. I have read it again but I still don’t see how it can help me, as the problem doesn’t seem to be related to my php version.
    Do you have another suggestion ?

    Best regards,
    Mathias

    #1060367

    Hi,

    Thanks for the update.

    Did you manually upload the theme files via FTP? I think the issue occurs because some of the theme files are corrupted or incomplete. Please get a fresh copy of the theme and upload it again.

    Best regards,
    Ismael

    #1063246

    Hi Ismael,
    I am about to give up. I have uninstalled the theme and even WP. I have installed everything again. It did not work. I tried to install the theme manually (FTP) and from WP dashboard. I still get the same error, whatever I do. I don’t know what else to do…

    Time is running and I need to get this site online soon.

    Do you have any other idea ?

    Thanks,

    Mathias

    #1063559

    Hi,

    I’m sorry to hear that you’re still having trouble activating the theme.
    Could you give us access to the site including the WP and FTP details? Make sure that uploaded theme is version 4.5.3.

    Best regards,
    Ismael

    #1063578
    This reply has been marked as private.
    #1063973

    Hi,

    I can’t login to your file server. What should be the host name or url? I tried the one above but it’s not working.

    Best regards,
    Ismael

    #1064091
    This reply has been marked as private.
    #1064457

    Hi,

    The issue occurs because your site is using an outdated version of PHP, 5.2. The minimum requirement of the theme is version 5.6 or higher. I’ve fixed the current issues for now but you will still have to upgrade PHP.

    Best regards,
    Ismael

    #1064536
    This reply has been marked as private.
    #1065751

    Hi,

    You’re welcome! I’m not familiar with OVH, unfortunately. Please keep in touch with your hosting provider for more info and don’t hesitate to open a new thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • You must be logged in to reply to this topic.