1

According to the WYGWAM Installing and Updating page, WYGWAM requires ExpressionEngine 2.4 or late.

However, if you are using both WYGWAM 3.2.1 and Assets 2.2.2 (may be the same for older versions) and you are running an EE version less than 2.6, you are likely going to get the following error when attempting to access any of the Editor Configurations within WYGWAM's settings:

Call to undefined function ee() in /PATH/TO/INSTALL/DIR/system/expressionengine/third_party/wygwam/mcp.wygwam.php on line 139

1 Answer 1

3

This is a pretty easy to resolve. Simply open up:

/expressionengine/third_party/wygwam/mcp.wygwam.php

and change line 139 from:

$all_sources = ee()->assets_lib->get_all_sources();

to

$all_sources = $this->EE->assets_lib->get_all_sources();

Looks like this is the only reference to the ee() global in the codebase. Because this code block exists in a conditional which only gets executed if you are using Assets, you won't run into this problem if you are using the native File Manager.

2
  • I've got Assets 1.2.2 (yeah, I know), and WYGWAM 3.2.2 on EE 2.5.2. This fix doesn't quite work, I think because get_all_sources isn't available in Assets 1.2.2. I don't have a workaround yet.
    – cherrypj
    May 25, 2014 at 3:33
  • ETA: Updating to Assets 2.2.2 works.
    – cherrypj
    May 25, 2014 at 3:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.