We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

WYMEditor for EE2

Development and Programming

calypso's avatar
calypso
2 posts
15 years ago
calypso's avatar calypso

I’m guessing so. I was told that my server had 5, but I ran phpinfo() and it said 4. I guess I’ll have to call and complain. Thanks.

       
Adrian Walls's avatar
Adrian Walls
59 posts
15 years ago
Adrian Walls's avatar Adrian Walls

Hi,

I am having the same problem as @Enteract. I am running Multi Site Manager. Once I installed WYMEditor and tried to publish a page with a field type WYMEditor I get the following error message along with what looks like a load of template variables names dumped out on screen. See attached.

The requested URL cms/expressionengine/third_party/wymeditor/javascript/iframe/default/wymiframe.html was not found on this server

Any ideas?

Thanks.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

If you have moved your “system” folder below the root directory, you will need put the javascript folder in the root “themes” folder, and define the URL to that folder, and add two additional config values to your config.php file to tell WYMEditor where to look for the files:

$config[‘wym_js_path’] = ‘/full/server/path/themes/wymeditor/javascript/”; $config[‘wym_jquery_path’] = = ‘/full/server/path/SYSTEM/expressionengine/javascript/compressed/jquery/jquery.js”;

Note that I don’t know your server path before the CMS part, so change that accordingly. This should fix it for you.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

Actually, your error seems to be because you might be accessing the CP under a different URL than what is defined in your config file. e.g. http://mysite.com/system/ vs http://www.mysite.com/system/

       
Adrian Walls's avatar
Adrian Walls
59 posts
15 years ago
Adrian Walls's avatar Adrian Walls

Hi,

I am a little confused as I noticed a slight change in your first post where you said to update the config.php file with the following lines:

$config['wym_js_path'] = '/wwwroot/cms/expressionengine/third_party/wymeditor/javascript/";
$config['wym_jquery_path'] = '/wwwroot/cms/expressionengine/javascript/compressed/jquery/jquery.js";

But this now has been updated to:

$config[‘wym_js_path’] = ‘/full/server/path/themes/wymeditor/javascript/”;
$config[‘wym_jquery_path’] =  = ‘/full/server/path/SYSTEM/expressionengine/javascript/compressed/jquery/jquery.js”

;

I don’t have a themes folder for wymeditor. I am running EE 2.0.2. I tried your first suggestion so my config file looks like:

$config['wym_js_path'] = '/home/whitewat/www/cms/expressionengine/third_party/wymeditor/javascript/';
$config['wym_jquery_path'] = '/home/whitewat/www/cms/expressionengine/third_party/wymeditor/javascript/jquery.js';

But I am still getting the same error. I am also accessing the CP with the exact URL it was installed under.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

You have to make the themes folder, and move the javascript file to that new folder, then define the URL to that folder in the config.php file.

I’m debating on making this part of the standard install… creating a themes/wymeditor folder. It is setup to be as easy install as possible… IF you don’t install EE below the root.

As for your config file, the wym_js_path needs to be a URL, not a system path. So it would be something like $config[‘site_url’] . ‘themes/wymeditor/javascript’;

Obviously I need to work on documentation for this part, and decide if I want to require a themes folder as part of the default install.

       
Adrian Walls's avatar
Adrian Walls
59 posts
15 years ago
Adrian Walls's avatar Adrian Walls

Still not having any joy with this. Have set in my config file:

$config['wym_js_path'] = 'http://www.whitewaterbrewery.com/themes/wymeditor/javascript/';
$config['wym_jquery_path'] = 'http://www.whitewaterbrewery.com/cms/expressionengine/javascript/compressed/jquery/jquery.js';

However I am still now seeing JS errors.

Uncaught SyntaxError: Unexpected token <
/cms/index.php?S=b4bde900cdf8838573e5f39c8d2cc6c9f33c6016&D=cp&C=javascript&M=load&package=wymeditor&file=plugins/hovertools/jquery.wymeditor.hovertools:1Uncaught SyntaxError: Unexpected token <
/cms/index.php?S=b4bde900cdf8838573e5f39c8d2cc6c9f33c6016&D=cp&C=javascript&M=load&package=wymeditor&file=plugins/linkattr/jquery.wymeditor.linkattr:1Uncaught SyntaxError: Unexpected token <
/cms/index.php?S=b4bde900cdf8838573e5f39c8d2cc6c9f33c6016&D=cp&C=javascript&M=load&package=wymeditor&file=plugins/ee_browser/jquery.wymeditor.ee_browser:1Uncaught SyntaxError: Unexpected token <
index.php:403Uncaught ReferenceError: WYMeditor is not defined
       
Brian Litzinger's avatar
Brian Litzinger
711 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

wym_jquery_path needs to be a server path, e.g. /home/user/site/cms/express… etc

       
Adrian Walls's avatar
Adrian Walls
59 posts
15 years ago
Adrian Walls's avatar Adrian Walls

Thanks for your patience but still getting JS errors.

missing } in XML expression http://www.whitewaterbrewery.com/cms/index.php?S=0ef57a1f2cf3632513291d955935c19a9c2f8d2d&D=cp&C=javascript&M=load&package=wymeditor&file=jquery.wymeditor.min Line 13

missing } in XML expression http://www.whitewaterbrewery.com/cms/index.php?S=0ef57a1f2cf3632513291d955935c19a9c2f8d2d&D=cp&C=javascript&M=load&package=wymeditor&file=plugins/hovertools/jquery.wymeditor.hovertools Line 13

missing } in XML expression http://www.whitewaterbrewery.com/cms/index.php?S=0ef57a1f2cf3632513291d955935c19a9c2f8d2d&D=cp&C=javascript&M=load&package=wymeditor&file=plugins/linkattr/jquery.wymeditor.linkattr Line 13

missing } in XML expression http://www.whitewaterbrewery.com/cms/index.php?S=0ef57a1f2cf3632513291d955935c19a9c2f8d2d&D=cp&C=javascript&M=load&package=wymeditor&file=plugins/ee_browser/jquery.wymeditor.ee_browser Line 13

WYMeditor is not defined http://www.whitewaterbrewery.com/cms/index.php?S=0ef57a1f2cf3632513291d955935c19a9c2f8d2d&D=cp&C=content_publish&M=entry_form&channel_id=5 Line 440

Have set config as:

$config[‘wym_js_path’] = ‘http://www.whitewaterbrewery.com/themes/wymeditor/javascript/’; $config[‘wym_jquery_path’] = ‘/home/whitewat/public_html/cms/expressionengine/javascript/compressed/jquery/jquery.js’;

Not sure if I am missing something obvious here but just can’t put my finger on it.

       
Brian Litzinger's avatar
Brian Litzinger
711 posts
15 years ago
Brian Litzinger's avatar Brian Litzinger

Wallzy, are you in a huge hurry to get this working? I’m going to make some changes one night this week to hopefully avoid this sort of confusion in the future. Also, is your system/cms folder below the root? It doesn’t look like it based on the jquery_path. If it isn’t below the root, then you really shouldn’t have to move the javascript folder to the themes folder, or define those config values.

       
Adrian Walls's avatar
Adrian Walls
59 posts
15 years ago
Adrian Walls's avatar Adrian Walls

Going to send you an email, it’ll eliminate a chain of responses from the forum and we can report back findings after. Email to follow shortly.

       
First 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.