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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| 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?? |
|
#3
| |||
| |||
| 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. |
|
#4
| |||
| |||
| sorry, I meant in index_default.tpl.php not product_info.tpl.php jon2 |
|
#5
| |||
| |||
| 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 |
|
#6
| |||
| |||
| 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.. Cheers Van |
|
#7
| |||
| |||
| |
| Sponsored Links | ||
| ||