AndyHearne2005 Posted August 30, 2005 Posted August 30, 2005 Fatal error: Cannot redeclare tep_db_connect() (previously declared in /hsphere/local/home/andrewhe/dianescraftysupplies.co.uk/catalog/includes/functions/database.php:13) in /hsphere/local/home/andrewhe/dianescraftysupplies.co.uk/catalog/includes/functions/database.php on line 13 Just wondered what to do about this Thanks
Daemonj Posted August 30, 2005 Posted August 30, 2005 Apparently you have 2 calls to require/include the includes/functions/database.php file. Remove the last one and all should be well. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
AndyHearne2005 Posted September 1, 2005 Author Posted September 1, 2005 Apparently you have 2 calls to require/include the includes/functions/database.php file. Remove the last one and all should be well. <{POST_SNAPBACK}> Sorry i don't quite understand what you mean
241 Posted September 1, 2005 Posted September 1, 2005 Sorry i don't quite understand what you mean <{POST_SNAPBACK}> Hi Andy, Jim is saying that you have two instances of the function tep_db_connect() I would guess that your second instance has been created by a contribution that you have recently installed. What contributions have you recently installed? No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
AndyHearne2005 Posted September 1, 2005 Author Posted September 1, 2005 Hi Andy, Jim is saying that you have two instances of the function tep_db_connect() I would guess that your second instance has been created by a contribution that you have recently installed. What contributions have you recently installed? <{POST_SNAPBACK}> Hi Nothing as yet on this one as been trying out on a sub domain on another hosting account but plan to put a shipping contribution in and paragraphs
241 Posted September 1, 2005 Posted September 1, 2005 Hi Nothing as yet on this one as been trying out on a sub domain on another hosting account but plan to put a shipping contribution in and paragraphs <{POST_SNAPBACK}> so this is a stock default install of osCommerce as can be downloaded from http://www.oscommerce.com/solutions/downloads what changes have you made to files, as this may give a clue. No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
AndyHearne2005 Posted September 1, 2005 Author Posted September 1, 2005 so this is a stock default install of osCommerce as can be downloaded from http://www.oscommerce.com/solutions/downloads what changes have you made to files, as this may give a clue. <{POST_SNAPBACK}> When i was under the weather last week and deleted the English files by accident - that's all i can remember i'm afraid
AndyHearne2005 Posted September 7, 2005 Author Posted September 7, 2005 Still not going away :( <{POST_SNAPBACK}> Ok my cousins entered nearly 700 products already and error still happens - is it ok to delete the english etc in admin without loosing the products altogether Thanks
AndyHearne2005 Posted September 7, 2005 Author Posted September 7, 2005 Ok my cousins entered nearly 700 products already and error still happens - is it ok to delete the english etc in admin without loosing the products altogetherThanks <{POST_SNAPBACK}> I meant to say re add after
Guest Posted September 7, 2005 Posted September 7, 2005 so the admin side works ok and it is the catalog side not working? you need to figure out what it is you were changing, look at server log files, etc
AndyHearne2005 Posted September 7, 2005 Author Posted September 7, 2005 so the admin side works ok and it is the catalog side not working? you need to figure out what it is you were changing, look at server log files, etc <{POST_SNAPBACK}> Sorry i'm not sure where they are I'm also getting another error today as I installed a contribution for the product description but getting Fatal error: Call to undefined function: tep_output_string() in /hsphere/local/home/andrewhe/dianescraftysupplies.co.uk/catalog/includes/functions/html_output.php on line 81 Copied from lines 72-100 //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = $image_size[1] * $ratio; } elseif (empty($width) && empty($height)) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return false;
AndyHearne2005 Posted September 7, 2005 Author Posted September 7, 2005 Sorry i'm not sure where they are I'm also getting another error today as I installed a contribution for the product description but getting Fatal error: Call to undefined function: tep_output_string() in /hsphere/local/home/andrewhe/dianescraftysupplies.co.uk/catalog/includes/functions/html_output.php on line 81 Copied from lines 72-100 //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = $image_size[1] * $ratio; } elseif (empty($width) && empty($height)) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return false; <{POST_SNAPBACK}> Anyone?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.