Topic on Extension talk:VisualEditor

VisualEditor freezes at loading bar.

9
132.239.142.130 (talkcontribs)

So I managed to install VisualEditor and parsoid on opensuse 64-bit using apache, MediaWiki 1.23.1, MariaDB 5.5.33, php 5.4.20. Node v0.10.5 and npm was installed through git.

VisualEditor works fine on an empty wiki, but the moment I finish importing pages using importDump.php the VisualEditor stops working. Parsoid doesn't seem to have any errors, apache doesn't have any error logs. I just see that the page finished parsing and VisualEditors loading bar animation just keeps going.

I've tried disabling other extensions that were running just fine before importing the xml dump of the older wiki version, but it hasn't really done any good. Any idea what might be going on?

Krinkle (talkcontribs)

Is there any relevant information in the developer console of the browser?

132.239.142.130 (talkcontribs)

I'm not a developer for this sort of thing, but there is some information not present in the console of my firefox browser. The best I can probably do is just regurgitate it. I have snapshots of my system I can go to and from at least so it's pretty easy to revert.

Before the import:

Use of getAttributeNode() is deprecated. Use getAttribute() instead. load.php5:34
Use of attributes' specified attribute is deprecated. It always returns true. load.php5:34
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. load.php5:48
Use of document.createAttribute() is deprecated. Use element.setAttribute() instead. page-attachment.js:209
Use of setAttributeNode() is deprecated. Use setAttribute() instead.

After the import:

Error in parsing value for 'display'.  Declaration dropped. load.php5:1
Unknown property 'zoom'.  Declaration dropped. load.php5:1
Expected declaration but found '*'.  Skipped to next declaration. load.php5:1
Expected 'important' but found 'ie'.  Expected ';' or '}' to terminate declaration but found 'ie'.  Declaration dropped. load.php5:1
Error in parsing value for 'background-image'.  Declaration dropped. load.php5:1
Error in parsing value for 'list-style-type'.  Declaration dropped. load.php5:1
Unknown property 'user-select'.  Declaration dropped. load.php5:1
Unknown pseudo-class or pseudo-element '-ms-input-placeholder'.  Ruleset ignored due to bad selector. load.php5:1
Unknown pseudo-class or pseudo-element '-webkit-search-decoration'.  Ruleset ignored due to bad selector. load.php5:1
reflow: 0.11ms function jQuery.support</<, load.php5 line 19
reflow: 0.54ms function jQuery.support</<, load.php5 line 19
reflow: 0.17ms function jQuery.support</<, load.php5 line 19
reflow: 0.12ms function jQuery.support</<, load.php5 line 20
reflow: 0.3ms function jQuery.support</<, load.php5 line 20
reflow: 0.59ms function jQuery.cssHooks[name].get, load.php5 line 109
reflow: 0.24ms
Error: JavaScript parse error: Parse error: Missing ; before statement in file 'MediaWiki:Common.js' on line 5 load.php5:1
reflow: 0.42ms
Error in parsing value for 'unicode-bidi'.  Declaration dropped. Main_Page:2
reflow: 0.15ms
reflow: 0.63ms
Use of getAttributeNode() is deprecated. Use getAttribute() instead. load.php5:34
Use of attributes' specified attribute is deprecated. It always returns true. load.php5:34
Unknown property 'user-select'.  Declaration dropped. Main_Page:2
Expected 'important' but found 'ie'.  Expected ';' or '}' to terminate declaration but found 'ie'.  Declaration dropped. Main_Page:6
Expected 'none' or URL but found 'alpha('.  Error in parsing value for 'filter'.  Declaration dropped. Main_Page:6
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. load.php5:48
reflow: 0.15ms
Use of document.createAttribute() is deprecated. Use element.setAttribute() instead. page-attachment.js:209
Use of setAttributeNode() is deprecated. Use setAttribute() instead. page-attachment.js:210
reflow: 2.3ms
reflow: 0.4ms
reflow: 1.15ms
reflow: 0.16ms function jQuery.fn.offset, load.php5 line 141
reflow: 0.39ms
reflow: 0.26ms function <anonymous>, load.php5 line 15
reflow: 0.11ms function <anonymous>, load.php5 line 15
reflow: 0.27ms
Expected 'none' or URL but found 'Alpha('.  Error in parsing value for 'filter'.  Declaration dropped. Main_Page:2
Expected 'important' but found 'ie'.  Expected ';' or '}' to terminate declaration but found 'ie'.  Declaration dropped. Main_Page:2
Unknown property '-moz-border-radius-topleft'.  Declaration dropped. Main_Page:2
Unknown property '-moz-border-radius-topright'.  Declaration dropped. Main_Page:2
Unknown property '-moz-border-radius-bottomleft'.  Declaration dropped. Main_Page:2
Unknown property '-moz-border-radius-bottomright'.  Declaration dropped. Main_Page:2
Unknown property '-moz-border-radius'.  Declaration dropped. Main_Page:2
Unknown property 'zoom'.  Declaration dropped. Main_Page:8
Expected declaration but found '*'.  Skipped to next declaration. Main_Page:8
Expected 'important' but found 'ie'.  Expected ';' or '}' to terminate declaration but found 'ie'.  Declaration dropped. Main_Page:10
Unknown property 'user-select'.  Declaration dropped. Main_Page:10
Error in parsing value for 'background-image'.  Declaration dropped. Main_Page:10
Expected color but found 'top'.  Error in parsing value for 'background-image'.  Declaration dropped. Main_Page:10
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. Main_Page:10
Error in parsing value for 'background-image'.  Declaration dropped. Main_Page:2
Unknown pseudo-class or pseudo-element 'selection'.  Ruleset ignored due to bad selector. Main_Page:2
Unknown property 'user-select'.  Declaration dropped. Main_Page:2
Unknown property 'column-count'.  Declaration dropped. Main_Page:2
Expected 'important' but found 'ie'.  Expected ';' or '}' to terminate declaration but found 'ie'.  Declaration dropped. Main_Page:6
Expected 'important' but found 'ie'.  Expected ';' or '}' to terminate declaration but found 'ie'.  Declaration dropped. Main_Page:2
Error in parsing value for 'white-space'.  Declaration dropped. Main_Page:6
Expected 'important' but found 'ie'.  Expected ';' or '}' to terminate declaration but found 'ie'.  Declaration dropped. Main_Page:4
Unknown property 'user-select'.  Declaration dropped. Main_Page:10
Expected 'none' or URL but found 'progid'.  Error in parsing value for 'filter'.  Declaration dropped. Main_Page:10
Error in parsing value for 'background-image'.  Declaration dropped. Main_Page:10
Expected color but found 'top'.  Error in parsing value for 'background-image'.  Declaration dropped. Main_Page:10
Error in parsing value for 'word-break'.  Declaration dropped. Main_Page:10
Unknown property 'overflow-wrap'.  Declaration dropped. Main_Page:10
reflow: 0.7ms
132.239.142.130 (talkcontribs)

Sorry! I forgot to include line breaks...

I'm not a developer, just a student assistant trying to work on upgrading my works MediaWiki version and get the VisualEditor running. CS major at UCSD though, but all we've worked with so far is basic data structures and C programming. lol

Krinkle (talkcontribs)

I've added <pre> tags for you. This will format the pasted console lines with the original line breaks preserved (without needing to add <br>).

Krinkle (talkcontribs)

Most of these lines are irrelevant (they relate to computation of styles). You can mute the "CSS" button (and others that aren't JavaScript) in Firefox to get a better picture.


One problem that stands out is this one:

Error: JavaScript parse error: Parse error: Missing ; before statement in file 'MediaWiki:Common.js' on line 5 load.php5:1

Looks like you have some third-party scripts in the "MediaWiki:Common.js" resource page on your local wiki with a syntax error in it. I suggest editing that page and removing its contents. Then try VisualEditor again. This should help identify it (or rule it out) as the source of the problem.

132.239.142.130 (talkcontribs)

Thanks! I'll give that a shot once I'm back from lunch and do some investigating. I tried to edit my original post but it froze when I tried to submit it. It's fun having those days where things just don't seem to want to work. At least it's a three day weekend coming up starting tomorrow! :)

132.239.142.130 (talkcontribs)

So, I cleared the page (Edit source and deleted everything) and it still gives me the parse error. I also commented out every extension require_once except for the ones necessary for VisualEditor.

Ark25 (talkcontribs)

It happened to me too, and today I tried VE again, after two years, and it still freezes in Firefox but it doesn't freeze in Chrome.

Reply to "VisualEditor freezes at loading bar."