( ! ) Parse error: syntax error, unexpected end of file
Posted by: SRD (---.wb01.dyn.asp.telstra.net)
Date: December 09, 2017 06:59AM

Hi Folks,

I have downloaded my Wordpress site from remote web hosting to local WampServer.

I have replaced remote URLs with local URLs.

I receive the error:

( ! ) Parse error: syntax error, unexpected end of file \wp-content\themes\DWT\header.php on line 377

Line 377 is the last line of the file header.php.

All header.php files have to end at some stage.

Why am I receiving this error? I am using WampServer 3.0.6 & PHP 7.0.10.

Help appreciated.

Steve

Options: ReplyQuote
Re: ( ! ) Parse error: syntax error, unexpected end of file
Posted by: RiggsFolly (Moderator)
Date: December 10, 2017 07:30PM

Hi

This normally means there is something missing in the code. It can be a `}` or almost anything.

As this code came from a live site where error reporting is turned off its quite possible this error have been there for ever.

Also was your site running on PHP7 on the live hosted site?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.