Topic on Extension talk:Cite

RaneMstSage (talkcontribs)

I have copied the templates and the error occurs in the references section Lua error in Module:Citation/CS1 at line 2058: attempt to call method 'getTitle' (a nil value).

Backtrace: (tail call): ? Module:Citation/CS1:2058: in function "chunk" mw.lua:553: ? (tail call): ? [C]: in function "xpcall" MWServer.lua:73: in function "handleCall" MWServer.lua:266: in function "dispatch" MWServer.lua:33: in function "execute" mw_main.lua:7: in main chunk [C]: ?

not sure how to fix this would be appreciate it, if someone could help

Billreid (talkcontribs)

I have this problem too.

Billreid (talkcontribs)

BTW, the script error Module:Authority_control:358: in function "chunk" also displays with identical discription of the full error in first post above.

18.111.57.104 (talkcontribs)

I'm getting this problem too when using the Citation Template. Any potential fixes?

Vapblack (talkcontribs)

I'm getting this error as well. See no help on google.

2A00:1068:0:205:1137:E3A1:E067:393D (talkcontribs)

Hi I had this problem. I 'solved' it by commenting out the section of code.

I edited the wiki page module:Authority_control.

I commented out the section called --Wikidata fallback if requested

   --Wikidata fallback if requested
   --[[    local item = mw.wikibase.getEntity()
    if item ~= nil and item.claims ~= nil then
      for _, params in pairs( conf ) do
          if params[3] ~= 0 then
              local val = parentArgs[params[1]]
              if not val or val ==  then
                       local canUseWikidata = nil
                   if reqs[params[1]] ~= nil then
                       canUseWikidata = matchesWikidataRequirements( item, reqs[params[1]] )
                   else
                       canUseWikidata = true
                   end
                   if canUseWikidata then
                       local wikidataIds = getIdsFromWikidata( item, 'p' .. params[3] )
                       if wikidataIds[1] then
                           parentArgs[params[1]] = wikidataIds[1]
                       end
                   end
               end
           end
       end
   end
   --]]

Which basically just comments it out. It took a few minutes to work (caching?) but eventually got there. I'm not sure what other effects this will have.

2A00:1068:0:205:9017:BBEB:3CDB:355A (talkcontribs)

That didn't come out correctly. Here is the correct version.

  --Wikidata fallback if requested
 --    local item = mw.wikibase.getEntity()
 --    if item ~= nil and item.claims ~= nil then
 --       for _, params in pairs( conf ) do
 --           if params[3] ~= 0 then
 --               local val = parentArgs[params[1]]
 --                      local canUseWikidata = nil
 --               if not val or val ==  then
 --                    if reqs[params[1]] ~= nil then
 --                        canUseWikidata = matchesWikidataRequirements( item, reqs[params[1]] )
 --                    else
 --                        canUseWikidata = true
 --                    end
 --                    if canUseWikidata then
 --                        local wikidataIds = getIdsFromWikidata( item, 'p' .. params[3] )
 --                        if wikidataIds[1] then
 --                           parentArgs[params[1]] = wikidataIds[1]
 --                       end
 --                    end
 --                end
 --            end
 --        end
 --    end
Reply to "LUA Error With Cite"