Page MenuHomePhabricator

Editors not working
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
Using Windows 10.

  1. Install XAMPP
    1. Download xampp-portable-windows-x64-8.1.6-0-VS16-installer.exe
    2. Install it with default settings.
  2. Environment Settings
    1. Add "extension=intl" to \xampp\php\php.ini
    2. Start Apache and mysql from XAMPP Control Panel
    3. Create database "my_wiki" and user "wikiAdmin" using phpMyAdmin
    4. Give "wikiAdmin" ALL PRIVILEGES ON my_wiki
  3. Install Mediawiki
    1. Download Mediawiki-1.39.2.zip
    2. Extract it to \xampp\htdocs\wiki
    3. Go to http://localhost/wiki/ and follow the installation panel.
      1. All settings are setted to default except:
        1. Outbound email disabled.
        2. All extension enabled, except AbuseFilter SpamBlacklist and TitleBlacklist.
        3. File upload enabled.
    4. Downloaded LocalSettings.php and copied it to \xampp\htdocs\wiki
  4. Go to http://localhost/wiki/index.php and login.
  5. Go to http://localhost/wiki/index.php?title=Homepage&veaction=edit
    1. Cannot use Visual Editor
  6. Go to http://localhost/wiki/index.php?title=Homepage&action=edit
    1. Edit something and save my edition.
    2. Connection reseted at "http://localhost/wiki/index.php?title=Homepage&action=submit"
    3. Homepage is still the default edition.

What happens?:
Editors not working.

Software version:
XAMPP 8.2.0 portable VS16

  • Apache 2.4
  • PHP Version 8.2.0
  • MySQL (I don't know the version of MySQL)

Other information:
Browser: Chrome 111.0.5563.65

Event Timeline

Aklapper changed the task status from Open to Stalled.Mar 17 2023, 7:37 AM

Hi @Xyy23330121, thanks for taking the time to report this!

Cannot use Visual Editor

Why not?

Editors not working.

What makes you think so? What exactly does happen?

Visual Editor
When I click the link to the visual editor:
http://localhost/wiki/index.php?title=Homepage&veaction=edit
a progress bar shows on the page and started loading, and the bar stopped.
After waiting for a few minutes, I'm sure that visual editor won't be loaded.

Code Editor
And when I click the link to the code editor:
http://localhost/wiki/index.php?title=Homepage&action=edit
It seems fine, but if I make some edits and save my changes by click the link:
http://localhost/wiki/index.php?title=Homepage&action=submit
Chrome shows an error page says "This site can’t be reached", "The connection was reset" with the error code: ERR_CONNECTION_RESET.
When I go back to http://localhost/wiki/index.php?title=Homepage, all the edits I made seems lost.

What is shown in the network tab and the console tab of your web browser's Developer Tools when you visit the URL http://localhost/wiki/index.php?title=Homepage&veaction=edit&debug=true ?

Chrome shows an error page says "This site can’t be reached", "The connection was reset" with the error code: ERR_CONNECTION_RESET.

That sounds like a configuration issue and not like a software bug... Is there anything in the log of the server software?

The console tab shows:

load.php?debug=1
<b>Deprecated</b>:  Creation of dynamic property Less_Tree_Dimension::$parensInOp is deprecated in <b>C:\xampp\htdocs\wiki\vendor\wikimedia\less.php\lib\Less\Parser.php</b> on line <b>2313</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Less_Tree_Dimension::$parensInOp is deprecated in <b>C:\xampp\htdocs\wiki\vendor\wikimedia\less.php\lib\Less\Parser.php</b> on line <b>2314</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Less_Tree_Dimension::$parensInOp is deprecated in <b>C:\xampp\htdocs\wiki\vendor\wikimedia\less.php\lib\Less\Parser.php</b> on line <b>2313</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property Less_Tree_Dimension::$parensInOp is deprecated in <b>C:\xampp\htdocs\wiki\vendor\wikimedia\less.php\lib\Less\Parser.php</b> on line <b>2314</b><br />

load.php:1
Failed to load resource: net::ERR_CONNECTION_RESET

There are also some alerts in the log.
Apache error.log.

[php:notice] PHP Deprecated:  Creation of dynamic property Less_Tree_Dimension::$parensInOp is deprecated in C:\\xampp\\htdocs\\wiki\\vendor\\wikimedia\\less.php\\lib\\Less\\Parser.php on line 2313, referer: http://localhost/wiki/index.php?title=Homepage&veaction=edit&debug=true
[php:notice] PHP Deprecated:  Creation of dynamic property Less_Tree_Variable::$parensInOp is deprecated in C:\\xampp\\htdocs\\wiki\\vendor\\wikimedia\\less.php\\lib\\Less\\Parser.php on line 2314, referer: http://localhost/wiki/index.php?title=Homepage&veaction=edit&debug=true
[php:notice] PHP Deprecated:  Creation of dynamic property Less_Tree_Variable::$parensInOp is deprecated in C:\\xampp\\htdocs\\wiki\\vendor\\wikimedia\\less.php\\lib\\Less\\Parser.php on line 2314, referer: http://localhost/wiki/index.php?title=Homepage&veaction=edit&debug=true

If the only error is still Failed to load resource: net::ERR_CONNECTION_RESET then the problem seems to be lower in the stack than MediaWiki itself.
Please bring this up in a support forum - see https://www.mediawiki.org/wiki/Communication . Thanks a lot!