If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Windows Server / Tried to remove "Congratulations!..." and the whole store disappeared on me! HELP!

Tried to remove "Congratulations!..." and the whole store disappeared on me! HELP!

Started by czar on 7 Jan 2013, 4:31 AM · Views: 2,012

Results 1 to 10 of 10
7 Jan 2013, 4:31 AM
#1
czar avatar

czar

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Post #1 by czar

HELP!

I thought I was starting to get the hang of this stuff after almost eight months of banging away on the store...

I upgraded from 150 to 151 just before the New Year. All went well, but lost the main page content, and the header... no biggie. So I slapped a note of explanation on the main page, did a partial fix on the header, and went on vacation.

Tonight I tried to remove the "Congratulations!..." from the top of the main page that appeared with the 151 upgrade, and I goofed somewhere badly, as my whole store has disappeared. I mean it is GONE.

I have no idea what to even begin doing to fix this one...

Oh... when I upgraded to 151, the system asked if I wanted to save the backup to the server. I said "yes", but sure can't find it now.

https://www.survivit.net

7 Jan 2013, 6:13 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Post #2 by picandnix

look in your log folder for error logs, what is the most recent one, post it here please. Did you by chance remove the ' ' when removing Congratulations...?

7 Jan 2013, 6:44 AM
#3
czar avatar

czar

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Post #3 by czar

Left the beginning and terminal ' symbols, was very careful to do that, but had two spaces inserted between them so I wouldn't confuse them with a " symbol later on.

Where do I find the error logs?

7 Jan 2013, 6:56 AM
#4
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Post #4 by picandnix

Czar:

Left the beginning and terminal ' symbols, was very careful to do that, but had two spaces inserted between them so I wouldn't confuse them with a " symbol later on.

Where do I find the error logs?

In the root of your hosting, usually publicHTML.

7 Jan 2013, 7:06 AM
#5
czar avatar

czar

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Post #5 by czar

myDEBUG-1357541990-867017.log
ASCII text
[07-Jan-2013 06:59:50 UTC] PHP Parse error: syntax error, unexpected T_STRING in /home/surviv31/public_html/includes/languages/english.php on line 547

Suddenly I'm getting quite a few of these, all from today:

/public_html/logs/myDEBUG-1357541990-867017.log
/public_html/logs/myDEBUG-1357541381-877085.log
/public_html/logs/myDEBUG-1357541098-930192.log
/public_html/logs/myDEBUG-1357541095-802425.log
/public_html/logs/myDEBUG-1357540848-168563.log
/public_html/logs/myDEBUG-1357540787-171105.log
/public_html/logs/myDEBUG-1357540790-246723.log
/public_html/logs/myDEBUG-1357540699-696058.log
/public_html/logs/myDEBUG-1357540692-45727.log
/public_html/logs/myDEBUG-1357540315-105708.log
/public_html/logs/myDEBUG-1357539909-869792.log
/public_html/logs/myDEBUG-1357539803-245416.log
/public_html/logs/myDEBUG-1357539786-102461.log
/public_html/logs/myDEBUG-1357539781-825829.log
/public_html/logs/myDEBUG-1357539384-695163.log
/public_html/logs/myDEBUG-1357539361-931097.log
/public_html/logs/myDEBUG-1357539248-228885.log
/public_html/logs/myDEBUG-1357539097-925682.log
/public_html/logs/myDEBUG-1357539068-444208.log
/public_html/logs/myDEBUG-1357539094-786100.log
/public_html/logs/myDEBUG-1357538701-375692.log
/public_html/logs/myDEBUG-1357538714-973914.log
/public_html/logs/myDEBUG-1357538366-648129.log
/public_html/logs/myDEBUG-1357538181-119222.log
/public_html/logs/myDEBUG-1357537756-816586.log
/public_html/logs/myDEBUG-1357537488-954512.log
/public_html/logs/myDEBUG-1357537434-712473.log
/public_html/logs/myDEBUG-1357537123-399285.log
/public_html/logs/myDEBUG-1357536933-695410.log
/public_html/logs/myDEBUG-1357536866-473817.log
/public_html/logs/myDEBUG-1357536791-202295.log
/public_html/logs/myDEBUG-1357536510-910461.log
/public_html/logs/myDEBUG-1357536471-775635.log
/public_html/logs/myDEBUG-1357536350-415794.log
/public_html/logs/myDEBUG-1357536344-431900.log
/public_html/logs/myDEBUG-1357536324-467045.log

My text editor doesn't count lines, and getting accurately up to line 574 will be trying. What is a "T-STRING" and will it stand out for any reason?

7 Jan 2013, 8:02 AM
#7
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #7 by design75

change ```php
define('EMPTY_CART_TEXT_NO_QUOTE', 'We're Sorry! Your session has expired ... Please update your shopping cart for Shipping Quote ...');

to```php
  define('EMPTY_CART_TEXT_NO_QUOTE', 'We\'re Sorry! Your session has expired ... Please update your shopping cart for Shipping Quote ...');

you used a ' in the text, this should be preceded by a \ or php thinks the function is closed

And you really should get yourselves a better editor like notepad++

7 Jan 2013, 8:09 AM
#8
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Post #8 by picandnix

Design75:

change ```php
define('EMPTY_CART_TEXT_NO_QUOTE', 'We're Sorry! Your session has expired ... Please update your shopping cart for Shipping Quote ...');

> to```php
  define('EMPTY_CART_TEXT_NO_QUOTE', 'We\'re Sorry! Your session has expired ... Please update your shopping cart for Shipping Quote ...');

you used a ' in the text, this should be preceded by a \ or php thinks the function is closed

And you really should get yourselves a better editor like notepad++

Nice one :-)

7 Jan 2013, 8:17 AM
#9
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #9 by design75

picandnix:

Nice one :-)
:blush: thanks, but after a while you start to see patterns in these kind of errors. Especially if you have made them yourselves :laugh:. Oh and notepad++ is a great help to, because it recognises the error and you can see a different/wrong colouring of the code.
:thumbsup: for notepad++

7 Jan 2013, 7:12 PM
#10
czar avatar

czar

New Zenner

Join Date:
Apr 2012
Posts:
28
Plugin Contributions:
0

Post #10 by czar

Design75:

change ```php
define('EMPTY_CART_TEXT_NO_QUOTE', 'We're Sorry! Your session has expired ... Please update your shopping cart for Shipping Quote ...');

> to```php
  define('EMPTY_CART_TEXT_NO_QUOTE', 'We\'re Sorry! Your session has expired ... Please update your shopping cart for Shipping Quote ...');

you used a ' in the text, this should be preceded by a \ or php thinks the function is closed

And you really should get yourselves a better editor like notepad++

It is really amazing how one single keystroke can wipe out a whole store. I'm sure that there are hundreds if not thousands of us users who know just enough about PHP to be really dangerous, and it keeps you pros on your toes quite a bit.

A million thanks, and a Happy New Year to all!