Page MenuHomePhabricator

Lua error in Module:Citation/CS1/Configuration at line 2058: attempt to index field '?' (a nil value).
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue :

Import English articles that contains citations such as {{cite book}} {{cite journal}} {{cite web}} etc.. Or create an article and write a citation for example :

{{cite book |title = Sample Book}}

What happens?:
A lua error is generated :

Lua error in Module:Citation/CS1/Configuration at line 2058: attempt to index field '?' (a nil value).

What should have happened instead?:
Instead it should display the citation as follow :

Sample Book.

Software version:
Tested on mediawiki v1.41 and v1.42.0-wmf.23 same issue on both versions

Other information:
we've been using mediawiki for like 6 months there was no issue, it happened lately in the past month.
Browser: Google Chrome
Additional error details:

Screenshot from 2024-04-17 09-16-14.png (479×336 px, 50 KB)

I will appreciate any guidance to help identify the problem and solve it.

Event Timeline

Bugreporter subscribed.

This is not a software issue.

@Bugreporter: That reply is not particularly helpful. :)

I will appreciate any guidance to help identify the problem and solve it.

Hi @Zied_dhf. This does not sound like something is wrong in the code base (a so-called "software bug"), but instead like a support request (how to change settings, questions how to do something, etc.). As Wikimedia Phabricator is for bug reports, enhancement requests, and planning work, please check https://www.mediawiki.org/wiki/Communication and bring this up on the support desk - Thanks for your understanding!

Thank you for clarification, it's totally my bad.

Is it on your wiki or Wikimedia?
If your, you need to install Extension:JsonConfig and import also data from Commons or modify module to not use them or disable some of its features.

Is it on your wiki or Wikimedia?
If your, you need to install Extension:JsonConfig and import also data from Commons or modify module to not use them or disable some of its features.

Thank you very much, we were using JsonConfig extension but not configured to support wikimedia templates, after configuring it the issue is solved.