Topic on Project:Support desk

getting this issue script error

20
Sachinpatel393 (talkcontribs)

this error when i open some templates after import,

also Module:Documentation module installed.


Lua error in Module:Documentation at line 138: message: type error in message cfg.main-div-classes (string expected, got nil).

Backtrace:

  1. (tail call): ?
  2. [C]: in function "error"
  3. Module:Documentation:35: in function "message"
  4. Module:Documentation:138: ?
  5. (tail call): ?
  6. mw.lua:511: ?
  7. (tail call): ?
  8. [C]: in function "xpcall"
  9. MWServer.lua:99: in function "handleCall"
  10. MWServer.lua:313: in function "dispatch"
  11. MWServer.lua:52: in function "execute"
  12. mw_main.lua:7: in main chunk
  13. [C]: ?

let me know how can i go ahead.


thanks

MarkAHershberger (talkcontribs)

Where are you seeing the error?

Bawolff (talkcontribs)

it means something is wrong with Module:Documentation/config (missing main-div-classes, although it does have main-div-class)

Sachinpatel393 (talkcontribs)
TiltedCerebellum (talkcontribs)

I think they are asking for a URL, so they can see the problem themselves and look at the software version, php version, mysql version as stated people should post at the top-right of this support page to include. Very tough to help anyone without this information.

MarkAHershberger (talkcontribs)
MarkAHershberger (talkcontribs)

@Sachinpatel393 on this page you need to insert

cfg['main-div-classes'] = 'template-documentation iezoomfix'

or change

cfg['main-div-class'] = 'ts-doc-doc'

to

cfg['main-div-classes'] = 'ts-doc-doc'
Sachinpatel393 (talkcontribs)

@TiltedCerebellum

version used:

Mediawiki : 1.34.2

mysql: Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86_64) using readline 5.1

php: PHP 7.3.22 (cli) (built: Sep 1 2020 09:44:58) ( NTS )

OS: centos 8 hosting with nginx.


hello @MarkAHershberger


tried your above solution with one time change that one time to your given,


and one time rechange back to old then add/insert your given line.


but seems nothing changed yet.


still seems getting errors for most of templates:

here are two examples:


https://blackwiki.org/index.php?title=Template:Cite_book

https://blackwiki.org/index.php?title=Template:Cite_web


let me know if any way to fix this.

Thanks

MarkAHershberger (talkcontribs)

The message is different now. It is complaining about a different missing setting: view-link-display

On Wikipedia's version of Module:Documentation/config, you can see this:

-- cfg['view-link-display']
-- The text to display for "view" links.
cfg['view-link-display'] = 'view'

You should put something similar in your own config page.

Sachinpatel393 (talkcontribs)

can i remove and add again document all module or templates it will fix the error?


also let me know from where i can check the version of modules and tempaltes.

it will easy for me to debug.


thanks

MarkAHershberger (talkcontribs)

I don't know. I was only able to point out how to fix the problems I saw.

Sachinpatel393 (talkcontribs)

ok so for now you have not any solution for above issue true >?

MarkAHershberger (talkcontribs)

can i remove and add again document all module or templates it will fix the error?

I doubt just removing them and re-adding them would fix anything. What was your original source?

also let me know from where i can check the version of modules and tempaltes.

I don't know what you want me to let your know.

ok so for now you have not any solution for above issue true >?

I don't know anything else that would help you here. I asked one question, though, and maybe the answer would help me help you.
Sachinpatel393 (talkcontribs)

First thanks for your support, i think i am not not much away to fix this all errors.


well that old error is not fixed with reinstall that module again,


right now getting this two new errors:

Lua error in package.lua at line 80: module 'Module:HtmlBuilder' not found. Lua error in package.lua at line 80: module 'Module:HtmlBuilder' not found.

https://www.dropbox.com/s/i0spjy39xef6g3u/Screenshot%202020-09-20%20at%207.29.29%20PM.png?dl=0


and

Lua error in package.lua at line 80: module 'Module:Hatnote' not found.

https://www.dropbox.com/s/l0gg33zfuvhsiwg/Screenshot%202020-09-20%20at%207.30.28%20PM.png?dl=0

let me know if you know how to fix this.


thanks.

MarkAHershberger (talkcontribs)

Whenever you see "module 'Module:NAME' not found", that is a module page that is missing from your import.

Here is the Module:Hatnote page, for example.

Sachinpatel393 (talkcontribs)
MarkAHershberger (talkcontribs)
Sachinpatel393 (talkcontribs)

ok great, seems that issue fixed thanks you so much.


now after export from wiki and import to my site why some module automatically changed their content model type.

becuase checked with other modules some are fine some having same issue.

any idea.


thanks

MarkAHershberger (talkcontribs)

Where did you get the xml dump that you imported from? Do you still have it?

There are reports about problems like this (example), but they have all been resolved.

Sachinpatel393 (talkcontribs)

ok thanks for the reply and help.

Reply to "getting this issue script error"