There is a website on wordpress , which needs transfer to another hosting from a domain in the Latin alphabet to a domain in Cyrillic. On the 2nd hosting, a domain with a Cyrillic domain name has been created and linked, and a corresponding folder has been created (in Latin). Transferred the site, DB, set up the conversion of the domain name using the service . As a result: it starts up in the admin panel, displays the standard theme, but in the created one it causes a 500 error - in the logs:
[24-Nov-2016 07:37:39] PHP Parse error: syntax error, unexpected '[', expecting ')' in /home/name/wp-content/themes/themes-name/front-page.php on line 116 [24-Nov-2016 07:38:57] PHP Parse error: syntax error, unexpected '[', expecting ')' in / home / name / wp-content / themes / themes-themes / front-page. php on line 116
in this place - 116 line <?php $section_gates = new WP_Query([ :
<?php $section_gates = new WP_Query([ 'post_type' => 'section_gates', 'name' => 'sektsionnye-vorota', 'post_status' => 'publish', 'posts_per_page'=> -1, 'order' => 'ASC' ]); while($section_gates->have_posts()): $section_gates->the_post(); On the Latin mirror, everything works without problems and errors at the same time. What is the reason, how to find and fix the error?
.htaccess удалил- Vasya