• Resolved FedericaNioi

    (@federicanioi)


    Hi everybody!
    I was working on a website but, while I was installing a new theme (Genius Theme),
    has appeared this advice:
    Parse error: syntax error, unexpected ‘[‘ in /var/www/virtual/sdw-friedrichshain.de/htdocs/wp-content/themes/genius/inc/template-tags.php on line 227

    I can’t come back to my dashboard now.
    I can’t do anything.
    Could someone help me, please?
    thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Looks like you have a broken theme. Try switching to the default theme automatically by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    You can use an FTP client to access the files on your server. Your theme files are located within the wp-content/themes folder, with each theme residing within its own sub-folder.

    Delete the genius folder and you should be able to gain access to your Dashboard again.

    The error in question is related to this segment of code:

    $args = [
        'post_type'		=> 'page',
        'fields'		=> 'ids',
        'nopaging'		=> true,
        'meta_key'		=> '_wp_page_template',
        'meta_value'	=> 'template-parts/template-portfolio.php'
    ];

    I’m not familiar with this theme at all, but I would expect the above arguments to be stored as an array, which they’re not, this could be the issue although you would get better advice about this by posting on their dedicated support forum.

    Hope this helps.

    Thread Starter FedericaNioi

    (@federicanioi)

    Thanks!
    I deleted ‘genius’ folder and now it’s ok!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble while installing new theme’ is closed to new replies.