Forums / Customization from the Admin / 404 define not showing on site

404 define not showing on site

Locked

Started by opentrees on 6 Apr 2007, 4:05 PM · Views: 3,939

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
6 Apr 2007, 4:05 PM
#1
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

404 define not showing on site

Hello,

I am running Zen Cart 1.3.6 on an Apache server. I have SEO URLs in stalled and a custom template. The site is a showcase only.

Didn't see anything in the forum on this so I decided to post a question. I don't see the text from the define for define_page_not_found when I get a 404 error.

Here is a link to try for an example:
http://www.opentrees.com/camping-gear-tips-fuel-chart.htm

Any suggestions would help. I'm at a dead end.

Thank you...

7 Apr 2007, 4:10 AM
#2
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

My tpl_page_not_found.php looks like this:

<?php /** * Page Template * * Displays page-not-found message and site-map (if configured) * * @package templateSystem * @copyright Copyright 2003-2005 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: tpl_page_not_found_default.php 3230 2006-03-20 23:21:29Z drbyte $ */ ?> <div class="centerColumn" id="pageNotFound"> <h1 id="pageNotFoundHeading"><?php echo HEADING_TITLE; ?></h1> <div id="siteMapMainContent" class="content"> <p><strong>Sorry you are having trouble, to find something on this site please use the links below.</strong></p> <p>If you are having difficulty locating something on Opentrees, please visit the <a href="http://www.opentrees.com/contact_us.htm">Contact Us </a> page and let me know! </p></div> <?php if (DEFINE_PAGE_NOT_FOUND_STATUS >= 1 and DEFINE_PAGE_NOT_FOUND_STATUS <= 2) { ?> <div id="pageNotFoundMainContent" class="content"> <?php /** * require the html_define for the site_map page */ require($define_page); ?> </div> <?php } ?>
<div id="siteMapList" class="content"><?php echo $zen_SiteMapTree->buildTree(); ?>
  <ul>
<?php if (SHOW_ACCOUNT_LINKS_ON_SITE_MAP=='Yes') { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . PAGE_ACCOUNT . '</a>'; ?>
	<ul>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . PAGE_ACCOUNT_EDIT . '</a>'; ?></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . PAGE_ADDRESS_BOOK . '</a>'; ?></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . PAGE_ACCOUNT_HISTORY . '</a>'; ?></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . PAGE_ACCOUNT_NOTIFICATIONS . '</a>'; ?></li>
    </ul></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '">' . PAGE_SHOPPING_CART . '</a>'; ?></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . PAGE_CHECKOUT_SHIPPING . '</a>'; ?></li>
<?php } //endif ?>
 <!-- <li><?php echo '<a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . PAGE_ADVANCED_SEARCH . '</a>'; ?></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . PAGE_PRODUCTS_NEW . '</a>'; ?></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_SPECIALS) . '">' . PAGE_SPECIALS . '</a>'; ?></li>
      <li><?php echo '<a href="' . zen_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li> -->
      <li><?php echo '<font class="bold" color=#006600>' . BOX_HEADING_INFORMATION . '</font>'; ?>
      <ul>
        <?php if (DEFINE_SHIPPINGINFO_STATUS <= 1) { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></li>
        <?php } ?>
        <?php if (DEFINE_PRIVACY_STATUS <= 1) { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>'; ?></li>
        <?php } ?>
		<li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'; ?></li>
        <?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
        <?php } ?>
        <?php if (DEFINE_CONDITIONS_STATUS <= 1) { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'; ?></li>
        <?php } ?>
	  </ul>
	  <br>
	  <li><?php echo '<font class="bold" color=#006600>' . BOX_HEADING_MORE_INFORMATION . '</font>'; ?>
	  <ul>
        <?php if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) { ?>
        <li><?php echo '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', '', '', true, false) . '" target="_blank">' . BOX_BBINDEX . '</a>'; ?></li>
        <?php } ?>
        <?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>'; ?></li>
        <?php } ?>
        <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>'; ?></li>
        <?php } ?>
        <?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>'; ?></li>
        <?php } ?>
		<li><?php echo '<a href="' . zen_href_link(FILENAME_CAMPING_TIPS) . '">' . BOX_INFORMATION_CAMPING_TIPS . '</a>'; ?></li>
        <?php if (DEFINE_PAGE_2_STATUS <= 1) { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>'; ?></li>
        <?php } ?>
        <?php if (DEFINE_PAGE_3_STATUS <= 1) { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>'; ?></li>
        <?php } ?>
        <?php if (DEFINE_PAGE_4_STATUS <= 1) { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>'; ?></li>
        <?php } ?>
     </ul></li>
	 <br>
 </ul>
</div> <div class="section-bottom"/></div> <br class="clearBoth" /> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> </div>

It has the code for requiring the devine page, i.e. require($define_page);, however the text from the define page does not show up. I had to hardcode the text into the default template page.

Are there other files or pages that I am missing? My site map works. The other pages that I added work. This is the only page that won't work. arg...

8 Apr 2007, 3:28 AM
#3
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

Still looking for some guidance. I tried a few things today but didn't get anywhere. I can usually figure things out on my own and don't post many questions here, but this one has me stumped.

Any help at all would be wonderful! (should I take a hint from the silence?)

8 Apr 2007, 3:32 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

Turn off the SEO stuff ...

What is that URL when not messed up?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Apr 2007, 3:07 AM
#5
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

Hello Ajeh,

That URL is nothing. It is left over from my previous static HTML pages and currently has not been ported over to my Zencart version.

All of my other pages work with that SEO stuff turned on. Is the 404 page different? It sure looks different in the header and other files.

GBFN

9 Apr 2007, 3:34 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

Before trying to get things to work with SEO stuff ... it is best to get them to work as they were designed ...

Somewhere you have a bad, missing or corrupt file or files ...

While trying to figure out the problem ... turn off a possible cause or mask of the problem and turn off the SEO stuff ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Apr 2007, 1:22 AM
#7
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

I disabled the SEO stuff in the admin but the define page still has no effect on the page that is shown on a 404 error.

10 Apr 2007, 2:34 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

Do you have a copy of all files that are in:
/includes/languages/english/html_includes

In your templates and overrides directory:
/includes/languages/english/html_includes/future_zen

And are they all set to 777 so that they can be edited in the Tools ... Define Page Editor ...

When you look at the Tools ... Define Page Editor ... and pick:
define_conditions.php

What happens?

Or, does just trying to get to the Define Page Editor croak?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

10 Apr 2007, 6:09 AM
#9
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

Ajeh said:
"Do you have a copy of all files that are in:
/includes/languages/english/html_includes

In your templates and overrides directory:
/includes/languages/english/html_includes/future_zen"

Yes.

I can edit all of them in the define pages editor, edits show up on rendered pages for all of the pages in the define pages editor except for page_not_found.

The define pages editor has full functionality.

11 Apr 2007, 4:35 AM
#10
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

Ajeh:

And are they all set to 777 so that they can be edited in the Tools ... Define Page Editor ...

When you look at the Tools ... Define Page Editor ... and pick:
define_conditions.php

What happens?

Or, does just trying to get to the Define Page Editor croak?

Looking back at your questions I didn't answer them all:

I have checkedall the files in /includes/languages/english/html_includes/future_zen
and they are set to 777.

When I lookat Tools ... Define Page Editor ... and pick: devine_conditions.php I see my verbage for that page in the devine page window.

The Define Page Editor does not croak. :)

19 Apr 2007, 4:30 AM
#11
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

Hello,

I have tried a few things again, such as checking the file structure, over-writing the page_not_found file, and saving different versions in the difine page editor (not to mention banging my head on the table) all with no success.

Any other directions to look in?

19 Apr 2007, 4:49 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

What are your settings in the Configuration ... Define Page Status ... for these pages?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2007, 10:58 PM
#13
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

Here is a snapshot from my Admin page:

28 Apr 2007, 4:07 AM
#14
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

Do you have both of these files on your server?
/includes/languages/english/html_includes/define_page_not_found.php
/includes/languages/english/html_includes/your_template_dir/define_page_not_found.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Apr 2007, 4:09 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

Could you also go to the Tools ... Developer's Tool Kit ... and in the top input box enter:
DEFINE_PAGE_NOT_FOUND_STATUS

Leave the dropdown set to none and click search ...

Is anything found?

If not, you are missing a definition in your configuration table an perhaps others ...

What version Zen Cart?

Clean install or upgrade?

How did you install?

How did you upgrade?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Apr 2007, 1:59 AM
#16
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

Ajeh:

Do you have both of these files on your server?
/includes/languages/english/html_includes/define_page_not_found.php
/includes/languages/english/html_includes/your_template_dir/define_page_not_found.php

Yes. I have both these files on my server.

Ajeh:

Could you also go to the Tools ... Developer's Tool Kit ... and in the top input box enter:
DEFINE_PAGE_NOT_FOUND_STATUS

Leave the dropdown set to none and click search ...

Is anything found?

If not, you are missing a definition in your configuration table an perhaps others ...

What version Zen Cart?

Clean install or upgrade?

How did you install?

How did you upgrade?

Nothing was found when I did the search. I must be missing the definition.

Version: Zen Cart 1.3.6

Clean install.

(not certine about this question) I installed per the instructions. I downloaded to my home pc, uploaded to server and ran the install program.

How do I find out what files are missing and how do I get them back onto my server in the correct place?

30 Apr 2007, 8:26 PM
#17
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

I went into by database and looked in the configuration tables, or at least the ones that say "configuration" and there is no list of define pages there.

I hope there is an easy way to upload something that can add these.

(fingers crossed)

3 May 2007, 2:54 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

See if loading this in the Tools ... Insert SQL Patch ... works for you:

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('Define Page-Not-Found Status', 'DEFINE_PAGE_NOT_FOUND_STATUS', '1', 'Enable the Defined Page-Not-Found Text from define-pages?<br />0= Define Text OFF<br />1= Define Text ON', '25', '67', now(), now(), NULL, 'zen_cfg_select_option(array(\'0\', \'1\'),');

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 May 2007, 11:44 PM
#19
opentrees avatar

opentrees

New Zenner

Join Date:
May 2005
Location:
Oakland, CA
Posts:
27
Plugin Contributions:
0

Re: 404 define not showing on site

That did the trick!

Is there a way to do this if one is not a programmer? Is there a utility to run? How does one repair the database without overwriting everything?

Your the best Ajeh!

4 May 2007, 12:27 AM
#20
ajeh avatar

ajeh

Oba-san

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

Re: 404 define not showing on site

I, playing joe blow user, just looked at the code for the page for this and found the constant ... the thing in the CAPS that enabled and disabled the define page ... related to an IF statement ...

I then used the Developer's Tool Kit to try to find where this was defined ...

Since there was not a define ...

I then looked at it in the Developer's Tool Kit to find its location in the configuration table ...

This showed me it was in the Define Page Status like all the others ...

However ...

You did not have one ... :cry:

hence, the missing link ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!