-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git creates Slug::getDefaultValue error #84
Comments
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, ...) |
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. 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:
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. |
No database, easy but with data error :) |
You put your git repository somewhere and you create symlinks to your installation.
|
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...
I'd really appreciate any last tips or fixes to this one, then my website should actually be working again! |
I’m off for the weekend. Next week in a pause, I will try to write our git installation. |
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.
The text was updated successfully, but these errors were encountered: