-
AuthorPosts
-
May 30, 2018 at 4:02 pm #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 :)
May 30, 2018 at 4:36 pm #964373Hey 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,
NikkoMay 30, 2018 at 4:46 pm #964381Hi 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! :)
May 30, 2018 at 5:16 pm #964400additional 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.
May 30, 2018 at 5:28 pm #964407nope, problem still persists
May 30, 2018 at 5:28 pm #964408the line 429 content is
$filter = array_map( function( $value ) { return ‘\.’ . $value; }, $this->file_ext );
don´t know if it helps
May 30, 2018 at 5:53 pm #964426Hi 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,
NikkoMay 30, 2018 at 7:15 pm #964448Hi 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,
NikkoMay 30, 2018 at 9:36 pm #964516Thank you very much, Mr. Nikko! Wish you and your team a very nice weekend! Best regards
May 30, 2018 at 10:52 pm #964545ps. problem solved, it was the php version just like Mr. Nikko knew since the beginning :)
May 30, 2018 at 10:56 pm #964549Hi,
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 -
AuthorPosts
- The topic ‘Error "Parse error: syntax error, unexpected T_FUNCTION"’ is closed to new replies.