User talk:Dinobyte

Template import and Script errors in Scribunto
I have been trying for days to get a few basic templates to function in my wiki installation (localhost and xampp in a Windows 7 Home Premium 64bits machine; MediaWiki 1.21.1, PHP 5.5.1 (apache2handler), MySQL 5.6.11), but keep getting error messages. The templates I need are only the citation templates, the only template I actually need at the moment is the Cite book template, so I'll be happy if only this template functions. My Mediawiki installation functions perfectly with no other errors.

A short summary of what I have done and the error messages I got on the way:

After installing Scribunto, I exported the templates listed below using Special:Export from Wikipedia. When trying to import them to my wiki, I got error messages about not being able to import.I found the solution for that after browsing the web in this site, which was to replace some text (‘text/plain’) in the xml file with ‘CONTENT_FORMAT_TEXT’, since Scribunto obviously didn't like ‘text/plain’.

Referring to the information given here, I don't know whether Special:Export at Wikipedia exported outdated templates, but they are the only files I've got and I checked off the "include only current revision". Please advice whether it is a known issue and where I can get the correct xml files, if they are old. Then I can just get the correct xml files and start all over again. Anyway after the importing was done and confirmed without error messages, there were script errors on all the template pages. One looked like this: Lua error in Module:Citation/CS1 at line 186: attempt to index field 'text' (a nil value). Backtrace: 1. (tail call): ? 2. Module:Citation/CS1:186: in function "internallinkid" 3. Module:Citation/CS1:591: in function "build id list" 4. Module:Citation/CS1:1318: in function "build id list" 5. (tail call): ? 6. mw.lua:463: ? 7. (tail call): ? 8. [C]: in function "xpcall" 9. MWServer.lua:73: in function "handleCall" 10. MWServer.lua:266: in function "dispatch" 11. MWServer.lua:33: in function "execute" 12. mw_main.lua:7: in main chunk 13 [C]: ?

After browsing the help pages in this discussion page, I did as adviced in one of threads and added to localsettings.php file.

Then I think something was solved, and all the script error messages now say :-  " Lua error: Internal error: The interpreter exited with status 1."

I also added all the files as specified here, since this thread says that some files were missing from the Scribunto installation, and the editor mentions something about mw.text, in his/her edit summary, so I thought it would be worth a try. But the link given in the thread was broken and after browsing for a while I found them at github. There was no change at all to the script errors, after adding those files, and nothing was messed up either, so I chose to keep them.

I also added the following to the localsettings.php file as adviced here in this mediawiki support desk thread:-

The log file has 114 instances of this message :-  " The system cannot find the path specified ".


 * (Templates I imported:-
 * 1st bunch:-
 * Template:!
 * Template:!/doc
 * Template:Cite web
 * Template:Cite web/doc
 * Template:Cite book
 * Template:Cite book/doc
 * Template:Cite map
 * Template:Cite map/doc
 * Template:Cite journal
 * Template:Cite journal/doc
 * Second bunch:-
 * Template:Citation/identifier
 * Template:Citation/identifier/doc
 * Module:Citation
 * Third bunch:-
 * Template:COinS
 * Template:COinS safe/doc
 * Template:COinS safe
 * In addition to the above templates I exported/imported, Wikipedia's Special:Export has exported some
 * other relevant templates too, when I did the exports, which I have imported into my to my wiki.)
 * In addition to the above templates I exported/imported, Wikipedia's Special:Export has exported some
 * other relevant templates too, when I did the exports, which I have imported into my to my wiki.)

The above is a summary of what I had done and the error messages. I am a total newbie to servers/apache and I would like to have as little as possible to do with changing default settings etc. I do not mind deleting everything and installing mediawiki all over again, if I knew what I should avoid this time. For instance:- – Have I exported out-of-date templates? If so, where can I get them? – Do I have the correct version of Scribunto (The one I installed was from the zip file downloaded 3 days ago, there's no version number given) – Do I need to import some more modules/templates in order to for the citation templates function? Maybe that is where the whole problem lies?

Hope someone could help me solve this problem.--Dinobyte (talk) 16:25, 22 August 2013 (UTC)