Error: Invalid page title ‘’ ?
Status: Beta
Brought to you by:
worden
Hi Lee,
could you please take a look? Probably, it is because of a small typo somewhere, but I could figure that out. http://lalashan.mcmaster.ca/theobio/akhmetzhanov/index.php/TumorMeanField14_Suppl/figure_1_Mean-field_dynamics
I have an error message in the middle of my page. Although, if I do a preview only of a subsection "Output", I would not get that error message. So it is somehow connected with the second part of the page.
Thank you in advance
Anonymous
Thanks Andrei! It looks like it's failing on the math in the .wikitext file. This is surely my mistake, not yours.
This has to be related to the work I recently did in [#582]. I'll review what I did there, and why it's failing on this file.
Related
Bugs:
#582but I may be confused with the fact that the same file goes without any error message on another page: http://lalashan.mcmaster.ca/theobio/akhmetzhanov/index.php/TumorMeanField14_Suppl
Interesting! Maybe the bug is related to the fact it's in a source-file tag on one page, and a project-file tag on the other. Still working on the source-file version. Please don't be alarmed if the wiki behaves a little strangely while I'm working.
I noticed that it works without any error messages now. Cool
Just a notion: actually, it was not the project-file tag on the other page rather than <source-file project="YY/" filename="XX">. Recently I have a very small dispute with Jonathan about the right to use <source-file ...=""> tag vs. <project-file ...=""> tag, when I want to show the source-file on the other page</project-file></source-file></source-file>
Interesting! I didn't know anyone was using empty source-file tags. I'm not sure but it might be slightly more efficient, by using the file content directly from its storage in the wiki, where the project-file tag writes it into the working directory and then retrieves it from there. I could find out for sure whether it does that if you want.
It's good that you are not very against.
I also use <source-file ...=""> if I want to display a source-file from Image:...-space</source-file>
Notes to self.
I've taught WWStorage::retrieve_page to be smarter about using already cached page text. That got WW to stop saying page title '' is invalid. Instead I get an inappropriate error message about "Removed missing source file" from the standalone project that manages the inline math.
Next issue is that it seems to be caching the original .wikitext file content correctly, under the special page name "" as in [#582]; but it runs parse_inlines() to replace
$$x y z$$
by<source-file filename=9845982749.tex-math standalone=yes>x y z</source-file>
, and the improved wikitext is cached under the name of the current wiki page when it should be cached under "". Solution: call parse_inlines() myself before passing it to the parser. That doesn't resolve the "removed missing" thing though. Still investigating...Related
Bugs:
#582replace_inlines(), rather. Shifted to calling it slightly earlier, and the wikitext seems to be parsing correctly now.
The code is messy though, and I think it's caching things in the wrong places some of the time - all I've done here is to get it to also cache them in the right places... need to come back and fix this up at some point.