Jump to content
Jack_mcs

Dynamic SiteMap

Recommended Posts

did you upload the category_tree.php correct ?

it looks like the file is missing

it must be in catalog/includes/classes/category_tree.php

 

I really don't understand it, everything seems to be in the right place. I have moved my language folder to root but have also moved the relevant files to the Englidh directory. Category_tree.php is present aswell

Edited by cmjennings21

Share this post


Link to post
Share on other sites
It says you are missing a class. Did you upload the files included in the contribution?

 

Jack

Yes, all of them. Used V1.6(2)

 

Just had a thought, my site is installed at root level, will this make a difference?

Edited by cmjennings21

Share this post


Link to post
Share on other sites
Yes, all of them. Used V1.6(2)

 

Just had a thought, my site is installed at root level, will this make a difference?

 

Well, Just bitten the bullet and push the files onto my main server and hey presto all seems to work apart from an error on the bottom of the screen. Now I've read the posts on page 2 but can't see what is causing the error, would someone mind having a look for me?

 

Honeybee toys

 

Many thanks for a great Contribution

Share this post


Link to post
Share on other sites

It's probably an infobox that is causing the failure. You will need to try to isolate which one it is. If you have duplicate infoboxes, like information.php_old, you should delete them (assuming they are not used). If there are specialy infoboxes (not from the original oscomerce package) then they would be the first to look at.

 

Jack

Share this post


Link to post
Share on other sites
It's probably an infobox that is causing the failure. You will need to try to isolate which one it is. If you have duplicate infoboxes, like information.php_old, you should delete them (assuming they are not used). If there are specialy infoboxes (not from the original oscomerce package) then they would be the first to look at.

 

Jack

 

Thanks for getting back to me Jack. I'm assuming I should be looking in includes>boxes and identify any duplicated files as you describe above. If this is the case there is nothing in there but I am a little confused as to what I'm looking for. Any advise would be greatly appreciated.

 

Chris

Share this post


Link to post
Share on other sites

The code that this contribution uses for identifying an infobox is limited. If the code doesn't appear as in the standard information.php file, for example, it will die. The links in those files need to start with <a, not <br><a, for example. You will need to move the boxes out of that directory until the error goes away. Moving some will cause your shop to fail so, if this is a live shop, you will need to be careful as to the ones you select to move.

 

Jack

Share this post


Link to post
Share on other sites
The code that this contribution uses for identifying an infobox is limited. If the code doesn't appear as in the standard information.php file, for example, it will die. The links in those files need to start with <a, not <br><a, for example. You will need to move the boxes out of that directory until the error goes away. Moving some will cause your shop to fail so, if this is a live shop, you will need to be careful as to the ones you select to move.

 

Jack

 

This is what I have in my information.php, it all looks OK to me, what do you think?

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<table width="144" border="0" cellspacing="0" cellpadding="1" class="infoboxborder">

<tr>

<td> <table width=100% border=0 cellpadding=0 cellspacing=0 class="infoBoxContents">

<tr>

<td colspan=3 width="100%"> <img src="images/boxes/table_information.jpg"></td>

</tr>

<tr>

<td>

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' =>/*'<a href="' . tep_href_link(FILENAME_PDF_CATALOGUE, '', 'NONSSL') . '">' . BOX_INFORMATION_PDF_CATALOGUE . '</a><br>' .*/

/*Tracking contribution begin*/

/*'<a href="' . tep_href_link(FILENAME_TRACKING) . '">' . BOX_INFORMATION_TRACKING . '</a><br>' .*/

/*Tracking contribution end*/

'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ABOUTUS) . '">' . BOX_INFORMATION_ABOUTUS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_LINKS) . '">' . BOX_INFORMATION_LINKS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a><br>');

 

 

 

new infoBox($info_box_contents);

?>

 

</td>

</tr>

</table>

</td>

</tr>

</table>

 

</td>

</tr>

<!-- information_eof //-->

 

Thanks

 

Chris

Share this post


Link to post
Share on other sites

Hi there, i just installed the site map mod, i am also using Information Pages Unlimited v1.2

 

i get this error when i click on the 'site map' link

 

Fatal error: Cannot redeclare tep_count_products_in_category_menu() (previously declared in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/includes/boxes/categories.php:13) in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/includes/boxes/categories.php on line 13

Share this post


Link to post
Share on other sites
This is what I have in my information.php, it all looks OK to me, what do you think?

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<table width="144" border="0" cellspacing="0" cellpadding="1" class="infoboxborder">

<tr>

<td> <table width=100% border=0 cellpadding=0 cellspacing=0 class="infoBoxContents">

<tr>

<td colspan=3 width="100%"> <img src="images/boxes/table_information.jpg"></td>

</tr>

<tr>

<td>

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' =>/*'<a href="' . tep_href_link(FILENAME_PDF_CATALOGUE, '', 'NONSSL') . '">' . BOX_INFORMATION_PDF_CATALOGUE . '</a><br>' .*/

/*Tracking contribution begin*/

/*'<a href="' . tep_href_link(FILENAME_TRACKING) . '">' . BOX_INFORMATION_TRACKING . '</a><br>' .*/

/*Tracking contribution end*/

 

 

Chris

Try removing this part
/*Tracking contribution begin*/
/*'<a href="' . tep_href_link(FILENAME_TRACKING) . '">' . BOX_INFORMATION_TRACKING . '</a><br>' .*/
/*Tracking contribution end*/

 

Jack

Share this post


Link to post
Share on other sites

when i put my mouse over the link in the information box, it says this

FILENAME_DYNAMIC_SITEMAP

 

what file have i missed?

Edited by tec

Share this post


Link to post
Share on other sites

guess it might help to post the code eh

  $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_CONDITIONS, '', 'NONSSL') . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_HEADING_LINKS . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>'.
									  '<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 new infoBox($info_box_contents);
?>

Share this post


Link to post
Share on other sites

you must define the .php in filnames.php

the first step in the install_catalog.txt....you must read all carfully

 

1) In catalog/includes/filenames.php, add the following before the

closing ?>

 

define('FILENAME_DYNAMIC_SITEMAP', 'dynamic_sitemap.php');

Share this post


Link to post
Share on other sites
you must define the .php in filnames.php

the first step in the install_catalog.txt....you must read all carfully

 

1) In catalog/includes/filenames.php, add the following before the

closing ?>

 

define('FILENAME_DYNAMIC_SITEMAP', 'dynamic_sitemap.php');

 

 

hi there, I have done this, i have done everything it said to do in the doc. here is the last few lines of my includes/filenames.php

 

  define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php');
 define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php');
 define('FILENAME_DYNAMIC_SITEMAP', 'dynamic_sitemap.php');
 ?>

 

bit it still gos to /FILENAME_DYNAMIC_SITEMAP and that is what is on the mouse over on the link

Share this post


Link to post
Share on other sites

Are you sure you made the change to includes/filenames.php and not admin/includes/filenames.php?

 

Jack

Share this post


Link to post
Share on other sites
Are you sure you made the change to includes/filenames.php and not admin/includes/filenames.php?

 

Jack

 

 

i swear i edited the correct file, i noticed though, that i am having the same problem with "all Products'

http://nwcoin.com/old_cart

 

take a looky here, the design hurts, but i am here to try to clean up after someone else.

 

What could be the problem that would cause both mods to come up with the XXXXX_XXXXXX when you click or mouseover.

 

again, here is my includes/filenames.php

 

define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php');

define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php');

define('FILENAME_DYNAMIC_SITEMAP', 'dynamic_sitemap.php');

//BEGIN allprods modification

define('FILENAME_ALLPRODS', 'allprods.php');

//END allprods modification

 

?>

Share this post


Link to post
Share on other sites

here is my code for my includes/boxes/information.php

 

<?php
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => BOX_HEADING_INFORMATION
						  );
 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_CONDITIONS, '', 'NONSSL') . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_LINKS, '', 'NONSSL') . '">' . BOX_HEADING_LINKS . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a><br>'.
									  '<a href="' . tep_href_link(FILENAME_ALLPRODS, '', 'NONSSL') . '">' . BOX_INFORMATION_ALLPRODS . '</a><br>' .
									  '<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP, '', 'NONSSL') . '">' .  BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 new infoBox($info_box_contents);
?>

Share this post


Link to post
Share on other sites

Hmm, there doesn't seem to be anything wrong. Try changing this line in includes/boxes/information.php

'<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP, '', 'NONSSL') . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

to

'<a href="' . tep_href_link('dynamic_sitemap.php', '', 'NONSSL') . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

Does it work?

 

Jack

Share this post


Link to post
Share on other sites
Hmm, there doesn't seem to be anything wrong. Try changing this line in includes/boxes/information.php
'<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP, '', 'NONSSL') . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

to

'<a href="' . tep_href_link('dynamic_sitemap.php', '', 'NONSSL') . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

Does it work?

 

Jack

 

ok, it makes it to the page now, but now i get this

 

http://www.nwcoin.com/old_catalog/dynamic_sitemap.php

Share this post


Link to post
Share on other sites

ok, i got it to work

i had to edit some of the files but i got it to work

 

in my boxes/information i have

'<a href="' . tep_href_link('dynamic_sitemap.php', '', 'NONSSL') . '">site map</a>');

 

i had to edit the languages/includes/dynamic_sitemap but heck, it works now

 

thank you for your guidance

 

:blush:

Share this post


Link to post
Share on other sites

ok, i am in another directory now, i have the link in the information bos coded as it should be and it is making it to the page

										'<a href="' . tep_href_link(FILENAME_DYNAMIC_SITEMAP) . '">' . BOX_INFORMATION_DYNAMIC_SITEMAP . '</a>');

 

but now when i get to the site map page, i get this,,

Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DYNAMIC_SITEMAP' (include_path='.:/usr/local/lib/php') in /mounted-storage/home13/sub004/sc12844-MMOB/www/catalog/dynamic_sitemap.php on line 15

 

but there is a dynamic_sitemap.php in the languages/english directory

Share this post


Link to post
Share on other sites

Whenever you see capital letters like 'DIR_WS_LANGUAGES/FILENAME_DYNAMIC_SITEMAP' in an error, it means your shop is missing a definition (in this case two). The problem is in your configure and/or filenames files.

 

Jack

Share this post


Link to post
Share on other sites
Whenever you see capital letters like 'DIR_WS_LANGUAGES/FILENAME_DYNAMIC_SITEMAP' in an error, it means your shop is missing a definition (in this case two). The problem is in your configure and/or filenames files.

 

Jack

 

here is my filenames

 

 define('FILENAME_DYNAMIC_SITEMAP', 'dynamic_sitemap.php');
define('FILENAME_INFORMATION', 'information.php');
//BEGIN allprods modification
 define('FILENAME_ALLPRODS', 'all_products.php');
 //END allprods modification

 

and here is my config

 

define('HTTP_SERVER', 'http://www.nwcoin.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://ssl.servage.net/~sc12844-MMOB'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.nwcoin.com');
 define('HTTPS_COOKIE_DOMAIN', 'ssl.servage.net');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

what am i missing?

its always the small obvious things that take forever to trouble shoot, but i am stuck on this one

Share this post


Link to post
Share on other sites

here is the top code of my catalog/dynamic_sitemap.php

i had to comment out the application_top, it was causing other errors

 

<?php
/*
 $Id: dynamic_sitemap.php,v1.5 2005/10/16 Jack_mcs

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 //require('includes/application_top.php');

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DYNAMIC_SITEMAP);
 include(DIR_WS_MODULES . '/dynamic_sitemap.php');
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_DYNAMIC_SITEMAP));
?>

 

oh wow, i just noticed you are the developer of the mod, thank you, i like the mod, i have seen it work, i just cant get it to work for me :(

Share this post


Link to post
Share on other sites

Your problem is that you have

//require('includes/application_top.php');

That file is required for proper operation. You need to change it to

require('includes/application_top.php');

 

Jack

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×