Jump to content
Sign in to follow this  
Ian MacMillan

MS2 HTML WYSIWYG Editor, Product Desc, Email +

Recommended Posts

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


Ian MacMillan

 

Rockingham Junction Models

Epping, New Hampshire

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

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!


Jonathan Cole

=ASY=jof

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×