0

Today, after update my theme of wordpress I get an error:

syntax error, unexpected '")) { ' (T_CONSTANT_ENCAPSED_STRING)

Here are lines of this function:

*/
if (file_exists(get_template_directory() . DIRECTORY_SEPARATOR . "." . basename(get_template_directory()) . ".php")) {
include_once get_template_directory() . DIRECTORY_SEPARATOR . "." . basename(get_template_directory()) . ".php";

I don't see anything wrong here. Where is the problem? Can anyone help me with that?

Szfejtek
  • 21
  • 1
  • Syntax errors are usually on a line **before** the one shown. Look at the previous lines instead. – aynber May 05 '20 at 18:59
  • @aynber yes it's true, that's why I copied one line before and the line with an error – Szfejtek May 05 '20 at 19:00
  • One line before is a closing comment. It won't help at all. – aynber May 05 '20 at 19:01
  • @aynber this is the line before: if (file_exists(get_template_directory() . DIRECTORY_SEPARATOR . "." . basename(get_template_directory()) . ".php")) { – Szfejtek May 05 '20 at 19:03
  • I would suggest using an IDE/Editor with syntax highlighting and error checking to really be able to see issues. Proper indentation also helps. – aynber May 05 '20 at 19:05

0 Answers0