( ! ) 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 7 Pro 32bit) (Wampserver 3.1.1 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.7.7> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote


Sorry, only registered users may post in this forum.