Hello,
I use the nightly snapshot from 15 Sep 08 and I found the following problem:
Every entry I save (a new one ore a edited old one) gets in the database ( serendipity_entries) the value "1" for author and "0" for authorid.
Its even not possible to set the author with the extended properties plugin.
Background Information: I am logged in as administrator. I have 2 entrys in serendipity_authors. authorid "1" (thats me whith author="konus") and authorid "2" (thats an empty user without any rights.
Edit: After installation of extended properties plugin, my last entry had now the value "1" for author (instead of "konus") and "1" for authorid.
Second Edit: I made some havy edits on my post, I hope it is now much more understandable
Bug in Dev.Version with author and authorid
Bug in Dev.Version with author and authorid
Last edited by konus on Tue Sep 23, 2008 5:09 pm, edited 1 time in total.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Bug in Dev.Version with author and authorid
Hi!
I think this is because of a recent commit judebert made the the saving routine for showing previews. I have not yet had the chance to review that commit, I'll try to point him to this thread.
Many thanks for reporting.
Regards,
Garvin
I think this is because of a recent commit judebert made the the saving routine for showing previews. I have not yet had the chance to review that commit, I'll try to point him to this thread.
Many thanks for reporting.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
It is with the core. I only installed the extended entry properties plugin afterwards to test whether it could help. Maybe it is the reason why my autorid was now correct set to "1".judebert wrote:I've reverted that portion, with a comment.
I wonder why Don didn't have trouble with it. Maybe he did, but just didn't notice?
For clarification: is the problem with the extended entry properties plugin, or with the core?
And I am not sure if the problem could make problems in real life. It seems, that for displaying the author name the authorid is resolved in s9y. I don't know, for what reason the author login-name ist saved addidionally to autorid in every entry. Is this redundant information?
I only found out, because I use an external script, which will connect to the database and extract all the geotag entries (for building the map) and this does not work anymore (because of this little problem).
Greetings Konus
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Yes, "author" is redundant information from older s9y versions. But there were too many dependencies on that column, so it was not removed to let older plugins and parts of the core work properly on the 'author' column...
HTH,
Garvin
Yes, "author" is redundant information from older s9y versions. But there were too many dependencies on that column, so it was not removed to let older plugins and parts of the core work properly on the 'author' column...
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Crap, I didn't think about the 1.3 branch. Thanks, Don.
Yes, this was part of the change I made for previewing entries. Your advanced template only needed one entry attribute; I attempted to populate them all, figuring future templates might need them. Obviously, the entry's author need not be the author currently examining the entry; when I set that to $serendipity['user'], it was saved along with the entry.
I took out the author and number of comments attributes that weren't needed, but left your change intact. I'm going back to update the 1.3 branch now.
Yes, this was part of the change I made for previewing entries. Your advanced template only needed one entry attribute; I attempted to populate them all, figuring future templates might need them. Obviously, the entry's author need not be the author currently examining the entry; when I set that to $serendipity['user'], it was saved along with the entry.
I took out the author and number of comments attributes that weren't needed, but left your change intact. I'm going back to update the 1.3 branch now.
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact: