Project:Support desk

About this board

Welcome to the MediaWiki Support desk, where you can ask MediaWiki questions!

(Read this message in a different language)

See also

Other places to ask for help:

Before you post

Post a new question

  1. To help us answer your questions, please indicate which versions you are using, as found on your wiki's Special:Version page:
    • MediaWiki version
    • PHP version
    • Database type and version
  2. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  3. To start a new thread, click "Start a new topic".

Replacing image logo of a company

1
Twigglee (talkcontribs)

How do I replace an outdated image on a Wikipedia Commons page?

Reply to "Replacing image logo of a company"

Getting invalid token error even after sending the correct edit token while upload image using API

5
Senthilnathan Murthy (talkcontribs)

Hi,

I'm trying to edit a page and upload an image using Mediawiki API call.

I've logged in as user. I've fetched the edit token using below code: $editToken = urlencode($wgUser->editToken($salt=,$request = $wgRequest));

Below is the post data I'm passing to upload an image using Mediawiki Api, $imgUploadData = "filename=Wiki.png&token=%2B%5C&url=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2Fb%2Fbc%2FWiki.png";

Below is the curl call to execute the api,

$submitUrl = "http://example.com/api.php?action=upload&format=json";
$curlObj = curl_init();
curl_setopt($curlObj, CURLOPT_URL, $submitUrl);
curl_setopt($curlObj, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curlObj, CURLOPT_POST, 1);
curl_setopt($curlObj, CURLOPT_POSTFIELDS, $imgUploadData);
$objData = curl_exec($curlObj);
curl_close($curlObj);

return $objData;

When executing the API call its giving the error as below,

<api>
  <error code="badtoken" info="Invalid token" xml:space="preserve">
</error>
</api>

I'm getting the error as "badtoken" token even after sending the proper edit token. Can you please help me out to sort this issue. I'm struck with this for the past 1

week.

Ciencia Al Poder (talkcontribs)

Where are you sending the cookies in your curl request?

223.227.17.130 (talkcontribs)

Was this issue resolved? I am also stuck with this issue and not able to do any progress. I am calling the API from a Java program

Ciencia Al Poder (talkcontribs)

You should store the cookies retrieved from the login request, and send them on all subsequent requests

2409:4071:E8B:D14:8182:6CEA:631A:7159 (talkcontribs)

Your session must have been expired, try re-logging in

Reply to "Getting invalid token error even after sending the correct edit token while upload image using API"

DOM loading stuck on MediaWiki

3
Rbirmann (talkcontribs)

Hi, I am using MW 1.34.2 and have been having some issues with custom Javascript code.

In one os my scripts I need to run some code after the page is loaded, so I use document.addEventListener("DOMContentLoaded",myFunction, false);. However, the DOMContentLoaded event never gets triggered. Using Chrome Dev Tools to "watch" document.readyState, I noticed it never leaves the 'loading' stage.

This property can be 'loading', 'interactive' or 'complete' and (I recently learned that) once it gets to 'complete' the DOMContentLoaded is triggered. The "loading" wheel on my Chrome tab stops spinning and all content on the page seems to be in place, but document.readyState is still stuck in 'loading'. Something is preventing completion of the loading process, thus causing my scripts to never run.

(Actually, sometimes document.readyState eventually turns to 'complete', but it takes several minutes, so it might be something timming out, instead of failing... not sure).

I have tried changing my skin and disabling all my custom scripts, to no avail.

There are some errors / warnings on my console after loading any page on the wiki. From what I was able to figure out (googling) they do not seem to be the issue, but still, here is the output:


P%C3%A1gina_principal:1 Unchecked runtime.lastError: The message port closed before a response was received.
 P%C3%A1gina_principal:1 Unchecked runtime.lastError: The message port closed before a response was received.
 P%C3%A1gina_principal:1 Unchecked runtime.lastError: The message port closed before a response was received.
 load.php?lang=pt-br&…s&version=1j8oy:144 JQMIGRATE: Migrate is installed with logging active, version 3.0.1
 VM97:105 This page is using the deprecated ResourceLoader module "jquery.tabIndex".
 P%C3%A1gina_principal:1 Mixed Content: The page at 'https://www.mydomain.com/wiki/P%C3%A1gina_principal' was loaded over HTTPS, but requested an insecure favicon 'http://www.mydomain.com/wiki/Favicon.ico'. This request has been blocked; the content must be served over HTTPS.
 P%C3%A1gina_principal:1 The resource https://www.mydomain.com/w/logo_wiki.png?bda1e was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

Any thoughts will be greatly appreciated.

Thanks in advance


Bawolff (talkcontribs)

The Unchecked runtime.lastError: The message port closed before a response was received is kind of weird sounding and one i havent heard of before. I would investigate that one.

I would check network tab to see if any connections are just sitting there waiting.

It sounds like it could be some sort of weird misconfiguration between http/2, content-length headeds and gzip - bit of a long shot but check if $wgDisableOutputCompression affects anything. I would check config related to those things generally. Also try loading a page with curl -v to see if it gives any warnings (sometimes curl is better at giving warnings than web browsers)

Rbirmann (talkcontribs)

Thanks @Bawolff!! The tip of checking the Network tabs was very useful. In my case, my antivirus software (Kapersky) was injecting a script in all pages and that script never loaded, preventing the document loading to complete. I have disabled JS injection from Kapersky altogether (too bad they only have a global settings instead of a whitelist option) and now my scripts fire normally.

It is still odd however that the injected script doesn't seem to be causing any other sites to halt. At least I wasn't able to notice it anywhere else. Not even Wikipedia or other MediaWiki sites.

Reply to "DOM loading stuck on MediaWiki"

Fatal exception of type Wikimedia\Rdbms\DBQueryError

1
LJMWiki (talkcontribs)

When I try to search for any non-existent page on my wiki to create it, I get the Fatal exception of type Wikimedia\Rdbms\DBQueryError Error. Below is the full error message.


I am running:

- Mediawiki 1.37.0

- PHP 7.3.31

- MySQL 8.0.27

- Apache2 2.4.38 (on Debian)


I have already tried the 'php update.php' command in the maintenance folder, but this has not fixed the problem.

I would really appreciate any help on this!


Full error message:

[08e69f8afcb416571eb11ba6] /wiki/index.php?search=common&title=Special%3ASearch&go=Go Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.

Error 1146: Table 'wikisci_database.searchindex' doesn't exist (34.123.24.126)

Function: SearchMySQL::searchInternal

Query: SELECT page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+common ' IN BOOLEAN MODE) ) AND page_namespace = 0 ORDER BY MATCH(si_title) AGAINST('+common ' IN NATURAL LANGUAGE MODE) DESC LIMIT 21

Backtrace:

from /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1809)

#0 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)

#1 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#2 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#3 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(2012): Wikimedia\Rdbms\Database->query(string, string, integer)

#4 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(324): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#6 /var/lib/mediawiki/includes/search/SearchMySQL.php(196): Wikimedia\Rdbms\DBConnRef->select(array, array, array, string, array, array)

#7 /var/lib/mediawiki/includes/search/SearchMySQL.php(182): SearchMySQL->searchInternal(string, boolean)

#8 /var/lib/mediawiki/includes/search/SearchDatabase.php(74): SearchMySQL->doSearchTitleInDB(string)

#9 /var/lib/mediawiki/includes/search/SearchEngine.php(156): SearchDatabase->doSearchTitle(string)

#10 /var/lib/mediawiki/includes/search/SearchEngine.php(187): SearchEngine->{closure}()

#11 /var/lib/mediawiki/includes/search/SearchEngine.php(157): SearchEngine->maybePaginate(Closure)

#12 /var/lib/mediawiki/includes/specials/SpecialSearch.php(447): SearchEngine->searchTitle(string)

#13 /var/lib/mediawiki/includes/specials/SpecialSearch.php(228): SpecialSearch->showResults(string)

#14 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(647): SpecialSearch->execute(NULL)

#15 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(NULL)

#16 /var/lib/mediawiki/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)

#17 /var/lib/mediawiki/includes/MediaWiki.php(925): MediaWiki->performRequest()

#18 /var/lib/mediawiki/includes/MediaWiki.php(559): MediaWiki->main()

#19 /var/lib/mediawiki/index.php(53): MediaWiki->run()

#20 /var/lib/mediawiki/index.php(46): wfIndexMain()

#21 {main}

Reply to "Fatal exception of type Wikimedia\Rdbms\DBQueryError"

Not sure how to make my site mobile friendly

3
RedKnight7 (talkcontribs)

I'm a Windows PC kind of guy with a tiny personal wiki (I'm the only editor). I'm making some new game content that will probably attract mostly folks using cellphones for browsing.

When I try to google about making my site mobile-friendly, I find lots of pages about "what to avoid". I don't need this (yet); I simply don't know how to make it mobile at all (yet).

It's hard to find something that just straight-up seems to say "use this to make your site mobile friendly". For example, when I go to Wikipedia, it looks better on my phone and I notice that all the URLs have a "m" in front of them (m.wikipedia.com). But I can't simply put an "m" in front of my little site's URL; it just breaks it.

Based on what I can infer, I am thinking I probably need Extension:MobileFrontend. Is that sort of the standard pick for "making your site mobile"?

If I do that, will it automatically sense mobile vs. PC users, and interact relative to that?

Thanks if you can help!

AhmadF.Cheema (talkcontribs)

Yes, pretty much all you need is Extension:MobileFrontend; it will automatically detect users' device as mobile or PC and send them to the appropriate version. On a side note, the "m" in front like (m.wikipedia.org) is a separate configuration, you shouldn't need it.

Jonathan3 (talkcontribs)

Or use a responsive skin like Foreground.

Reply to "Not sure how to make my site mobile friendly"

Mediawiki SSO: Table ‘simplesamlphp_kvatore’ already existed

4
Frizzow (talkcontribs)

Mediawiki 1.32.2 Php: 7.3.28 apache2handler Mariadb:10.2.33

Simplesamlphp extension: 1.35 (github)

Pluggableauth extension: 1.35(github) Simplesamlphp software:1.19.3

I’n trying to implement SSO in Azure AD for on prem

[acb3c984ef5311d0f7784f6f] /index.php/Special:PluggableAuthLogin PDOException from line 175 of E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists Backtrace:

0 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php(175): PDO->exec(string) 1 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php(78): SimpleSAML\Store\SQL->initKVTable() 2 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store.php(52): SimpleSAML\Store\SQL->__construct() 3 E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\SessionHandler.php(138): SimpleSAML\Store::getInstance() … .”


Anyone familiar with this error? My user id has just received CREATE Command permmission to create the table and once the access has been granted it shows that the table has already existed. Do you think i should drop the table and re-run again? I will need to get approval before do any changes on our database. Is there anything i need to be cautious when setting this up.

Let me know if its a different case.

Thanks

Seb35 (talkcontribs)

The MediaWiki extension SimpleSAMLphp does not maintain itself a database, and according to the paths it it the library SimpleSAMLphp which triggers this error, so you should search in their documentation.

Make working the library is 80% of the work (they have a test to verify it is working independently of MediaWiki), then, when it works, the MediaWiki extension can be connected through the library.

Frizzow (talkcontribs)

MediaWiki 1.32.2 PHP 7.3.28 (apache2handler) MariaDB 10.2.33-MariaDB-log PluggableAuth= 1.35 SimpleSAMLPhp=1.35


Checking your PHP installation Yes Required PHP Version >= 7.1. You run: 7.3.28 Yes Required Date/Time Extension Yes Required Hashing function Yes Required ZLib Yes Required OpenSSL Yes Required XML DOM Yes Required RegEx support Yes Required JSON support Yes Required Standard PHP Library (SPL) Yes Required Multibyte String Extension Yes Optional cURL (required if automatic version checks are used, also by some modules. Yes Optional Session Extension (required if PHP sessions are used) Yes Optional PDO Extension (required if a database backend is used) no Optional LDAP Extension (required if an LDAP backend is used) no Optional predis/predis (required if the redis data store is used) no Optional Memcache or Memcached Extension (required if a Memcached backend is used) Yes Recommended technicalcontact_email option set Yes Required auth.adminpassword option set


What I have tested: 1. The table above shows only 3 things are not available when I'm checking my PHP installation. We are not using LDAP extension and we did not setup for predis or memcache and not sure whether we need to install either two.

2. E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists- this error only displayed when I change the datastore type from 'phpsession' to 'sql' in the config.php file. If I change back to phpsession, it will shows a different error to my wiki page" [57e819a89ff1f7965dc9f1f6] /index.php/Special:PluggableAuthLogin InvalidArgumentException from line 203 of E:\Apache24\htdocs\includes\session\SessionManager.php: Invalid session ID".

My configuration in config.php file are as below: 'store.type' => 'sql',

'store.sql.dsn' => 'mysql:host=xxx;port=xxxxdbname=xxxx', 'store.sql.username' => 'xxx', 'store.sql.password' => 'xxxx',

3. I have tested the authentication for default-sp and it redirects me to IDP. After entering my credentials, I've been redirected back to the test page with list of attributes. But, in simplesatlphpinstallation page, it already shows SAML 2.0 IDP as green and checked.

4. As for PHP Sanity page, everything is green and no error display.

5. In the federation tab, it shows our SAML 2.0 SP metadata and SAML 2.0 IdP Metadata (Trusted). It looks fine and I exchange the Metadata to IDP(Azure) and it has reflected in this page.

6. When I declare the PluggableAuth and SimpleSAMLphp extensions in localsettings.php, it was able to update in special version page. But now, I've commented out the code below since the library itself not working by showing E:\Apache24\htdocs\simplesamlphplib\lib\SimpleSAML\Store\SQL.php: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'SimpleSAMLphp_kvstore' already exists

  1. PluggableAuth
  2. wfLoadExtension( 'PluggableAuth' );
  3. $wgPluggableAuth_EnableAutoLogin = false;
  4. $wgPluggableAuth_EnableLocalLogin = false;
  5. $wgPluggableAuth_EnableLocalProperties = false;
  6. $wgPluggableAuth_ButtonLabelMessage = "Login";
  7. $wgPluggableAuth_Class = 'SimpleSAMLphp';
  8. $wgGroupPermissions['*']['createaccount'] = true;
  9. $wgGroupPermissions['*']['autocreateaccount'] = true;
  1. SimpleSAMLphp
  2. wfLoadExtension( 'SimpleSAMLphp' );
  3. $wgSimpleSAMLphp_InstallDir = "E:\Apache24\htdocs\simplesamlphplib";
  4. $wgSimpleSAMLphp_AuthSourceId = "default-sp";
  5. $wgSimpleSAMLphp_RealNameAttribute = [ 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname','http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname'];
  6. $wgSimpleSAMLphp_EmailAttribute = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mail';
  7. $wgSimpleSAMLphp_UsernameAttribute = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/uid';

I'm not sure what else could be the misconfiguration in the simplesamlphp library that can cause the table to recreate. :(


User:Seb35

Seb35 (talkcontribs)

I’m sorry, I have no idea how to solve it. In my case I used SQLite, perhaps you can try, it’s quick and simple: in config.php: 'store.type' => 'sql','store.sql.dsn' => 'sqlite:/tmp/sessions.sqlite',. In any case, store.type=phpsession is reported as non-working.

EDIT: well, /tmp is on Linux, obviously you have to adapt it on Windows.

Reply to "Mediawiki SSO: Table ‘simplesamlphp_kvatore’ already existed"

Need to Install PDF Renderer Service which would support to embed the images.

34
Apatha11 (talkcontribs)

HI Support Desk,

Following are the installed software product version(s) those are being used in our RHEL7 server environment.

Installed software

Product Version
MediaWiki 1.35.1
PHP 7.4.15 (apache2handler)
MySQL 8
OS LINUX

We are looking for PDF Renderer Service which would support to embed the images in a Wiki page to a downloaded PDF file.

I have installed this Proton, but it did not work properly. As it's not well explained that how to integrate proton.

I followed this, https://m.mediawiki.org/wiki/ServiceTemplateNode/GettingStarted

it did not work successfully.

Error: {"status":500,"type":"internal_error","title":"ReferenceError","detail":"preq is not defined","method":"GET","uri":"/wikipoc.xyz.com/v1/png/Square_funny"}

URL: http://10.73.21.15:8080/wikipoc.xyz.com/v1/png/Square_funny


Kindly suggest how we can use this in our wiki 1.35.1.

Osnard (talkcontribs)
Apatha11 (talkcontribs)

Is this extension convert html to pdf with Image?

Osnard (talkcontribs)

Those extensions will export a wikipage into PDF.

Mpdf: Not sure, but I guess so. UEModulePDF: Yes.

Apatha11 (talkcontribs)

So UEModulePDF extension can download pdf with image?? Also there is no details for Extension:UEModulePDF on page that how to configure it.


Is this compatible with PHP 7.4?

I have tried MPDF and its downgliding pdf but not giving full path of image, can you please suggest where we can enable full path for image?


When I set as html not pdf so i saw the image url is not full (/wiki135/images/5/57/enterprise-wiki.jpg).


Can you please suggest from where its pickup up URL?

Malyacko (talkcontribs)
Osnard (talkcontribs)

Yes, UEModulePDF is compatible with PHP 7.4 and it will embed images in the PDF. Be aware that you will need to set up a Java Webserver as PDF renderer as well. See https://en.wiki.bluespice.com/wiki/Setup:Installation_Guide/Webservices/PDF-Export

You will probably need to set up the following extensions for UEModulePDF

Be aware that only LTS branches REL1_31 and REL1_35 are supported.

BlueSpice is also available as a MediaWiki distribution that bundels lots of extensions for the business usecase.

I am a little suprised that MPDF shouldn't be able to embed images. Are you sure you have set it up properly?

Apatha11 (talkcontribs)

Yes I have set it up properly as given in MPDF documentation. (Extension:Mpdf)


The path is not coming full in HTML. (/wiki135/images/5/57/enterprise-wiki.jpg).

From where I can change it, or it should be pick this automatically. Path should be like  :

https://localhost/wiki135/images/5/57/enterprise-wiki.jpg not /wiki135/images/5/57/enterprise-wiki.jpg

Error: Error parsing image file - image type not recognised, and not supported by GD imagecreate


Steps I have done:

  1. wget https://extdist.wmflabs.org/dist/extensions/Mpdf-REL1_35-94bd27c.tar.gz

2. tar -xzf Mpdf-REL1_35-94bd27c.tar.gz -C /data/www/html/wiki135/extensions

3. cd data/www/html/wiki135

#php maintenance/update.php

4. added("extensions/Mpdf/composer.json") in wiki135/composer.local.json-sample


{

"extra": {

"merge-plugin": {

"include": [

"extensions/Mpdf/composer.json"] } } }


5. in mpdf dir

#composer update --no-dev

6.added in LocalSettings.php

require_once( "$IP/extensions/Mpdf/vendor/autoload.php");

wfLoadExtension( 'Mpdf' );

$wgMpdfSimpleOutput=true;

7.Given 777 to all 3 dir (/data/www/html/wiki135/extensions/Mpdf/vendor/mpdf/mpdf)

/ttfontdata/

/tmp/

/graph_cache/


http://localhost/wiki135/index.php/Main_Page?title=Main_Page&action=mpdf

Osnard (talkcontribs)

Have you set `$wgServer` or `$wgCanonicalServer` in you wikis configuration?

Have you set `$wgMpdfSimpleOutput = false`?

Apatha11 (talkcontribs)

When I set $wgMpdfSimpleOutput = true , its giving me PDF without image, but when I set it false its giving error:

/data/www/html/wiki135/extensions/Mpdf/vendor/mpdf/mpdf/classes/otl.php: Can't open file /data/www/html/wiki135/extensions/Mpdf/vendor/mpdf/mpdf/ttfontdata/dejavusanscondensed.GSUBGPOStables.dat


I cant see this file dejavusanscondensed.GSUBGPOStables.dat in /ttfontdata

I have already given 777 to Dir /Mpdf/vendor/mpdf/mpdf/ttfontdata/


$wgServer , Yes we have set our server name in Localsettings.php

Apatha11 (talkcontribs)

Please help me to fix this.

Osnard (talkcontribs)
Apatha11 (talkcontribs)

Hi As I can see there are many posts are pending, no one replied even. Could you please suggest to me something else, I need to fix this ASAP.

Kindly check my steps what I have done, if you think that something I missed please let me know.

Osnard (talkcontribs)

You may want to evaluate BlueSpice. It is available as Docker image. So you don't need to set up the PDF-Export manually.

Apatha11 (talkcontribs)

How to use BlueSpice, As there is no proper documentation that how to implement this in our application.

Osnard (talkcontribs)
Apatha11 (talkcontribs)

Is BlueSpice work as an extension like Mpdf or its separate CMS like a wiki. The new implementation will take time and I need to fix it by this week only. Kindly suggest working extension with PHP 7.4, if possible provide proper documentation for PDF export with BlueSpice.

One more thing, We are using LDAP+SSO login in our application Can you confirm that is MPDF compatible with these Protocol services.

Apatha11 (talkcontribs)

Hello Team,

Can you please confirm the above information?

Osnard (talkcontribs)

AFAIK MPdf is not affected in any way by the choice of the authentication method.

BlueSpice is a "distriution" of MediaWiki. You can think of it as an extension bundle, tailored to business needs. It has extensions for PDF export and LDAP/SSO.

157.39.144.18 (talkcontribs)

Hello,

I am facing issue when trying to export PDF.


Internal error

Jump to navigationJump to search

[YNA2dtUOfwBtUQ0sXxfrYQAAAAo] 2021-06-21 06:49:26: Fatal exception of type "MpdfException"

Apatha11 (talkcontribs)

But it's affecting our project, with LDAP+SSO it's not working and it's throwing us an unauthorized error in the image function. ( function _imageTypeFromString(&$data) )

$data is printing unauthorized error.

We have set 777 permission to the image folder.

We are already configured MPDF, if possible please provide any resource who can resolve this issue, In the above post, I have mentioned all steps that I have done in MPDF.


The same code is working fine where we are not using LDAP+SSO. Are you sure that MPDF works with the server which is secured with a password?

Osnard (talkcontribs)

No I am not sure. Apparently Mpdf actually tries to load the files via HTTP and therefore fails on the webserver authentication. One way to fix this could be to add a "bypass" of that authentication for any HTTP call coming from "localhost". If you are using Apache Webserver with "mod_auth_kerb" you can do this by "Require ip 127.0.0.1". Be aware that the requests by Mpdf will probably be "anonymous" (no user context). Therefore you may need to also adjust wiki permissions in such cases (e.g. setting "read" permission for "*" group). Such bypasses are always a little hacky.

Btw. you should not use "777" on your "images/" directory.

Apatha11 (talkcontribs)
Malyacko (talkcontribs)
Apatha11 (talkcontribs)

Is ElectronPDFService is compatible with wiki 1.35 for image in pdf and works with the server which is secured with a password like LDAP?


Well I have tried this and got error. Error:

The requested URL /api/rest_v1/page/pdf/Main_Page was not found on this server.

Apatha11 (talkcontribs)
Apatha11 (talkcontribs)

Can you please look in to this?

Apatha11 (talkcontribs)

Anyone will reply or need to post same query again?

Malyacko (talkcontribs)

If anyone knows an answer, they might reply. If nobody knows an answer, they will not reply. Do NOT post the same query again. Thanks.

Apatha11 (talkcontribs)

Hello team,

It's very disappointing that the wiki service team could not help me to resolve my one issue.

Also not mentioned proper documentation for any service. I have followed properly all documents but didn't work.

Electron PDF has very bad documentation, not clearly written how to implement, and whatever is written not working.

161.185.161.80 (talkcontribs)

I experienced the same pain & frustration as Apath11 in terms of the broken images on the MediaWiki PDF Export feature. MediaWiki should provide the end users a solution ASAP. Otherwise the upgrade does not look good!!!

Apatha11 (talkcontribs)

I can help you in PDF... I have fixed this issue by my self only.

Osnard (talkcontribs)
Malyacko (talkcontribs)
Reply to "Need to Install PDF Renderer Service which would support to embed the images."

Specific Questions, or sharing data type blogs

3
Pmcoms (talkcontribs)

How does one ask a specific question concerning a movie that is not answered in Wikipedia, Maybe someone else out there would know the answer!

For example: In the 1937 movie called "Dead End" Humphrey Bogart rarely moves his right arm. What is that all about? There is no source to enlist this question. Those outside of the Wikipedia Staff.

It would be nice, on the same page as the "Dead End" write up is given, I could ask all those who viewed this movie and know why.

Malyacko (talkcontribs)

This is a question for that Wikipedia, and does not seem to be a question about the MediaWiki software. If this is about English Wikipedia, then see w:en:Wikipedia:Questions.

AhmadF.Cheema (talkcontribs)

Generally speaking, Wikipedia staff doesn't work on articles, the articles' content is written by volunteers. Regarding asking questions about specific articles, the appropriate place on Wikipedia are the corresponding Talk pages, see Talk:Dead End (1937 film). If no one answers there, you'll have to try your luck at other question/answer forums like Quora etc.

Reply to "Specific Questions, or sharing data type blogs"

How to intigrate a forum system into my mediawiki

5
Guillaume Taillefer (talkcontribs)

Hello, I would like to ask if anyone knows how to integrate a forum system into mediawiki (not just the typical discussion page thing on mediawiki and wikipedia, but would replace the discussion page for each page as well as have a general forum age), such as something like phpBB. Thanks

AhmadF.Cheema (talkcontribs)

See Extension:DPLforum (use-case examples are linked to at the bottom of that page). You can also try Extension:WikiForum, see if it still works.

In case there is going to be extensive use of forums on your site, maybe it would be better to use a separate dedicated forum application for this purpose, instead of relying on MediaWiki's less ideal solutions.

Guillaume Taillefer (talkcontribs)

I was planning on just relying on a separate application (probably phpBB), do you think it would be best if when you click on a discussion page link it will just like to the page of that discussion page in the application? For example if you were on article number 3450 and you click on discussion page then it would bring you to the forum page for article number 3450. Thanks

AhmadF.Cheema (talkcontribs)

I don't have much experience in this, but my guess would be that if the discussions are expected to be short, then StructuredDiscussions (this is the method used on this page) seems more comfortable for users, but if the discussions are going to be very detailed with lengthy walls of text, then the present default talk pages might be better.

I personally feel that with paginated (divided into multiple pages) forums like phpBB, casual users might not bother going through the trouble of clicking through each page. On the other hand, MediaWiki discussion pages have everything on one page, it isn't very aesthetic (can be helped through better skins), but casual users participation seems more likely.

Guillaume Taillefer (talkcontribs)

thank you for the response, I don't think that the length and depth of the amount of pages will be an issue because this is a history/scholarly oriented website that I am creating

Reply to "How to intigrate a forum system into my mediawiki"

content in diferent languages

2
181.62.255.97 (talkcontribs)

hi

I want to make my wiki available in two languages, not by a translator, but writing the 2 pages myself, and then having the option for the user to simply switch an article between the 2 languages.

What is the best way to achieve this?

Bawolff (talkcontribs)
Reply to "content in diferent languages"