Forums / General Questions / Site doesn't load anymore???!!! WHY?

Site doesn't load anymore???!!! WHY?

Locked

Started by rcmonster on 21 Dec 2008, 10:45 PM · Views: 3,464

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
21 Dec 2008, 10:45 PM
#1
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Site doesn't load anymore???!!! WHY?

Hi all,

My site was working fine. Then I changed a line on the index.php file -some text on the site.

/rcmonster.co.uk/includes/languages/english/index.php

And it stopped loading, just a white screen now:yuck:

https://www.rcmonster.co.uk

I changed the index.php file back to the original, but still not working!!???

The admin page works so server must be OK.

ANy ideas?

Thanks

Paul

22 Dec 2008, 8:20 AM
#3
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Thanks for the info. Well the debug file says line 54, but I cant see a problem there. I have pasted the file contents below with the error line in red:

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $ */ define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>'); // Showcase vs Store if (STORE_STATUS == '0') { define('TEXT_GREETING_GUEST', 'Hi, <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?'); } else { define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.'); } define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?'); define('TEXT_INFORMATION', 'RC Monster'); //moved to english //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products'); //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) { // This section deals with product-listing page contents define('HEADING_TITLE', 'Available Products'); define('TABLE_HEADING_IMAGE', 'Product Image'); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Filter Results by:'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { // This section deals with the "home" page at the top level with no options/products selected /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Welcome to RC Monster!'); } elseif ($category_depth == 'nested') { // This section deals with displaying a subcategory /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Welcome to RC Monster'); } ?>

Can anyone tell me if this is OK? or is there a program I can paste it into to tell me??

Thanks

Paul

22 Dec 2008, 11:15 AM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Site doesn't load anymore???!!! WHY?

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
define('TEXT_SHOW', 'Filter Results by:');
define('TEXT_BUY', 'Buy 1 '');
define('TEXT_NOW', '' now');
define('TEXT_ALL_CATEGORIES', 'All Categories');
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

That character in red should be a single quote.

22 Dec 2008, 11:47 AM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Site doesn't load anymore???!!! WHY?

Thanks, but the interesting thing is that it's a double single quote (as opposed to a quotation mark) in a fresh copy of that file, so I don't know if that's right or not.

22 Dec 2008, 11:54 AM
#8
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

stevesh:

Thanks, but the interesting thing is that it's a double single quote (as opposed to a quotation mark) in a fresh copy of that file, so I don't know if that's right or not.

my default zen files reads:

 define('TEXT_BUY', 'Buy 1 \' ');
```with no space in beween.  It looked like there is a space but i checked with my keyboard and no problem with the fresh copy.  Funky stuff.
22 Dec 2008, 11:59 AM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Methinks that "includes/languages/english/index.php" is the wrong file to be dealing with.

Did a copy & paste of the above code into my Editor and nothing wrong with the syntax. Problem must be somewhere else / some other file.

The learning is in the doing.

Potent Products

22 Dec 2008, 12:05 PM
#10
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Website Rob:

Methinks that "includes/languages/english/index.php" is the wrong file to be dealing with.
Did a copy & paste of the above code into my Editor and nothing wrong with the syntax. Problem must be somewhere else / some other file.

Thank you for your comment WB,

Was he adding some sort of mod into zen cart? Hey rcmonster, let us know what you were doing right before you got your white-screen-of-death.

22 Dec 2008, 1:16 PM
#11
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Thanks for your help guys, I have changed the quote mark, but still not working! :(

Before I got the WSOD I went to the admin password section for a snoop around, but I don't think I changed anything. Then I went to the define pages> main page and changed a gif file on that page. It all worked fine until I deleted a row of text that I did not want to show anymore (plus some character bits maybe!). When I refreshed I got the WSOD.

What now?!

22 Dec 2008, 1:39 PM
#12
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Ran debugger again and it said line 46 was bad. Here it is:

define('TEXT_NOW', '' now');

Can someone tell me what is wrong with this??

Thanks

22 Dec 2008, 5:45 PM
#13
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

bump! thanks!

22 Dec 2008, 5:58 PM
#14
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Recent debug says: [22-Dec-2008 17:55:29] PHP Parse error: syntax error, unexpected T_STRING in /home/www/rcmonster.co.uk/includes/languages/english/index.php on line 46

Line 46 now says:

define('TEXT_NOW', ''now');

Thanks

22 Dec 2008, 6:04 PM
#15
drbyte avatar

drbyte

Sensei

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

Re: Site doesn't load anymore???!!! WHY?

How about the 5 lines before and after that?

.
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.

22 Dec 2008, 6:06 PM
#16
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

This is the whole lot:

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $ */ define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>'); // Showcase vs Store if (STORE_STATUS == '0') { define('TEXT_GREETING_GUEST', 'Hi, <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?'); } else { define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.'); } define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?'); define('TEXT_INFORMATION', 'RC Monster'); //moved to english //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products'); //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) { // This section deals with product-listing page contents define('HEADING_TITLE', 'Available Products'); define('TABLE_HEADING_IMAGE', 'Product Image'); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Filter Results by:'); define('TEXT_BUY', 'Buy 1 \'); define('TEXT_NOW', '\'now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { // This section deals with the "home" page at the top level with no options/products selected /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Welcome to RC Monster!'); } elseif ($category_depth == 'nested') { // This section deals with displaying a subcategory /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Welcome to RC Monster'); } ?>

Thanks Dr!

22 Dec 2008, 6:20 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Site doesn't load anymore???!!! WHY?

Line 45 is your problem:> rcmonster:

define('TEXT_BUY', 'Buy 1 ');

You've added a slash before the closing ' mark, thus making it no longer a closing ' mark.

You only add \ marks to preserve ' marks between existing ' marks.

.
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.

22 Dec 2008, 6:28 PM
#18
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Thanks Dr, you were right, the Syntax is now OK (I checked it on an online checker?!). But Screen is still white....?

22 Dec 2008, 6:31 PM
#19
rcmonster avatar

rcmonster

New Zenner

Join Date:
Nov 2008
Location:
Canterbury
Posts:
44
Plugin Contributions:
0

Re: Site doesn't load anymore???!!! WHY?

Now debugger says:

[22-Dec-2008 18:27:36] PHP Parse error: syntax error, unexpected T_STRING in /home/www/rcmonster.co.uk/includes/languages/english/index1.php on line 54

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $ */ define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>'); // Showcase vs Store if (STORE_STATUS == '0') { define('TEXT_GREETING_GUEST', 'Hi, <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?'); } else { define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.'); } define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?'); define('TEXT_INFORMATION', 'RC Monster'); //moved to english //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products'); //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) { // This section deals with product-listing page contents define('HEADING_TITLE', 'Available Products'); define('TABLE_HEADING_IMAGE', 'Product Image'); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Filter Results by:'); define('TEXT_BUY', 'Buy 1'); define('TEXT_NOW', '\'now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { // This section deals with the "home" page at the top level with no options/products selected /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Welcome to RC Monster!'); } elseif ($category_depth == 'nested') { // This section deals with displaying a subcategory /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/ define('HEADING_TITLE', 'Welcome to RC Monster'); } ?>

Paul

22 Dec 2008, 11:34 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: Site doesn't load anymore???!!! WHY?

Why do you have an "index1.php" file anyway?

.
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.