osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Don't know what happend?

This is a discussion on Don't know what happend? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, suddelnly I got this message on the main page, I was in the procces of: 1:Taking away the (this ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-12-2004, 02:33 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default Don't know what happend?

Hi, suddelnly I got this message on the main page, I was in the procces of:

1:Taking away the (this product was added on) msg on file product_info.tpl.php on around line 192

I deleted the output. Went fine. Checked one product on the site it was gone.

2:Then i added a new page (links) to the information box.
Added all neccisary code to filenames.php and put the links.php in english etc..

Then all of the sudden I got this message on the mainpage.

----------------------------------------------------------------------------------
Warning: main(includes/modules/FILENAME_NEW_PRODUCTS): failed to open stream: No such file or directory in /home/ofgnryef/public_html/catalog/templates/content/index_default.tpl.php on line 40

Warning: main(): Failed opening 'includes/modules/FILENAME_NEW_PRODUCTS' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ofgnryef/public_html/catalog/templates/content/index_default.tpl.php on line 40
-------------------------------------------------------------------------------------
I have not gone near any of those files today.

What could gone wrong?

I have
-----------------------------------------------------------------
define('CONTENT_NEW_PRODUCTS', 'new_products');

define('FILENAME_PRODUCTS_NEW', CONTENT_PRODUCTS_NEW . '.php');
-----------------------------------------------------------------
In my filenames.php

and.....
---------------------------------------------------------
</tr>
<tr>
<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
</td>
</tr>
<tr>
----------------------------------------------------------
in index_default.tpl.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-12-2004, 03:01 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

in english/product_new.php

*/

define('NAVBAR_TITLE', 'New Products');
define('HEADING_TITLE', 'New Products');

define('TEXT_DATE_ADDED', 'Date Added:');
define('TEXT_MANUFACTURER', 'Manufacturer:');
define('TEXT_PRICE', 'Price:');
?>

commenting out //define('TEXT_DATE_ADDED', 'Date Added:');

does nothing??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-12-2004, 05:07 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

there is a clue in the error message:

it's looking for:
FILENAME_NEW_PRODUCTS

but you have defined:
FILENAME_PRODUCTS_NEW

change product_info.tpl.php to look for FILENAME_PRODUCTS_NEW instead and it should work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-12-2004, 05:09 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

sorry, I meant in index_default.tpl.php not product_info.tpl.php



jon2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-12-2004, 05:57 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

Hi Jon, I changed indext_default.tpl.php to:

<td height="18"><?php include(DIR_WS_MODULES . FILENAME_PRODUCTS_NEW); ?>

And I have in filenames.php

define('CONTENT_PRODUCTS_NEW', 'products_new');

define('FILENAME_PRODUCTS_NEW', CONTENT_PRODUCTS_NEW . '.php');

And I got this error on mainpage.
----------------------------------------------------------------------
Warning: main(includes/modules/products_new.php): failed to open stream: No such file or directory in /home/ofgnryef/public_html/catalog/templates/content/index_default.tpl.php on line 40

Warning: main(): Failed opening 'includes/modules/products_new.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ofgnryef/public_html/catalog/templates/content/index_default.tpl.php on line 40
-------------------------------------------------------

Thanks for your try...

van
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 02-12-2004, 06:02 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

he he he....got it...

I check the file name, module/product_new.php was new_product.php

I saved a new version as product_new.php

Don't ask how this happend....since the only answer is: early morning, with closed eyes some one came and changed either my code or file name..

thanks for your help (eye opener)

Cheers

Van
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 02-12-2004, 06:04 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

http://www.insituconservation.com/catalog/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 09:59 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax