Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #964342

    Hi friends, this is Gabriel from Brazil

    I would like to request a little help here. When updating my Enfold theme to 4.4, my website stopped working. Here is the error:

    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home/www/mirassol.info/wp-content/themes/enfold/framework/php/font-management/class-avia-font-management-base.php on line 429

    Here is the website: http://www.mirassol.info

    Any help would be appreciated

    Thanks in advance and sorry for my awful english language knowledge, hope you can understand me :)

    #964373

    Hey gabrielprado,

    Thanks for giving us access.
    Can you tell us what php version you are using?
    If you are using below 5.6, please try to update your php version to atleast 5.6 otherwise, try re-install Enfold manually via ftp or cpanel.
    Hope this helps.

    Best regards,
    Nikko

    #964381

    Hi Mr. Nikko

    I am a totally newbie on all this website hosting and managing, ok? In my hosting control panel, the PHP version is marked as 7.0.27-0+deb9u1. Before installing manually, I would like to ask you some questions, please don´t laugh haha:

    1. the manual reinstall is just accessing via FTP and copying the “enfold” folder in themes?
    2. if affirmative, all my website data will not be erased, right?

    Thank you very much for your help! :)

    #964400

    additional info: I have downloaded the theme again from themeforest and manually installed in another site. same error:

    http://gabrielprado.com/viagens/

    it seems like the themeforest file is corrupted or my download is. Now I´m downloading it again and manually installing it again to see if it helps.

    #964407

    nope, problem still persists

    #964408

    the line 429 content is

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

    don´t know if it helps

    #964426

    Hi gabrielprado,

    Yes we won’t laugh don’t worry ;)
    1. Yes, but I do it in this order usually, put site in maintenance mode (using maintenance plugin that you can search) then in Appearance > Themes switch to a default wordpress theme. Go to cpanel or ftp, delete enfold and upload the new one. Just replacing files sometimes cause some issues, so I prefer to delete and upload the latest version.

    2. Yes, database will be kept intact with this process so it will be saved, but just for precaution, making a backup first is ideal.

    Line 429 on my installation is the same, so I don’t think that is the issue, but I’ll check your site.

    Best regards,
    Nikko

    #964448

    Hi gabrielprado,

    I have actually checked your site and the enfold you uploaded isn’t complete and I have fixed it.
    The error appears again but this one shows because the php version you’re using is 5.2.17
    You can click on the link in private content, you can remove the file that shows your php information after checking it.
    You might need assistance from your webhost to upgrade your php version to 5.6 since the lower versions are already outdated.

    Best regards,
    Nikko

    #964516

    Thank you very much, Mr. Nikko! Wish you and your team a very nice weekend! Best regards

    #964545

    ps. problem solved, it was the php version just like Mr. Nikko knew since the beginning :)

    #964549

    Hi,

    Glad Nikko could help! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Yigit

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