We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20575
    • 36 Posts
    Hi. I have just installed a copy of 1.0.3 onto 2 different servers, a Fasthosts server and an AN Hosting server, both are shared hosting and I am getting errors on both. The errors appear at the bottom of every resource page and refer to TinyMCE. They are as follows:

    Warning: include_once(mysite.com/northlight/assets/plugins/tinymce3241/tinymce.lang.php) [function.include-once]: failed to open stream: No such file or directory in mysite.com/northlight/manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 12
    
    Warning: include_once() [function.include]: Failed opening 'mysite.com/northlight/assets/plugins/tinymce3241/tinymce.lang.php' for inclusion (include_path='.:/mysite.com/northlight/manager/includes/') in mysite.com/northlight/manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 12
    
    Warning: include_once(/home/makelan6/public_html/nicklansdell.com/northlight/assets/plugins/tinymce3241/tinymce.functions.php) [function.include-once]: failed to open stream: No such file or directory in mysite.com/northlight/manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 13
    
    Warning: include_once() [function.include]: Failed opening 'mysite.com/northlight/assets/plugins/tinymce3241/tinymce.functions.php' for inclusion (include_path='.:mysite.com/northlight/manager/includes/') in mysite.com/northlight/manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 13
    
    Fatal error: Call to undefined function getTinyMCELang() in mysite.com/northlight/manager/includes/document.parser.class.inc.php(746) : eval()'d code on line 43


    Also on the Fasthost installation I get one more error with the configuration:
    Configuration warning:  'GD and/or Zip PHP extensions not found'


    I have not had this problem with previous versions of modx. I would be grateful anyone can explain what these mean and help me resolve the problem.

      • 36926
      • 701 Posts
      Check to see if the files listed have actually uploaded to the server.

      /assets/plugins/tinymce3241/tinymce.lang.php

      Also check your base path is correct:

      Config >> Interface & feature >> File base path

      Ben
        • 20575
        • 36 Posts
        @Ben thank for the reply. The path to the tinymce.lang.php is slightly different but I can see it. The path is assets/plugins/tinymce/lang/tinymce.lang.php

        I have also double checked the base path and this is correct. Any other ideas?
          • 12379
          • 460 Posts
          If you haven’t already, try backing up all your files, disable (or delete) your original manager and assets folders, and upload everything again, not relying on FTP application to overwrite original files.
            Mostly harmless.
            • 36926
            • 701 Posts
            The location it’s trying to find the files is where they use to be before 1.0.3, it does look like they are now stored in the lang folder.

            Are the installs you’re referring to fresh installs or an upgrade?

            Ben
              • 20575
              • 36 Posts
              @Ben The installs are both fresh and not updates
                • 36926
                • 701 Posts
                Quote from: mtwallet at Apr 21, 2010, 08:30 AM

                @Ben The installs are both fresh and not updates

                Out of interest what do the following say under the General tab for tinyMCE (Elements >> Manage Elements >> plugins >> TinyMCE >> General). Do they match what i have

                $plugin_dir = "tinymce";

                and also

                include_once $mce_path . ’lang/tinymce.lang.php’;
                include_once $mce_path . ’tinymce.functions.php’;

                Ben
                  • 20575
                  • 36 Posts
                  @Ben I’ve got:

                  $pluginfolder = "tinymce";
                  
                  include_once $modx->config['base_path'].'assets/plugins/'.$pluginfolder.'/tinymce.lang.php';
                  include_once $modx->config['base_path'].'assets/plugins/'.$pluginfolder.'/tinymce.functions.php';

                    • 36926
                    • 701 Posts
                    Quote from: mtwallet at Apr 21, 2010, 10:49 AM

                    @Ben I’ve got:

                    $pluginfolder = "tinymce";
                    
                    include_once $modx->config['base_path'].'assets/plugins/'.$pluginfolder.'/tinymce.lang.php';
                    include_once $modx->config['base_path'].'assets/plugins/'.$pluginfolder.'/tinymce.functions.php';



                    Looks like this is different to what I have on my version of 1.0.03. Back up first (or save a copy of the code you already have here), but you could try the code i have under the general tab.

                    // Set the name of the plugin folder
                    $plugin_dir = "tinymce";
                    
                    // Set path and base setting variables
                    if(!isset($mce_path))
                    { 
                        $mce_path = MODX_BASE_PATH . 'assets/plugins/'.$plugin_dir . '/'; 
                        $mce_url  = MODX_BASE_URL  . 'assets/plugins/'.$plugin_dir . '/'; 
                    }
                    
                    $params['customparams']    = $customparams;
                    $params['blockFormats']    = $mce_formats;
                    $params['entity_encoding'] = $entity_encoding;
                    $params['entities']        = $entities;
                    $params['pathoptions']     = $mce_path_options;
                    $params['resizing']        = $mce_resizing;
                    $params['disabledButtons'] = $disabledButtons;
                    $params['link_list']       = $link_list;
                    $params['theme']           = $webtheme;
                    $params['custom_plugins']  = $webPlugins;
                    $params['custom_buttons1'] = $webButtons1;
                    $params['custom_buttons2'] = $webButtons2;
                    $params['custom_buttons3'] = $webButtons3;
                    $params['custom_buttons4'] = $webButtons4;
                    $params['toolbar_align']   = $webAlign;
                    $params['width']           = $width;
                    $params['height']          = $height;
                    
                    $params['mce_path']        = $mce_path;
                    $params['mce_url']         = $mce_url;
                    
                    include_once $mce_path . 'lang/tinymce.lang.php';
                    include_once $mce_path . 'tinymce.functions.php';
                    
                    $mce = new TinyMCE($params);
                    
                    // Handle event
                    $e = &$modx->Event; 
                    switch ($e->name)
                    {
                        case "OnRichTextEditorRegister": // register only for backend
                            $e->output("TinyMCE");
                            break;
                    
                        case "OnRichTextEditorInit": 
                            if($editor!=="TinyMCE") return;
                            
                            $params['elements']        = $elements;
                            $params['css_selectors']   = $modx->config['tinymce_css_selectors'];
                            $params['use_browser']     = $modx->config['use_browser'];
                            $params['editor_css_path'] = $modx->config['editor_css_path'];
                            
                            if($modx->isBackend())
                            {
                                $params['theme']           = $modx->config['tinymce_editor_theme'];
                                $params['language']        = getTinyMCELang($modx->config['manager_language']);
                                $params['frontend']        = false;
                                $params['custom_plugins']  = $modx->config['tinymce_custom_plugins'];
                                $params['custom_buttons1'] = $modx->config['tinymce_custom_buttons1'];
                                $params['custom_buttons2'] = $modx->config['tinymce_custom_buttons2'];
                                $params['custom_buttons3'] = $modx->config['tinymce_custom_buttons3'];
                                $params['custom_buttons4'] = $modx->config['tinymce_custom_buttons4'];
                                $params['toolbar_align']   = $modx->config['manager_direction'];
                                $params['webuser']         = null;
                                
                                $html = $mce->get_mce_script($params);
                            }
                            else
                            {
                                $frontend_language = isset($modx->config['fe_editor_lang']) ? $modx->config['fe_editor_lang']:'';
                                $webuser = (isset($modx->config['rb_webuser']) ? $modx->config['rb_webuser'] : null);
                                
                                $params['webuser']         = $webuser;
                                $params['language']        = getTinyMCELang($frontend_language);
                                $params['frontend']        = true;
                                
                                $html = $mce->get_mce_script($params);
                            }
                            $e->output($html);
                            break;
                    
                        case "OnInterfaceSettingsRender":
                            global $usersettings,$settings;
                            $action = $modx->manager->action;
                            switch ($action)
                            {
                                case 11:
                                    $mce_settings = '';
                                    break;
                                case 12:
                                    $mce_settings = $usersettings;
                                    break;
                                case 17:
                                    $mce_settings = $settings;
                                    break;
                                default:
                                    $mce_settings = $settings;
                                    break;
                            }
                            
                            $params['use_editor']       = $modx->config['base_url'].$modx->config['use_editor'];
                            $params['editor_css_path']  = $modx->config['editor_css_path'];
                            $params['theme']            = $mce_settings['tinymce_editor_theme'];
                            $params['css_selectors']              = $mce_settings['tinymce_css_selectors'];
                            $params['custom_plugins']   = $mce_settings['tinymce_custom_plugins'];
                            $params['custom_buttons1']  = $mce_settings['tinymce_custom_buttons1'];
                            $params['custom_buttons2']  = $mce_settings['tinymce_custom_buttons2'];
                            $params['custom_buttons3']  = $mce_settings['tinymce_custom_buttons3'];
                            $params['custom_buttons4']  = $mce_settings['tinymce_custom_buttons4'];
                            
                            $html = $mce->get_mce_settings($params);
                            $e->output($html);
                            break;
                    
                       default :    
                          return; // stop here - this is very important. 
                          break; 
                    }
                      • 20575
                      • 36 Posts
                      @Ben I have no errors! Unfortunately I have no text editing controls either. sad