-1

Parse error: syntax error, unexpected end of file in /home/u190966517/domains/manualsdock.com/public_html/wp-includes/option.php on line 2515

There is an error in wp-includes/option.php and i didn't do anything in this file its a wp core file.

now the last two lines where its showing the error is blank so i remove the extra space. now its showing on line no# 2515.

Then I check the starting of the file and 2 bracket are opening but not closing at the bottom. I close bracket in the end of the code and the file error gone but than I got a new error.

This is the new error after adding curly bracket in the end of the file which were mising

These are core file and im not expert in php. just guide me how to solve this issue.

ADyson
  • 57,178
  • 14
  • 51
  • 63
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 22 '23 at 09:19
  • There is a Parse error: syntax error, unexpected end of file, in the in wp-includes/option.php. as it is a core wp file i dont know why this error coming and how to resolve this error – Yameen bhutta Aug 22 '23 at 09:32
  • Then you can replace the core file with an "original" one. Just download WordPress with the correct version you're using and extract the option.php and replace it. In any case, make a backup of your old file in the case somebody did in fact edit the core file. – CodeBrauer Aug 22 '23 at 09:40
  • okay I'm on it thanku – Yameen bhutta Aug 22 '23 at 10:01

0 Answers0