Nothing can be uploaded or used through the wyswyg media browser. It does not matter what file type is uploaded.

When I try to save an upload file through the WYSIWYG module I get the following error and no file will display on the page. The file will load on to the system however. The same error appears when trying to select an uploaded file in the Library tab. In both cases I have to reload the page because I cannot exit the wysiwyg media browser overlay.

Fatal error: Call to undefined function media_get_wysiwyg_allowed_view_modes() in E:\Websites\ws_130927_01_monroefootball\htdocs\sites\all\modules\media\modules\media_wysiwyg_view_mode\media_wysiwyg_view_mode.module on line 115

This issue seams to be isolated to the Media Dev version. It does not happen on 7.x-2.0-alpha3. I have tried with jQuery update installed and not installed. No difference.

Comments

arosboro’s picture

You should disable media_wysiwyg_view_mode

devin carlson’s picture

Assigned: Unassigned » devin carlson
Status: Active » Needs review
Issue tags: -jQuery
Related issues: +#2142571: Spin-off WYSIWYG support in dedicated module / project
StatusFileSize
new2.85 KB
new6.34 KB

It looks like some function name changes didn't make it into the patch posted in #2142571: Spin-off WYSIWYG support in dedicated module / project.

The attached patch makes the required changes and adds a basic test to help prevent future issues.

The last submitted patch, 2: fix-function-names-2143847-2-tests-only.patch, failed testing.

devin carlson’s picture

Status: Needs review » Fixed

Tested #2 and committed it to Media 7.x-2.x.

spgd01’s picture

Component: WYSIWYG integration » Code
Status: Fixed » Closed (fixed)

Great thanks. i couldn't get the patch to work for some reason but the new dev version does work.