Forums / General Questions / Entire store is blank (PHP Parse error: syntax error, unexpected $end)

Entire store is blank (PHP Parse error: syntax error, unexpected $end)

Locked

Views: 2,392

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Nov 2010, 5:44 PM
#1
susieq228 avatar

susieq228

New Zenner

Join Date:
Oct 2010
Posts:
14
Plugin Contributions:
0

Entire store is blank (PHP Parse error: syntax error, unexpected $end)

I am having a similar, but worse, problem. My entire store is blank. Every page. Logic tells me that the issue lies in my index.php or one of the primary templates, but I don't know PHP at all, so even looking at them, I would not know what I was looking at. I've just been stumbling along with a basic HTML knowledge and a LOT of reading here. :)

I had many changes to make last night, and while I always keep a mirror offline, it occurred to me that it's been a long time since I'd done a full server>local backup, so I did one. Then I made numerous changes to numerous files and locations, and let Filezilla re-upload the entire thing using the "Overwrite only if newer" selection.

I tried everything in the tutorial suggested earlier in this thread, but 1. my admin area is all blank, too, and 2. creating am /includes/local/configure.php file, as directed, changes nothing. Everything is still blank.

My suspicion is that something got lost last night in the server>local backup... trying to copy too many files at once. I tried copying one folder from local>server at a time today, but I think the damage already occured.

I'm at a complete loss.

My store is at: http://www.scrapconcepts.com/store/

Since it's faster than a redirect and provides another type of backup, I also have a straight HTML copy of what the store's index.php used to look like at http://www.scrapconcepts.com/

I've searched this forum quite a bit, but all responses so far only offer the tutorial with steps that I've already tried.

Thank you for any help.

4 Nov 2010, 5:49 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

If using v1.3.9 ... what debug log messages do you see in /cache directory?

If using an older Zen Cart, you could get from the Free Software Add Ons the:
Debug Tool

and install that then trigger the error and see what comes up as the problem ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Nov 2010, 6:34 PM
#3
susieq228 avatar

susieq228

New Zenner

Join Date:
Oct 2010
Posts:
14
Plugin Contributions:
0

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

I'm using v1.3.9.

The most current files in cache and docs are a few weeks old, so I didn't think they'd be relevent?

I'll try downloading the tool, thank you. I misread, I guess, and thought it would just add the module that's already in my admin section, which I can't see...

4 Nov 2010, 6:58 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

If you are using v1.3.9 ... do NOT install the Debug Tool ... it is already built into v1.3.9 ...

When checking the files in the:
/cache

directory, be sure that you refresh ...

If you have old *.log files ... delete them all and then trigger the error again and refresh the directory to see if anything shows ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Nov 2010, 7:06 PM
#5
susieq228 avatar

susieq228

New Zenner

Join Date:
Oct 2010
Posts:
14
Plugin Contributions:
0

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

That didn't work. I renamed the original debug tool with an "OLD" prefix and installed the new one. That worked.

It found this error: [04-Nov-2010 18:54:09] PHP Parse error: syntax error, unexpected $end in /home/cmmconce/public_html/scrapconcepts/store/includes/functions/functions_email.php on line 654

Seems weird that that would bring the whole site down, but I'll go look and see if I can see what the problem is. It's still Greek to me so far. :)

Obvious to anyone else what the above means?

Thank you, again.

4 Nov 2010, 7:08 PM
#6
susieq228 avatar

susieq228

New Zenner

Join Date:
Oct 2010
Posts:
14
Plugin Contributions:
0

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

Looks like the file just stops abruptly at line 644...

Perhaps as part of an issue when copying from server>local as the original tutorial suggests?

Still leaves me completely stymied regarding how to fix or replace. :)

4 Nov 2010, 7:10 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

You'll need to use your FTP program to upload a clean copy of that file to your server.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Nov 2010, 7:28 PM
#8
susieq228 avatar

susieq228

New Zenner

Join Date:
Oct 2010
Posts:
14
Plugin Contributions:
0

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

Where can I find a clean copy? My backup is messed up now, too.

4 Nov 2010, 7:31 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

You can find a link to download all versions of Zen Cart on the home page of https://www.zen-cart.com

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Nov 2010, 7:49 PM
#10
susieq228 avatar

susieq228

New Zenner

Join Date:
Oct 2010
Posts:
14
Plugin Contributions:
0

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

I thought that was a full re-install. I didn't realize you could pull specific pages.

Thank you both very much for all of the help. I thought I was going to wind up completely rebuilding the whole thing. :)

4 Nov 2010, 8:40 PM
#11
susieq228 avatar

susieq228

New Zenner

Join Date:
Oct 2010
Posts:
14
Plugin Contributions:
0

Re: Entire store is blank (PHP Parse error: syntax error, unexpected $end)

It didn't work. The admin panel is back, but the entire store is still blank. I tried repeating the debugging process, but it doesn't return any new/additional errors.

I guess I'm reinstalling and reconfiguring everything. At least I can just re-upload things like the "Define Pages".

Thanks, again.