•  
      request #11023 Mediawiki shows 404 error
    Infos
    #11023
    Armin Breiteneder (n3xus132)
    2020-03-23 18:37
    2018-01-17 10:23
    11353
    Details
    Mediawiki shows 404 error
    I installed the mediawiki plugin with "yum install tuleap-plugin-mediawiki", installed it then in the site admin view and created a new project where I enabled it.
    When I now click on the link to open the mediawiki plugin in a project it shows an error 404.
    It tried to reach https://<ServerIP>/plugins/mediawiki/wiki/<project_short_name>
    I was not able to find this path.
    How to resolve this issue?
    Mediawiki
    9.16
    CentOS 6
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    Smart2do (naoufel)2020-03-23 18:37
    HI,
    I installed the community version and I activated the mediawiki plugin but a message appears: 'The page you are looking for does not exist'.
    Can you help me solve this problem?
    User avatar

    Ok, out of the PHP-FPM log I saw that it searches for /usr/share/mediawiki-tuleap/... but there is only /usr/share/mediawiki-tuleap-123/... So I copied the folder and renamed it

    Don't do that, your most likely to shoot yourself in the feet.

    If Tuleap loads stuff in /usr/share/mediawiki-tuleap/ it means that it thinks that you are running mediawiki 1.20 instead of 1.23. You should check in site admin mediawiki interface and ensure all projects are migrated to MW 1.23

    https://tuleap-documentation.readthedocs.io/en/latest/administration-guide/services/mediawiki.html#upgrade-to-mediawiki-1-23

    User avatar

    Ok, out of the PHP-FPM log I saw that it searches for /usr/share/mediawiki-tuleap/... but there is only /usr/share/mediawiki-tuleap-123/... So I copied the folder and renamed it. Now it works partially, I can see the settings page in the tuleap project but after choosing the en option it again displays a blank page. When I choose french everything is fine. Here the new PHP-FPM errors:

    [23-Jan-2018 09:39:38] WARNING: [pool tuleap] child 2384 said into stderr: "NOTICE: PHP message: PHP Warning: require_once(/usr/share/mediawiki-tuleap/includes/Exception.php): failed to open stream: No such file or directory in /usr/share/tuleap/plugins/mediawiki/www/LocalSettings.php on line 210" [23-Jan-2018 09:39:38] WARNING: [pool tuleap] child 2384 said into stderr: "NOTICE: PHP message: PHP Fatal error: require_once(): Failed opening required '/usr/share/mediawiki-tuleap/includes/Exception.php' (include_path='/usr/share/mediawiki-tuleap:/usr/share/mediawiki-tuleap/includes:/usr/share/mediawiki-tuleap/languages:/usr/share/pear/:/usr/share/php:/usr/share/tuleap/src/www/include:/usr/share/tuleap/src:.:/usr/share/jpgraph') in /usr/share/tuleap/plugins/mediawiki/www/LocalSettings.php on line 210"

    User avatar
    This solved the problem with the 404 Error. Now the page is displayed in the admin-page and a blank one in the project page. I guess that I have to add an editor as extension for beeing able to create pages in tuleap.
    User avatar
    Thomas Gerbet (tgerbet)2018-01-18 09:03
    Hi,

    Can you execute the following commands on your instance and try again?

    /usr/share/tuleap/tools/utils/php56/run.php --module=nginx
    service nginx reload
    User avatar
    Additionally, also in the admin page of the site admin I am not able to change settings of the mediawiki plugin.