Ian MacMillan Posted January 12, 2005 Share Posted January 12, 2005 Ok, just downloaded and installed step by step http://www.oscommerce.com/community/contributions,1347/ However now I am getting the following errors. In the catalog Warning: main(includes/languages/english/FILENAME_DEFINE_MAINPAGE): failed to open stream: No such file or directory in /homepages/35/d90652178/htdocs/index.php on line 307 Warning: main(): Failed opening 'includes/languages/english/FILENAME_DEFINE_MAINPAGE' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/35/d90652178/htdocs/index.php on line 307 And in the Product Admin: } else { // create category/product info $heading[] = array('text' => '' . EMPTY_CATEGORY . ''); $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' ' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' ' . "\n"; // Add neccessary JS for WYSIWYG editor of category image if($action=='edit_category'){ if (HTML_AREA_WYSIWYG_DISABLE != 'Disable'){ echo ' '; } } } Any ideas? I followed the driections, and double checked... Thanks, Ian Quote Ian MacMillan Rockingham Junction Models Epping, New Hampshire Link to comment Share on other sites More sharing options...
scorpio33 Posted January 12, 2005 Share Posted January 12, 2005 Ok, just downloaded and installed step by step http://www.oscommerce.com/community/contributions,1347/ However now I am getting the following errors. In the catalog Warning: main(includes/languages/english/FILENAME_DEFINE_MAINPAGE): failed to open stream: No such file or directory in /homepages/35/d90652178/htdocs/index.php on line 307 Warning: main(): Failed opening 'includes/languages/english/FILENAME_DEFINE_MAINPAGE' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/35/d90652178/htdocs/index.php on line 307 And in the Product Admin: } else { // create category/product info $heading[] = array('text' => '' . EMPTY_CATEGORY . ''); $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' ?' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' ?' . "\n"; // Add neccessary JS for WYSIWYG editor of category image if($action=='edit_category'){ if (HTML_AREA_WYSIWYG_DISABLE != 'Disable'){ echo ' '; } } } ? Any ideas? I followed the driections, and double checked... Thanks, Ian <{POST_SNAPBACK}> [/quote Hi, I downloaded the WYSIWYG Contribution and installed it. I get the same errors that you are getting. I doubble checked everything and couldn't find any mistakes that i made. I am still waiting for someone to tell me how to fix the problem. The only thing that i could do was to delete the problem line. (In your case line 307). This is what i deleted. This will remove the error from your front page. <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_MAINPAGE); ?></td> I dont know how to get rid of the garbelled text in admin. Please let me know if you find the fix for this problem. I will dothe same Quote Link to comment Share on other sites More sharing options...
jofgav Posted January 20, 2005 Share Posted January 20, 2005 I got the same problem, but only in the admin one. Not sure if what I've done will break it elsewhere, but to get rid of the code which appears in the admin I just deleted the code I added in: STEP 1.1g --> FIND: /admin/categories.php =========================== And directly UNDERNEATH IT add this: ============================ } else { // create category/product info $heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>'); $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; // Add neccessary JS for WYSIWYG editor of category image if($action=='edit_category'){ if (HTML_AREA_WYSIWYG_DISABLE != 'Disable'){ echo ' <script language="JavaScript1.2" defer> var config = new Object(); // create new config object config.width = "250px"; config.height = "35px"; config.bodyStyle = "background-color: white; font-family: Arial; color: black; font-size: 12px;"; config.debug = ' . HTML_AREA_WYSIWYG_DEBUG . '; config.toolbar = [ ["InsertImageURL"] ]; config.OscImageRoot = "' . trim(HTTP_SERVER . DIR_WS_CATALOG_IMAGES) . '"; editor_generate("categories_image",config); </script> '; } } } I get no errors, now and it seems fine for the few areas I have tried out. Please let me know if there's a reason I shouldn't remove this as that's the only thing which seems to cause this problem: following the install guide word for word! Quote Jonathan Cole =ASY=jof Link to comment Share on other sites More sharing options...
jofgav Posted January 20, 2005 Share Posted January 20, 2005 I'm gonna try the suggestion here: another thread Quote Jonathan Cole =ASY=jof Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.