Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MS2 HTML WYSIWYG Editor, Product Desc, Email +


Ian MacMillan

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

Link to comment
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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...