Page MenuHomePhabricator

Category tree doesn't expand - failed to open stream: No such file or directory in LocalSettings.php
Open, Needs TriagePublic

Description

Hello!

On opening an article for edit via the "edit" tag, a checkbox and the top category show up beneath the edit window. I cannot expand the category tree to check other categories.

Only sometimes, when I return to the edit mode on another way (like from the browser history), but even then not always, it may work as expected and I see the whole tree with a checkbox in front of each item.

The bug was in a 1.27 installation and is still present under 1.30 to which I copied the installation. [http://vexilli.net/w/ My wiki, for reference.]

Hoping for a fix, yours
Winfried

Event Timeline

Vvjjkkii renamed this task from Category tree doesn't expand to wwdaaaaaaa.Jul 1 2018, 1:12 AM
Vvjjkkii removed Wschroedter as the assignee of this task.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot raised the priority of this task from High to Needs Triage.Jul 3 2018, 1:53 AM
Aklapper changed the task status from Open to Stalled.Mar 25 2020, 9:22 AM
Aklapper removed Wschroedter as the assignee of this task.

@Wschroedter: Sorry that this has not received any feedback. Assuming you don't plan to work on fixing this yourself, hence removing task assignee.
Also note that you're running an unsupported insecure version of MediaWiki. Please upgrade for your own safety.

If this problem still happens:

  1. Which exact branch of SelectCategory is used?
  2. Can you please attach a screenshot of the problem?
  3. Can you please use your web browser's developer tools? If there is a problem or an error with JavaScript it should be printed in the 'console' of the developer tools. Often JavaScript errors are a reason for problems, or a non-existing file called from another file (which can be seen in the 'network' tab). For more information please see:

Hello @Aklapper,

running 1.34.1 now, I get this error message when activation the extension

Warning: require_once($IP/extensions/SelectCategory/SelectCategory.php): failed to open stream: No such file or directory in /kunden/vexilli.net/webseiten/w/LocalSettings.php on line 279

Fatal error: require_once(): Failed opening required '$IP/extensions/SelectCategory/SelectCategory.php' (include_path='/kunden/vexilli.net/webseiten/w/vendor/pear/console_getopt:/kunden/vexilli.net/webseiten/w/vendor/pear/mail:/kunden/vexilli.net/webseiten/w/vendor/pear/mail_mime:/kunden/vexilli.net/webseiten/w/vendor/pear/net_smtp:/kunden/vexilli.net/webseiten/w/vendor/pear/net_socket:/kunden/vexilli.net/webseiten/w/vendor/pear/pear-core-minimal/src:/kunden/vexilli.net/webseiten/w/vendor/pear/pear_exception:.:/usr/local/lib/php') in /kunden/vexilli.net/webseiten/w/LocalSettings.php on line 279

Stay healthy!
Winfried

Hi @Wschroedter, does that mean that the Category tree still doesn't expand? Or is the last comment a separate/new issue?
(Last comment sounds like a configuration issue and not like a software bug.)

As the Wiki doesn't start with SelectCategory activated I can't tell whether the bug itself is still there :-(
The installation code in LocalSettings wasn't changed. The issue exists since installation of 1.34.1 in April 2020. Yesterday I tried once more, without result. I even changed the line

require_once( 'extensions/SelectCategory/SelectCategory.php' );

according to the prescription in MediaWiki to read

require_once( '$IP/extensions/SelectCategory/SelectCategory.php' );

without result. I suspect an incompatibility with 1.34.1?
Oh, wait, you said "branches", I read the MediaWiki page once more, and another link seems to offer another version (different file name, at leas)t. I'll try it out and report back soon. - No, still fatal error.
Cheers, Winfried

@Wschroedter: Could you please double-check if the file /extensions/SelectCategory/SelectCategory.php exists in your installation path, with exactly this spelling (capital letters etc), plus that file and folder permissions are correct (readable)? Asking because of T257102...
This might be a question for https://www.mediawiki.org/wiki/Project:Support_desk though.

Folder was 750 for "Rechte" (32678 for Besitzer, 99 for Gruppe). Set to 754.
File was 640 for "Rechte" (32678 for Besitzer, 99 for Gruppe). Set to 644.
Same fatal error :-(
I never before in any extension had to change an attribute.

Gruß, Winfried

See my previous comment: Could you please double-check if the file /extensions/SelectCategory/SelectCategory.php exists in your installation path, with exactly this spelling (capital letters etc)?

I understand that you are asking because of the error message. Well, yes, for sure, I double-checked it. Although I never type off but extract and copy the downloaded extension installation packages. So if there were an error it would be in the installation package. I fear I can't be of more help.

Aklapper renamed this task from Category tree doesn't expand to Category tree doesn't expand - failed to open stream: No such file or directory in LocalSettings.php.Sep 6 2020, 6:27 AM
Aklapper changed the task status from Stalled to Open.