Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Contact Page has disappeared!

    Have you checked the ERROR LOG file in your cache folder?
    20 years a Zencart User

  3. #3
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default 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.
    20 years a Zencart User

  5. #5
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

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

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default 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.
    20 years a Zencart User

  8. #8
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

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

  9. #9
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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 ?

  10. #10
    Join Date
    Jul 2010
    Location
    London, UK
    Posts
    135
    Plugin Contributions
    0

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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 My Payment Method Page has disappeared
    By ziggisprint in forum General Questions
    Replies: 5
    Last Post: 5 Nov 2012, 11:50 AM
  2. My page has disappeared :(
    By bb butts diapers in forum General Questions
    Replies: 11
    Last Post: 29 Dec 2010, 06:02 AM
  3. Text has Disappeared from Login / New Account Page
    By limelites in forum General Questions
    Replies: 18
    Last Post: 6 Mar 2009, 07:05 PM
  4. My admin page has disappeared after add-on
    By robbin21973 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 Feb 2009, 11:01 PM
  5. My page has disappeared
    By vivaraquel in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Nov 2007, 12:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg