Page MenuHomePhabricator

Edit button not working - empty /lib folder after downloading VE extension
Closed, InvalidPublic

Description

I know this could be my fault, but I checked everything and it looks like it's a bug. Please correct me if I am wrong.

Whenever I click the edit button the webpage does nothing. I see from the javascript debugger that the code stops at this line:

return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply(eventHandle.elem, arguments) : undefined;

Any clues?

I checked parsoid, tried creating a new settings file with minimal options, upgraded to latest trunk version both core and visualeditor.


Version: unspecified
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz58966

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:26 AM
bzimport added a project: VisualEditor.
bzimport set Reference to bz58966.

Any link to reproduce the problem? Which browser(s) does this happen with?

It’s a private wiki, but VE should work even with readonly access (at least it worked before) by entering ?veaction=edit at the end of the URL. I tried firefox and Safari for Mac.

This worked and now it doesn’t: http://wiki.mc128k.info/index.php?title=Test&veaction=edit

I also noticed that if I click edit from the read tab it does nothing, if I click edit from the edit source tab it changes the URL, but nothing again.

Thanks.

I tried installing a clean mediawiki with only VE with a local sqlite database. Same issue, not even picked my config file, made one new.

Adding more infos: debugging shows many 404 errors, and the lib/ve/ folder is empty. Something went very wrong with some git merge I think.

sumanah wrote:

Mc128k in MediaWiki-General just now confirmed that s/he has tried upgrading to the latest git master of VE and the bug still occurs.

Screen shot of console errors

Attached:

Screen_Shot_2014-01-13_at_17.07.39.png (745×1 px, 198 KB)

Is there anything relevant in the Apache error log (could be folder/file access permissions)? Or in the debug log (see https://www.mediawiki.org/wiki/Manual:How_to_debug#Setting_up_a_debug_log_file )?

When you download the VE extension, the lib folder is empty. (well, only an empty subfolder). This is the cause.

(In reply to comment #8)

When you download the VE extension, the lib folder is empty. (well, only an
empty subfolder). This is the cause.

The empty folder is a submodule. Run 'git submodule update --init' to download it, and 'git submodule update' to update it after running git pull.