pwatson04 Posted February 9, 2007 Posted February 9, 2007 Hi, I just installed the product info qty box contribution and its all is working apart from am getting the following error at the top of the page now: Warning: Wrong parameter count for define() in /home/pwatson/public_html/includes/languages/english/index.php on line 13 and i checked on line 13 and there is no code at this point, just information. does anyone know why this is happening? thanks
Guest Posted February 9, 2007 Posted February 9, 2007 Hi, I just installed the product info qty box contribution and its all is working apart from am getting the following error at the top of the page now: Warning: Wrong parameter count for define() in /home/pwatson/public_html/includes/languages/english/index.php on line 13 and i checked on line 13 and there is no code at this point, just information. does anyone know why this is happening? Pual - it could mean ____anything____ Post lines 0 to 20 of the /includes/languages/english/index.php file Corrie
pwatson04 Posted February 9, 2007 Author Posted February 9, 2007 heres lines 0 to 20 <?php /* $Id: index.php,v 1.1 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 */
Guest Posted February 9, 2007 Posted February 9, 2007 heres lines 0 to 20 <?php /* $Id: index.php,v 1.1 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 */ LOL! Ok - how abuot the whole file then ? :-) Corrie
pwatson04 Posted February 9, 2007 Author Posted February 9, 2007 lol ano thats what i was meaning when i was talking about there was only information there. here it is: <?php /* $Id: index.php,v 1.1 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(''); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', '<b>Show:</b>'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?>
Guest Posted February 9, 2007 Posted February 9, 2007 lol ano thats what i was meaning when i was talking about there was only information there. here it is: delete this : define(''); it's not valid syntax. Corrie
pwatson04 Posted February 9, 2007 Author Posted February 9, 2007 Superb m8! that worked great! Thanks a million! While ive got you, im also getting one ov those errors in red at the top of each page reading: Warning: I am able to write to the configuration file: /home/pwatson/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. i have changed all the permissions for the configure file to as low as they will go and it still won't go away. do you know how i can get rid ov this? thanks
Guest Posted February 9, 2007 Posted February 9, 2007 Superb m8! that worked great! Thanks a million! While ive got you, im also getting one ov those errors in red at the top of each page reading: Warning: I am able to write to the configuration file: /home/pwatson/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. i have changed all the permissions for the configure file to as low as they will go and it still won't go away. do you know how i can get rid ov this? how low can you go!?!?!? lol If you are using your FTP client then it is likely NOT working. chmod the file to 644 by logging into the control panel of your host, find the icon that says 'File Manager' and chmod it from there. It'll work - Promise! Corrina
pwatson04 Posted February 9, 2007 Author Posted February 9, 2007 YOU THE MAN!! i was using ma ftp client and i had the permissions down to 400 bt when a tried it on my file manager it worked like a treat. thanks for your help
Guest Posted February 9, 2007 Posted February 9, 2007 YOU THE MAN!! A great way to insult a woman! i was using ma ftp client and i had the permissions down to 400 bt when a tried it on my file manager it worked like a treat.thanks for your help No problem. I don't know why the FTP client doesn't work. { shrug } Corrina
Recommended Posts
Archived
This topic is now archived and is closed to further replies.