Zen Cart Logo
Forums / General Questions / Login page went missing!

Login page went missing!

Locked

Views: 1,043

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
3 Nov 2010, 11:07 PM
#1
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Login page went missing!

Note first: I did do a backup of everything before attempting this.

I edited a line of text in /includes/languages/english.php. It was this line here:

define('ENTRY_EMAIL_ADDRESS', 'Email Address:');

I change it to say

define('ENTRY_EMAIL_ADDRESS', 'Customer Number:');

and that was all. This made the login screen go blank, now it has the left column okay, the middle column says "Home :: NAVBAR_TITLE" at the top, and blank below that, and the right column is also missing.

So I restored the english.php file from my untouched backup, and it's still showing this same problem of everything missing.

Please help here, I don't want to have to start all over again..... :unsure:

4 Nov 2010, 12:43 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Login page went missing!

If you peek in your /cache directory there is probably a debug log on this ... if you are using v1.3.9 ...

And probably ... there is a reference to the end of the file where there is either space(s) or blank line(s) following the closing php bracket ?> at the bottom of the file ...

If you fix that, it should fix the problem ...

4 Nov 2010, 1:40 AM
#3
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Login page went missing!

I'm using v1.3.8, and the cache directory is empty. I've also checked into the ?> problem and there's one at the end of the file. So not sure what else is causing it...

4 Nov 2010, 1:42 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Login page went missing!

You could then get from the Free Software Add Ons the:
Debug Tool

But, from what it sounds like if you go to the bottom of the english.php file and put your cursor right after the closing bracket of ?>

Delete any spaces or blank lines ... then save and reload it to your site ...

4 Nov 2010, 1:53 AM
#5
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Login page went missing!

I've just checked the spaces at the end of the file after ?> and there's no spaces there.

Have installed the debug tool, here's the result (edited out non-important parts from URLs):

[03-Nov-2010 20:49:40] PHP Warning:  require(includes/templates/template_default/templates/tpl_login_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/<user>/public_html/<domain>/store/includes/templates/template_default/common/tpl_main_page.php on line 122
[03-Nov-2010 20:49:40] PHP Warning:  require(includes/templates/template_default/templates/tpl_login_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/<user>/public_html/<domain>/store/includes/templates/template_default/common/tpl_main_page.php on line 122
[03-Nov-2010 20:49:40] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/templates/tpl_login_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/<user>/public_html/<domain>/store/includes/templates/template_default/common/tpl_main_page.php on line 122
4 Nov 2010, 2:04 AM
#6
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Login page went missing!

Alright, I've got it... I've been making a backup copy of a file as I'm about to edit the code of it. But for some reason, the file includes/templates/template_default/templates/tpl_login_default.php was missing, and only the backup file was there.

Now it's showing define variables instead of what's supposed to be written there...

For reference:

http://healthreflections.com.au/store/index.php?main_page=login

Not sure how to fix this one.

4 Nov 2010, 2:59 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Login page went missing!

Check if you have lost the file:
/includes/languages/english/login.php

Note: if making changes, you should be using your templates and overrides directory for that ...

4 Nov 2010, 4:38 AM
#8
jace avatar

jace

New Zenner

Join Date:
Nov 2010
Posts:
91
Plugin Contributions:
0

Re: Login page went missing!

thanks! it was that login.php file that was missing...

overrides directory? i've been hard coding into the core files because i wasn't aware there was such an option of an overrides...?

4 Nov 2010, 4:49 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Login page went missing!

Your templates and overrides are your custom directories for your template ...

If you are not using them, you should read through the Tutorials/FAQ about customizing your Zen Cart and using the template and override system ...

Currently, you are using the default template Classic Template ...

This template uses the /classic directories throughout the Zen Cart code on your site ...

You want to customize your own template and override system so as not to have your files and changes overwritten on upgrades ...