Tagged: parse error
-
AuthorPosts
-
January 8, 2019 at 12:49 pm #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 429Here 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, 10 months ago by mborel.
January 9, 2019 at 9:59 am #1051676January 9, 2019 at 1:14 pm #1051814Hi Rikard,
How do I know the version I am running ? Since I cannot access my WP dashboard.Thanks,
MathiasJanuary 10, 2019 at 8:33 am #1052234Hi Mathias,
You could go to the theme folder and open up style.css for instance?
Best regards,
RikardJanuary 10, 2019 at 11:46 am #1052288Hi 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).January 11, 2019 at 7:49 am #1052616Hi,
Thanks for the info, are you getting the same problem when running 4.5.2 (latest version)?
Best regards,
RikardJanuary 11, 2019 at 12:16 pm #1052716Hi 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
MathiasJanuary 11, 2019 at 5:21 pm #1052791Hi Mathias,
Try upgrading your php to php7.2.
If you need further assistance please let us know.
Best regards,
VictoriaJanuary 11, 2019 at 6:05 pm #1052822January 11, 2019 at 7:49 pm #1052868Hi 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,
VictoriaJanuary 16, 2019 at 11:51 am #1054528Hi,
I have tried this code. Unfortunately it doesn’t work, I get the same error.
Best regards,
MathiasJanuary 17, 2019 at 10:16 pm #1055199Hi Mathias,
Here is a thread for you to consider
https://kriesi.at/support/topic/error-parse-error-syntax-error-unexpected-t_function/Best regards,
VictoriaJanuary 25, 2019 at 4:38 pm #1058791Hi 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,
MathiasJanuary 30, 2019 at 8:10 am #1060367Hi,
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,
IsmaelFebruary 5, 2019 at 6:55 pm #1063246Hi 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
February 6, 2019 at 11:19 am #1063559Hi,
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,
IsmaelFebruary 6, 2019 at 12:24 pm #1063578This reply has been marked as private.February 7, 2019 at 10:01 am #1063973Hi,
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,
IsmaelFebruary 7, 2019 at 1:03 pm #1064091This reply has been marked as private.February 8, 2019 at 8:02 am #1064457Hi,
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,
IsmaelFebruary 8, 2019 at 11:37 am #1064536This reply has been marked as private.February 12, 2019 at 3:22 am #1065751 -
AuthorPosts
- You must be logged in to reply to this topic.