Forums / General Questions / More Information page not working

More Information page not working

Views: 1,356

Results 1 to 17 of 17
17 Sep 2012, 1:19 AM
#1
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

More Information page not working

Hi,
I added extra pages under More Information using the add-on a while back and all was well. I only used page 5 at that point.
I just tried to use another - page 6. I changed the name in english.php, and turned it on in Admin/Define page status, and added content using Tools/Define Pages Editor. But when I click on the link in the box, I get "Page Not Found".
The link is "Promotional Products".
http://www.coolcountryhats.com.au/

I also noticed that none of the More Information pages appear in the site map.

Thanks...

17 Sep 2012, 3:32 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: More Information page not working

You have messed something up

Note url

main_page=page_5

main_page=FILENAME_PAGE_6

Zen-Venom Get Bitten

17 Sep 2012, 5:12 AM
#3
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

Hmm, you're right. But which file do I need to correct?

17 Sep 2012, 2:33 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: More Information page not working

which file do I need to correct
Use developers tool kit and search for "FILENAME_PAGE_6" case sensitive

Zen-Venom Get Bitten

18 Sep 2012, 5:05 AM
#5
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

in includes/modules/sideboxes/<template>/more_information.php all looks well:
if (DEFINE_PAGE_2_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
}
if (DEFINE_PAGE_3_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
}
if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
}
if (DEFINE_PAGE_5_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';
}
if (DEFINE_PAGE_6_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_6) . '">' . BOX_INFORMATION_PAGE_6 . '</a>';
}
if (DEFINE_PAGE_7_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_7) . '">' . BOX_INFORMATION_PAGE_7 . '</a>';
}

The syntax for page 6 looks the same as the others.

Also in includes/templates/<template>/templates/tpl_site_map_default.php:

<?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 } ?> <?php if (DEFINE_PAGE_5_STATUS <= '1') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>'; ?></li>
<?php } ?> <?php if (DEFINE_PAGE_6_STATUS <= '1') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_6) . '">' . BOX_INFORMATION_PAGE_6 . '</a>'; ?></li>
<?php } ?> <?php if (DEFINE_PAGE_7_STATUS <= '1') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_7) . '">' . BOX_INFORMATION_PAGE_7 . '</a>'; ?></li>
<?php } ?>

Nothing amiss AFAICS.

Any help appreciated...

19 Sep 2012, 12:28 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: More Information page not working

You are missing the specific define for the:
FILENAME_PAGE_6

Do a search in the Tools ... Developers Tool Kit ... for:
FILENAME_PAGE_4

and then for:
FILENAME_PAGE_7

Notice how each has a specific define statement 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!

21 Sep 2012, 1:31 AM
#7
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

Sorry Linda, can you tell me what a specific define statement looks like? I did that search and each one seems to throw up a different list of files. Getting more and more confused.

21 Sep 2012, 1:44 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: More Information page not working

The original define pages for Page 2, 3 and 4 have various components ...

In the database there are the settings for:
DEFINE_PAGE_2_STATUS
DEFINE_PAGE_3_STATUS
DEFINE_PAGE_4_STATUS

The filenames are the defines of the pages filenames:
define('FILENAME_PAGE_2', 'page_2');
define('FILENAME_PAGE_3', 'page_3');
define('FILENAME_PAGE_4', 'page_4');

The filenames for the pages to pull into the define pages are the filenames:
define('FILENAME_DEFINE_PAGE_2', 'define_page_2');
define('FILENAME_DEFINE_PAGE_3', 'define_page_3');
define('FILENAME_DEFINE_PAGE_4', 'define_page_4');

There are various other components to this but these will get you started ...

For your missing page 6, you will see in the URL when you try to go to that page, one of the constants that has not been defined:
FILENAME_PAGE_6

you will also notice that if you change that in the url to:
page_6

that the page comes up ...

Look how your page 5 works ...

Now do a search in the Developers Tool Kit for:
DEFINE_PAGE_5_STATUS
FILE_NAME_PAGE_5
FILENAME_DEFINE_PAGE_5

these would be a good clue where you are missing things for Page 6 ...

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!

22 Sep 2012, 2:21 AM
#9
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

OK, so now I'm feeling really dumb or blind or something because I did a search for those 3 things, checked all the files that came up, and looked in the corresponding page 6 files (or the page 6 lines of code in those files) and they all looked exactly the same. Tearing my hair out here...

23 Sep 2012, 12:41 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: More Information page not working

Search for these, via Developers Tool Kit and what do you get:
DEFINE_PAGE_6_STATUS
FILE_NAME_PAGE_6
FILENAME_DEFINE_PAGE_6

on each one of these, as in everything that comes up in the Catalog ...

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!

24 Sep 2012, 10:41 PM
#11
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

OK, I'm feeling pretty dumb now, or maybe blind, because I did a search on those three strings, and checked all the files that came up, and the corresponding Page 5 files and code, and it all looks exactly the same. Any more hints?

24 Sep 2012, 10:47 PM
#12
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

/home/coolcoun/public_html/includes/modules/sideboxes/ocean_front/more_information.php

Line #26 : if (DEFINE_PAGE_6_STATUS <= 1) {

/home/coolcoun/public_html/includes/templates/ocean_front/templates/tpl_page_6_default.php

Line #26 : <?php if (DEFINE_PAGE_6_STATUS >= 1 and DEFINE_PAGE_6_STATUS <= 2) { ?>

/home/coolcoun/public_html/includes/templates/ocean_front/templates/tpl_site_map_default.php

Line #110 : <?php if (DEFINE_PAGE_6_STATUS <= '1') { ?>

/home/coolcoun/public_html/includes/filenames.php

Line #65 : define('FILENAME_DEFINE_PAGE_6', 'define_page_6');

/home/coolcoun/public_html/includes/modules/pages/page_6/header_php.php

Line #24 : $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_6, 'false');

For FILE_NAME_PAGE_6 I got no results.

24 Sep 2012, 11:44 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: More Information page not working

Good News ... I had a typo ... :eek:

FILE_NAME_PAGE_6 should have been:
FILENAME_PAGE_6

see what comes up for that ...

Also, in the top input box enter:
DEFINE_PAGE_6_STATUS

and select NONE in the dropdown and click SEARCH ... does anything come 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!

25 Sep 2012, 6:01 AM
#14
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

OK, for FILENAME_PAGE_6 I got:
/home/coolcoun/public_html/includes/modules/sideboxes/ocean_front/more_information.php

Line #27 : $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_6) . '">' . BOX_INFORMATION_PAGE_6 . '</a>';

/home/coolcoun/public_html/includes/templates/ocean_front/templates/tpl_site_map_default.php

Line #111 : <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_6) . '">' . BOX_INFORMATION_PAGE_6 . '</a>'; ?></li>

Then...
Lookup CONSTANT Definitions
Key: DEFINE_PAGE_6_STATUS
Title: Define Page 6
Description: Enable the Defined Page 6 Link/Text?
0= Link ON, Define Text OFF
1= Link ON, Define Text ON
2= Link OFF, Define Text ON
3= Link OFF, Define Text OFF
Value: 1
Group: ID#25 Define Page Status

Is any of this getting me closer?

3 Oct 2012, 4:47 AM
#15
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

Can I get more help or am I pushing my luck here? :smile:

3 Oct 2012, 5:24 AM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: More Information page not working

Looking at your site I see this for page 5

index.php?main_page=page_5

But for page 6 I see this

index.php?main_page=FILENAME_PAGE_6

Notice the form of lowercase and just the term "page_5" versus the constant "FILENAME_PAGE_6"

You need to check that you have in /includes/templates/your_template/templates/tpl_page_6_default.php
Check that it exists

You need to check that you have /includes/languages/english/your_template/page_6.php

You need to see what you have in /includes/filenames.php and that the define for page 6 echos those for other pages
Check in /includes/filenames.php that you have both define statements

define('FILENAME_DEFINE_PAGE_6', 'define_page_6');

define('FILENAME_PAGE_6', 'page_6');

Zen-Venom Get Bitten

3 Oct 2012, 5:54 AM
#17
jenpen avatar

jenpen

Zen Follower

Join Date:
Sep 2007
Location:
Far South Coast, NSW, Australia
Posts:
427
Plugin Contributions:
0

Re: More Information page not working

Thank you, thank you, thank you. There was no
define('FILENAME_DEFINE_PAGE_6', 'define_page_6');

Solved.