Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page Not Found from InfoBox


cma01

Recommended Posts

Posted

I am in the process of converting my new 2.2 MS2 shop to the same format as the one that is currently running. My live shop is an older version, but I'm really not sure of the version number.

 

On my old shop, I put an info box in the left hand column with a hyperlinked picture to a page for a free drawing, which all worked exactly how I wanted.

 

However, I am trying to install this same box on the new shop and for the life of me, I can't get it to work. The info box will display correctly, but when I click the hyperlinked image, I get a "Page Not Found" error.

 

The url looks like it is correct, but the shop isn't finding the file. I named the infobox "Drawing.php" and the filename "freedrawing.php"

 

These are the files I changed:

 

/catalog/includes/languages/english/freedrawing.php

<?php

/*

 $Id: freedrawing.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



define('NAVBAR_TITLE', 'Free Drawing');

define('HEADING_TITLE', 'Free Drawing');



define('TEXT_FREEDRAWING', 'text');

?>

 

In /catalog/includes/filenames.php

define('FILENAME_DOWNLOAD', 'download.php');

 define('FILENAME_FREEDRAWING', 'freedrawing.php');

 define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php');

 

In /catalog/includes/boxes/drawing.php

 

 <?php

/*

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



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/

?>

<!-- drawing //-->

         <tr>

           <td>

<?php

 $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                              'text'  => BOX_HEADING_DRAWING

                             );

 new infoBoxHeading($info_box_contents, false, false);



 $info_box_contents = array();

 $info_box_contents[] = array('align' => 'left',

                               'text'  => '<a href="' . tep_href_link(FILENAME_FREEDRAWING) . '">' . tep_image(DIR_WS_IMAGES . '82020_2.gif') , BOX_DRAWING_FREEDRAWING . '</a>'

                             );

 new infoBox($info_box_contents);

?>



           </td>

         </tr>

<!-- drawing_eof //-->

 

In /catalog/includes/languages/english.php

// drawing box text in includes/boxes/drawing.php

define('BOX_HEADING_DRAWING', 'Free Drawing');

  • 10 months later...
Posted

I am having the same issues and have searched high and low for the answer. I know pre-MS2.2 you defined the filenames in /catalog/includes/application_top.php. I recently found on OSCdox that it has changed to /catalog/includes/filenames.php post-MS2.2. The information was certainly not in application_top.php (hey, no harm in double checking), but when I added it to filenames.php, I got the same as you. When I further looked in filenames.php, I noticed that contact_us.php, conditions.php, and shipping.php were nowhere to be found.

Posted

Here's my code...

 

/catalog/pickup_pay_service.php

 

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PICKUP_PAY_SERVICE);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PICKUP_PAY_SERVICE));

 

/catalog/includes/filenames.php

 

  define('FILENAME_PICKUP_PAY_SERVICE', 'pickup_pay_service.php');

 

/catalog/includes/boxes/information.php

 

'<a href="' . tep_href_link(FILENAME_PICKUP_PAY_SERVICE) . '">' . BOX_INFORMATION_PICKUP_PAY_SERVICE . '</a><br>' .

 

/catalog/includes/languages/english.php

 

define('BOX_INFORMATION_PICKUP_PAY_SERVICE', 'Pickup & Pay Service');

 

 

/catalog/includes/languages/english/pickup_pay_service.php

 

define('NAVBAR_TITLE', 'Pickup & Pay Service');
define('HEADING_TITLE', 'Pickup & Pay Service');

define('TEXT_INFORMATION', 'Text is here.');

Posted

Oh, and here is the error message I receive when I click on the link in the Information infobox.

 

Not Found

The requested URL /catalog/FILENAME_PICKUP_PAY_SERVICE was not found on this server.

Posted

:o Something must have been wrong with my filename.php or something?how bizarre?but I copied the file from another existing shop and put it in with the one I am working on now, did the modifications and miraculously it works. Very strange.

 

You may wish to compare a "clean" filename.php with your existing one...or simply do what I did if you remember where all your mods are. For me, it's easy, I leave a comment at the end of anything I modify along with the date.

 

define('FILENAME_PICKUP_PAY_SERVICE', 'pickup_pay_service.php'); //mod 06.19.04

 

;) I can't explain it...computers and code are strange at times...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...