carlosnegri Posted February 20, 2008 Posted February 20, 2008 I was trying to install a contribution (latestnews) and it didn´t work so I erased everything back and now I have received this message. Somebody knows what it is? Warning: main(includes/modules/FILENAME_NEW_PRODUCTS) [function.main]: failed to open stream: No such file or directory in /home2/perfectf/public_html/index.php on line 285 Warning: main(includes/modules/FILENAME_NEW_PRODUCTS) [function.main]: failed to open stream: No such file or directory in /home2/perfectf/public_html/index.php on line 285 Warning: main() [function.include]: Failed opening 'includes/modules/FILENAME_NEW_PRODUCTS' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/perfectf/public_html/index.php on line 285 I restore my backup and didn´t work. Help please!!!!! :'(
germ Posted February 20, 2008 Posted February 20, 2008 Look in your /catalog/includes/filenames.php It may be missing this line:: define('FILENAME_NEW_PRODUCTS', 'new_products.php'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
carlosnegri Posted February 20, 2008 Author Posted February 20, 2008 It worked but now I have the follow message Warning: main(includes/languages/english/FILENAME_PRODUCTS_NEW) [function.main]: failed to open stream: No such file or directory in /home2/perfectf/public_html/products_new.php on line 15 Warning: main(includes/languages/english/FILENAME_PRODUCTS_NEW) [function.main]: failed to open stream: No such file or directory in /home2/perfectf/public_html/products_new.php on line 15 Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/FILENAME_PRODUCTS_NEW' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/perfectf/public_html/products_new.php on line 15
germ Posted February 20, 2008 Posted February 20, 2008 Does your products_new.php have this code on about line 13: require('includes/application_top.php'); That line MUST be ABOVE this line in the same file: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCTS_NEW); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted February 20, 2008 Posted February 20, 2008 MY BAD!! :blush: Add this to /includes/filenames.php define('FILENAME_PRODUCTS_NEW', 'products_new.php'); As you have deduced I'm sure, a "backup" in you admin makes a backup of the database ONLY! It DOES NOT backup any of the other files that make your web site work. You must do that yourself. Before you install a contribution, you should make a backup of all the files you will alter FIRST. Then if you run into problems, and want to "undo" the changes, replace the altered files with the backups. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
carlosnegri Posted February 21, 2008 Author Posted February 21, 2008 Hi Jim I did the backup but I think there was 2 files with same name and I didn´t backup the second. Can you send me this file so I could rewrite the missing lines, please? /includes/filenames.php Thank you
germ Posted February 21, 2008 Posted February 21, 2008 <?php /* $Id: filenames.php,v 1.4 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // define the filenames used in the project define('FILENAME_ACCOUNT', 'account.php'); define('FILENAME_ACCOUNT_EDIT', 'account_edit.php'); define('FILENAME_ACCOUNT_HISTORY', 'account_history.php'); define('FILENAME_ACCOUNT_HISTORY_INFO', 'account_history_info.php'); define('FILENAME_ACCOUNT_NEWSLETTERS', 'account_newsletters.php'); define('FILENAME_ACCOUNT_NOTIFICATIONS', 'account_notifications.php'); define('FILENAME_ACCOUNT_PASSWORD', 'account_password.php'); define('FILENAME_ADDRESS_BOOK', 'address_book.php'); define('FILENAME_ADDRESS_BOOK_PROCESS', 'address_book_process.php'); define('FILENAME_ADVANCED_SEARCH', 'advanced_search.php'); define('FILENAME_ADVANCED_SEARCH_RESULT', 'advanced_search_result.php'); define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php'); define('FILENAME_CHECKOUT_CONFIRMATION', 'checkout_confirmation.php'); define('FILENAME_CHECKOUT_PAYMENT', 'checkout_payment.php'); define('FILENAME_CHECKOUT_PAYMENT_ADDRESS', 'checkout_payment_address.php'); define('FILENAME_CHECKOUT_PROCESS', 'checkout_process.php'); define('FILENAME_CHECKOUT_SHIPPING', 'checkout_shipping.php'); define('FILENAME_CHECKOUT_SHIPPING_ADDRESS', 'checkout_shipping_address.php'); define('FILENAME_CHECKOUT_SUCCESS', 'checkout_success.php'); define('FILENAME_CONTACT_US', 'contact_us.php'); define('FILENAME_CONDITIONS', 'conditions.php'); define('FILENAME_COOKIE_USAGE', 'cookie_usage.php'); define('FILENAME_CREATE_ACCOUNT', 'create_account.php'); define('FILENAME_CREATE_ACCOUNT_SUCCESS', 'create_account_success.php'); define('FILENAME_DEFAULT', 'index.php'); define('FILENAME_DOWNLOAD', 'download.php'); define('FILENAME_INFO_SHOPPING_CART', 'info_shopping_cart.php'); define('FILENAME_LOGIN', 'login.php'); define('FILENAME_LOGOFF', 'logoff.php'); define('FILENAME_NEW_PRODUCTS', 'new_products.php'); define('FILENAME_PASSWORD_FORGOTTEN', 'password_forgotten.php'); define('FILENAME_POPUP_IMAGE', 'popup_image.php'); define('FILENAME_POPUP_SEARCH_HELP', 'popup_search_help.php'); define('FILENAME_PRIVACY', 'privacy.php'); define('FILENAME_PRODUCT_INFO', 'product_info.php'); define('FILENAME_PRODUCT_LISTING', 'product_listing.php'); define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php'); define('FILENAME_PRODUCT_REVIEWS_INFO', 'product_reviews_info.php'); define('FILENAME_PRODUCT_REVIEWS_WRITE', 'product_reviews_write.php'); define('FILENAME_PRODUCTS_NEW', 'products_new.php'); define('FILENAME_REDIRECT', 'redirect.php'); define('FILENAME_REVIEWS', 'reviews.php'); define('FILENAME_SHIPPING', 'shipping.php'); define('FILENAME_SHOPPING_CART', 'shopping_cart.php'); define('FILENAME_SPECIALS', 'specials.php'); define('FILENAME_SSL_CHECK', 'ssl_check.php'); define('FILENAME_TELL_A_FRIEND', 'tell_a_friend.php'); define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); ?> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
carlosnegri Posted February 21, 2008 Author Posted February 21, 2008 Thank you vary much Jim, You save my day, thaks again!!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.