Open vaniwiki opened 2 months ago
Hi Eivind,
Sorry for that.
When using the UI, the empty string means that we delete the slug and that the value is then null. If it's stored as an empty string, you would get this error. The previous commit should take care of that.
If you update, the problem should disappear.
All good?
I believe I have updated now, but the problem persists. I am adding files via git...
You may have then another value that is considered empty by PHP (0, ...) Can you attach the metadata file of this page?
Persistent metadata for the page:
{"aliases":[{"path":":books"}],"contributor":{"admin":null},"creator":"","date":{"created":1691852828,"modified":1711548528},"description":{"abstract":"A.C. Bhaktivedanta Swami Prabhupada's original books.","origin":"frontmatter"},"format":{"text":{"Content-Type":"text\/plain; charset=utf-8"}},"h1":null,"h1_parsed":"Books","label":null,"last_change":{"date":1711548528,"ip":"115.187.39.120","type":"E","id":"books:start","user":"admin","sum":"Metadata frontmatter store upsert","extra":"","sizechange":254,"mode":"page"},"lead":null,"low_quality_indicator_calculated":true,"name":"Books","page_id":"s64h39ggxeh0z22d2uws6","slug":":books:start","template":null,"title":"Books by His Divine Grace","toc":[{"link":"#books","title":"Books","type":"ul","level":1}],"user":""}
I can't reproduce it with your data.
With the previous commit, I just made it clear where the error comes from. If you update it the error should show the page that triggered this error.
A slug cannot be null at all because it uses the title and the title does not allow null also. The error should have been triggered way before if it was the case.
If I need to go further, I need a test case otherwise it will cost may too much time that I don't have.
May be recreating the page is also a solution. I dunno ... all the best.
Ooops... I feel embarassed. Here is the output:
Error: An error has occurred while getting the output. Error: The default title of the page (wiki://markup>books:.git:) should not be empty.
I have directories inside the data folder that come from GitHub. But now I'm rethinking that strategy. I suppose there may be some unintended side effects... You mentioned symlinks to overcome this issue previously, but I didn't understand what you meant. If you know how to use git folders properly as a data source, I'd be very eager to know.
Sorry for the trouble, by the way.
All goods. Just don't put the DokuWiki folder at the root of the git repo. We do it like that
No database, easy but with data error :)
You put your git repository somewhere and you create symlinks to your installation.
mklink /D /path/to/dokuwiki /path/to/git
Thanks for the pointers! I have restructured my git repositories to include a root folder, making it painless to symlink.
I have moved my git repositories into a /repositories folder in my home directory, and symlinked properly. But combostrap throws errors and doesn't show any files in the sidebar navigation. Edit: The proper page still shows in the browser, so everything works except navigation...
Sorry. An internal error has occurred: Unable to get back the wiki path from the local path. Error: The local path (file:///home/vaniw/repositories/prabhupada-books/books/bg/foreword.txt) is not inside a wiki path drive.
I'd really appreciate any last tips or fixes to this one, then my website should actually be working again!
Attaching this screenshot to possibly give some clues without too much effort...
I’m off for the weekend. Next week in a pause, I will try to write our git installation. It works for us, it should work for you.
Just providing additional information in search of a solution:
I tried moving the git repo into the dokuwiki root folder, as well as the farm animal's root folder, but to no avail. (I think you may be on a Windows machine, since you gave the Windows way of making symlinks. I'm on a linux server, if that makes a difference.)
Anyhows. I feel we're close to a solution where (almost) everything works again! Hooray :)
Current working solution: Just copy the directories from repo into data folder. Not ideal, but at least the site works. :)
Well done ! Thanks for the feedback.
I’m on Linux. I will write the piece next week.
I would like to point to this issue, which persists for me. Not sure what I did wrong to achieve this, but it happens on several of my pages, and seems non-reversible.