• Resolved phemsy

    (@phemsy)


    Hello, I just installed the Caos theme and upon activating it, it showed the below error:

    Parse error: syntax error, unexpected T_FUNCTION in
    wp-content/themes/caos/inc/rest-api/endpoints.php on line 78

    I cannot do anything on the site currently (completely blocked) because of the error. My wordpress installation is 4.4.2. I think this is the line that has the error (I used ftp and text viewer to obtain it):

    add_action( ‘rest_api_init’, function () {

    Thanks in advance for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Quema Labs

    (@nicoandrade)

    This issue was resolved on past updates.

    Hi, I’ve just installed the caos theme and now it showed this error:

    Parse error: syntax error, unexpected T_FUNCTION in /home/raut0315/public_html/amenajarecurte.ro/wp-content/themes/caos/inc/rest-api/endpoints.php on line 78

    I can’t acces my site.
    Please, I need urgently help.
    tanks

    Thread Starter phemsy

    (@phemsy)

    Hi ramonafolostina,

    I don’t know if you’ve been able to get your site up again after the crash; if not, just use ftp to get to the folder on your hosting provider where your wordpress files are stored and rename the theme’s folder (that is, caos theme) and your site should set itself to the default theme (TwentySixteen theme I think).

    After I experienced this crash on my site, I did the above and then switched to another theme thereafter. The version of my caos theme then was 1.0.5.
    But, there is a new version (1.0.7); you could try installing that to see if it helps solve the problem for you.

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

The topic ‘Parse error on line 78 after activating theme’ is closed to new replies.