Forums / Templates, Stylesheets, Page Layout / can't change includes/languages/english/index.php!

can't change includes/languages/english/index.php!

Locked

Views: 1,589

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
28 Aug 2009, 1:10 AM
#1
therealex avatar

therealex

New Zenner

Join Date:
Jun 2006
Posts:
42
Plugin Contributions:
0

can't change includes/languages/english/index.php!

This is nuts. I'm using one of the available custom templates (EzBlue). I wanted to change the "Congratulations, you have successfully installed...", so I followed the directions and changed includes/languages/english/index.php.
The whole index page disappeared. I had made a backup, so I installed that. Page came back. I made a folder named "custom" and put the new index in there - nada. The page didn't change. I put the new index into the "classic" folder. No change. I switched back to the "classic" template - the page is gone.
Deleted the new index from "classic" - page came back, the default Zencart one.
What am I missing here? It seems that it's something to do with the EzBlue not looking for the template. I even created an EzBlue directory in includes/languages/english/, but when I added the changed index.php to it - yup, the page disappeared.
Any help would be greatly appreciated. I'm stumped!

28 Aug 2009, 1:48 AM
#2
slomojojo avatar

slomojojo

Zen Follower

Join Date:
Feb 2009
Posts:
142
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

You most likely left out a punctuation mark at the end of the sentence when you changed index.php, such as:

' ) ; }

Compare the backup you made carefully.

28 Aug 2009, 2:33 AM
#3
therealex avatar

therealex

New Zenner

Join Date:
Jun 2006
Posts:
42
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

Thanks, but nope. I'm not a programmer, but I've screwed up enough CGI and HTML stuff to be aware of that. This is why it's so frustrating - I can't see ANYTHING wrong other than changing the darn phrase.
Thanks for the reply, though!

28 Aug 2009, 3:03 AM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

Get either WinMerge or Bond Compare to help you compare the 2 versions of the file. Problems like you describe are usually caused by missing punctuation (as slomojojo said) or incorrectly edited php files.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

28 Aug 2009, 3:22 AM
#5
therealex avatar

therealex

New Zenner

Join Date:
Jun 2006
Posts:
42
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

I have WinMerge. I checked it, and other than the change of statements, it's exactly the same. There are no punctuation errors. Could it be something about the template?
I did some changes on another site and it all worked like a charm. That one used the default Zencart template. Could it be something about this particular template - or any custom template?

28 Aug 2009, 11:21 AM
#6
stevesh avatar

stevesh

Black Belt

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

Re: can't change includes/languages/english/index.php!

Just out of curiosity, what did you change the message to?

An unescaped special character (apostrophe, quotation mark, etc.) will cause a blank page.

28 Aug 2009, 3:31 PM
#7
therealex avatar

therealex

New Zenner

Join Date:
Jun 2006
Posts:
42
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

Here's the whole section, with my edits:
// 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', 'Thanks for stopping by! We're glad to see you!');
} 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', 'Thanks for stopping by! We're glad to see you!');
}
?>

And here's the original:
// 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', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
} 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', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
}
?>

28 Aug 2009, 3:44 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

We're glad to see you

We're glad to see you

You must ESCAPE the apostrophe... '

20 years a Zencart User

28 Aug 2009, 4:26 PM
#9
therealex avatar

therealex

New Zenner

Join Date:
Jun 2006
Posts:
42
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

AAAAAARRRRRRGGGGGGHHHHHHHH! This is why I'm not a programmer!! That, and my 30 second attention span.

THANK YOU, thank you, thank you! And thanks to everyone who replied, gave me the answer, and I was too dumb to see it.

28 Aug 2009, 7:55 PM
#10
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: can't change includes/languages/english/index.php!

therealex:

I was too dumb to see it.

No... you are NOT dumb... You didn't know about this at first. Now you do.

We ALL learn the same way.

20 years a Zencart User