Guest Posted August 3, 2006 Posted August 3, 2006 Hi Everyone, Not being all that familiar with coding yet, I will explain things in layman's terms. I uploaded the wysiwyg v1.6.6 yesterday. It seemed as if everything went smoothly. I went into configuration and found all the the wysiwyg editor listed. I can go in and customize settings. I don't see the html editor when I open a new product page. and, the first page I see when I click on "online catalog" has the following error message. Fatal error: Cannot redeclare tep_db_connect() (previously declared in /mnt/w0201/d45/s07/b0288fdf/www/ervscollectibles.net/store/catalog/includes/functions/database.php:13) in /mnt/w0201/d45/s07/b0288fdf/www/ervscollectibles.net/store/catalog/includes/functions/database.php on line 13 Can someone get me on the right path here. The readme file never had me going into the includes/functions area. So I'm assuming that this error was from database import. Thanks, Kathy :'(
Guest Posted August 3, 2006 Posted August 3, 2006 perhaps you overrided a language file with a catalog one. Double check the install instructions.
Guest Posted August 3, 2006 Posted August 3, 2006 perhaps you overrided a language file with a catalog one. Double check the install instructions. Thank you for the tip enigma1. I went in and did find some discrepancies, but not between language file and catalog. Here's what I found: Potential problem line in file admin/categories: (Original) <td class="main" align="right"><?php echo tep_draw_hidden_field('products_date_added', (tep_not_null($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr> </table></form> Step 1.2 from read me instructions: STEP 1.2 --> FIND: /admin/categories.php ================================================================================ ==== Look for this around line 504: ================================================================================ ==== <td class="main" align="right"><?php echo tep_draw_hidden_field('products_date_added', (($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </form></tr> There are differences between the two lines. (Original vs Instructions) Original file line shows: (tep_not_null($pInfo->products_date_added) Instructions call for: (($pInfo->products_date_added) Original file line shows: 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '')) . '">' Instructions call for: 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' Original file line shows: . '</a>'; ?></td> </tr> </table></form> Instructions call for: '</a>'; ?></td> </form></tr> There is no line in the category file that exactly matches the line in the read me instructions. I missed these differences last night when making my changes. Questions: Will adding the missing characters solve the error? and if yes, should I put new line in front of </table> Thanks, Kathy Sorry for the length!
Guest Posted August 3, 2006 Posted August 3, 2006 Questions: Will adding the missing characters solve the error? and if yes, should I put new line in front of </table> Oops, I got this bass ackwards! My question should be,, should I take out the coding in the original to match the Instructions? This line wasn't modified. New coding was added below it. Thanks, Kathy
Guest Posted August 3, 2006 Posted August 3, 2006 the error comes from the catalog end not the admin according to your first post. Therefore check the changes you did there.
Guest Posted August 5, 2006 Posted August 5, 2006 the error comes from the catalog end not the admin according to your first post. Therefore check the changes you did there. Quick update, the problems were my fault, due to inexperience and learning curve! :D I went back and triple checked all install steps for wysiwyg contrib. I had indeed put modifications in the wrong files. enigma1, thanks for your suggestion, your prompting made me take a closer look and realize that many files of the same name are in different directories. So, the fatal error is gone, but I still have two areas related to the html screen in new products that are not working. The first is downloading a pic into the product listing. I can enter the url for the pic, but all that appears in the listing is the dreaded red X in white box. I have found a way to work around this, so it is not imperative that I get this function working. The second problem is in the administration box, under the catalog heading, I now see "Define Main Page" as an option. I don't know what this is, and when I click on it, I get a new screen with the words "TEXT_FILE_DOES_NOT_EXIST" showing and a back button that doesn't work. What is this Main Page and would it be useful to me to have it? Thanks, Kathy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.