Jump to content

Topic on Project:Support desk/Flow

Lua error: bad argument #1 to "get" (not a valid title). Issues with JsonConfig

2
Isendgard (talkcontribs)

I'm experiencing an issue on my MediaWiki installation after importing the Left- and right-hand traffic templates and their required dependencies. The following error appears:

Lua error: bad argument #1 to "get" (not a valid title).

Backtrace:

  1. (tail call): ?
  2. [C]: in function "error"
  3. MWServer.lua:81: ?
  4. (tail call): ?
  5. (tail call): ?
  6. Module:Citation/CS1/Configuration:2058: in function "init"
  7. package.lua:103: ?
  8. (tail call): ?
  9. mw.lua:496: in function "executeModule"
  10. mw.lua:768: in function "loadData"
  11. Module:Citation/CS1:4394: in function "chunk"
  12. mw.lua:527: ?
  13. (tail call): ?
  14. [C]: in function "xpcall"
  15. MWServer.lua:99: in function "handleCall"
  16. MWServer.lua:313: in function "dispatch"
  17. MWServer.lua:52: in function "execute"
  18. mw_main.lua:7: in main chunk
  19. [C]: ?
  20. After some research, I was advised to set up JsonConfig, which I did. However, this led to a new problem where I got a white screen. When I enabled error reporting, I received the following message: I get the white screen. I enabled error reporting which tells me
  21. "Fatal error: Cannot declare class CodeContentHandler, because the name is already in use in /var/www/html/w/includes/content/CodeContentHandler.php on line 0
  22. Through disabling extensions one by one, I discovered that the conflict is between JsonConfig and Scribunto. This issue is causing some pages to throw that fatal error, leaving me unable to access them. But not all pages do it so it leaves me more confused. I'm stuck and unsure how to resolve this conflict or proceed further. Any advice or guidance would be greatly appreciated.
Bawolff (talkcontribs)

Are you sure you installed the correct version of JsonConfig for your version of mediawiki?