Zen Cart Logo
Forums / General Questions / Contact Page has disappeared!

Contact Page has disappeared!

Views: 1,219

Results 1 to 15 of 15
19 Feb 2011, 4:21 PM
#1
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Contact Page has disappeared!

Hey guys

I recently upgraded from 1.3.9d to 1.3.9.h

Everything appeared to go fine until my client noticed that the Contact Us page has vanished. All that's now on that page is the clients business address.

When I look at define_contact_us.php & tpl_contact_us_default.php everything looks fine?

Any ideas?

Site:
tuffsaws.co.uk
u: forum
p: forum

19 Feb 2011, 5:54 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Contact Page has disappeared!

Have you checked the ERROR LOG file in your cache folder?

19 Feb 2011, 7:09 PM
#3
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

Thanks, good point. So this is what the error log says:

[19-Feb-2011 16:01:50] PHP Warning: require() [<a href='function.require'>function.require</a>]: Filename cannot be empty in /home/tuff/public_html/includes/templates/template_default/templates/tpl_contact_us_default.php on line 41
[19-Feb-2011 16:01:50] PHP Warning: require() [<a href='function.require'>function.require</a>]: Filename cannot be empty in /home/tuff/public_html/includes/templates/template_default/templates/tpl_contact_us_default.php on line 41
[19-Feb-2011 16:01:50] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tuff/public_html/includes/templates/template_default/templates/tpl_contact_us_default.php on line 41

and the area around line 41 looks like this:

34 <?php if (DEFINE_CONTACT_US_STATUS >= '1' and DEFINE_CONTACT_US_STATUS <= '2') { ?>
35 <div id="contactUsNoticeContent" class="content">
36 <?php 37 /** 38 * require html_define for the contact_us page 39 */ **41 require($define_page);** 42 ?>
43 </div>
44 <?php } ?>
45
46<?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?>

I'm not sure where that define_page is calling to?

19 Feb 2011, 7:24 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Contact Page has disappeared!

It looks like it is not finding define_contact_us.php - either in

includes/languages/english/html_includes

or

includes/languages/english/html_includes/YOUR_TEMPLATE

Make sure you have the stated file in either (or both) of those locations.

If it is there, it could be corrupted, in which case try loading a new copy into the
includes/languages/english/html_includes folder, from a fresh unzipped copy of the 1.3.9h zencart software.

19 Feb 2011, 8:59 PM
#5
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

Nope, no such luck. I replaced the file that was in includes/languages/english/html_includes and added one to includes/languages/english/html_includes/YOUR_TEMPLATE (had to create the DIR.

I also tried replacing tpl_contact_us_default.php with an original file from 1.3.9h

hmm

19 Feb 2011, 9:13 PM
#6
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

Just trying to work this out. I'm going around in circles here. What is it that defines the file name? There doesn't seem to be a single place the defines the actual file. But I'm not sure if that's the problem or my lack of PHP knowledge.

19 Feb 2011, 9:18 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Contact Page has disappeared!

There is a file called filenames.php in the includes folder, but my thinking is that if that was corrupted, then a whole bunch of stuff may not work.

19 Feb 2011, 9:21 PM
#8
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

Yeh I found filenames.php, but I'm miffed as to how it works. It does contain:

define('FILENAME_CONTACT_US', 'contact_us');

I've searched through all the various files associated with the contact us code. I might have to scrap the whole page and make an EZ Page with a contact form. Bloody annoying. Though probable caused by me somewhere along the lines.

I wonder if it's my theme being not compatible with 1.3.9h? I'm pretty certain this happened when I upgraded last week.

19 Feb 2011, 10:32 PM
#9
stevesh avatar

stevesh

Black Belt

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

Re: Contact Page has disappeared!

Your page is dying just where the define page content starts, so I'd guess it's still that file. You're looking at includes/languages/english/html_includes/pure_green_free/define_contact_us.php, yes ?

19 Feb 2011, 10:37 PM
#10
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

yep I have replaced it with a fresh copy out of the 1.3.9h zip. I downloaded it fresh.

The error is "Filename cannot be empty" which suggested something is not defined right somewhere.

19 Feb 2011, 11:07 PM
#11
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Contact Page has disappeared!

The PHP Warnings are just that - warnings. It's the PHP Fatal Error that is the problem

[19-Feb-2011 16:01:50] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tuff/public_html/includes/templates/template_default/templates/tpl_contact_us_default.php on line 41

Check your includes/configure.php file and your general functions file.

Vger

19 Feb 2011, 11:11 PM
#12
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

Thanks, What am I looking for in includes/configure.php and the functions.php file?

There is nothing obvious in there that I can see.

20 Feb 2011, 1:15 PM
#13
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Contact Page has disappeared!

In the configure.php file you should look for any pathway errors, but the other file I was referring to was the "general" functions file.

Vger

21 Feb 2011, 12:03 AM
#14
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

Thanks, I can not see anything obvious anywhere. I'm sure it's the simplest thing. But I've been going round in circles all day. I'm going to have to admit defeat and make a new Contact page through EZ Pages. What a PITA.

Thanks for all help.

22 Feb 2011, 10:57 PM
#15
wizer avatar

wizer

Zen Follower

Join Date:
Jul 2010
Location:
London, UK
Posts:
135
Plugin Contributions:
0

Re: Contact Page has disappeared!

Grrr

After putting a work around in place for this problem, another has reared it's head.

Now I'm getting the exact same problem with the Checkout Success page. Here's the error log:

[22-Feb-2011 22:46:58] PHP Warning: require() [<a href='function.require'>function.require</a>]: Filename cannot be empty in /home/tuff/public_html/includes/templates/template_default/templates/tpl_checkout_success_default.php on line 37
[22-Feb-2011 22:46:58] PHP Warning: require() [<a href='function.require'>function.require</a>]: Filename cannot be empty in /home/tuff/public_html/includes/templates/template_default/templates/tpl_checkout_success_default.php on line 37
[22-Feb-2011 22:46:58] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tuff/public_html/includes/templates/template_default/templates/tpl_checkout_success_default.php on line 37

and the area around line 37 of tpl_checkout_success_default.php:

<h1 id="checkoutSuccessHeading"><?php echo HEADING_TITLE; ?></h1> <div id="checkoutSuccessOrderNumber"><?php echo TEXT_YOUR_ORDER_NUMBER . $zv_orders_id; ?></div> <?php if (DEFINE_CHECKOUT_SUCCESS_STATUS >= 1 and DEFINE_CHECKOUT_SUCCESS_STATUS <= 2) { ?> <div id="checkoutSuccessMainContent" class="content"> <?php /** * require the html_defined text for checkout success */ require($define_page); ?> </div> <?php } ?> <!-- bof payment-method-alerts --> <?php if (isset($_SESSION['payment_method_messages']) && $_SESSION['payment_method_messages'] != '') { ?> <div class="content"> <?php echo $_SESSION['payment_method_messages']; ?> </div> <?php } ?>

I'm absolutely stumped on this one. I have tried both replacing tpl_checkout_success_default.php with a fresh copy from 1.3.9h and even a copy from 1.3.9d (which Iupgraded from just before all this started happening.

Could REALLY use some help here guys

cheers.