Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Sara on July 10th, 2013, 05:10 PM

Title: Cannot edit own posts.
Post by: Sara on July 10th, 2013, 05:10 PM
Just now I tried to edit this post(http://wedge.org/pub/feats/8208/more-sidebar-complications/msg290528/#msg290528) inline but got a "forbidden" error in red.  I decided to go through the more "time consuming" way and edit it with the edit page, but when I pressed post, I got the following errors:
Quote
Warning: Illegal offset type in isset or empty in Sources/Notifications.php on line 38 (this was above the layout on the page, I also truncated the local path for security)

------

An Error Has Occurred!
Database error, given array of integer values is empty. (member)
Title: Re: Cannot edit own posts.
Post by: Nao on July 10th, 2013, 05:29 PM
Well, that's odd... :-/

1/ I didn't remember regular users could see the exact database error message, is this a Wedge special..?

2/ This shouldn't even be occurring...

3/ Really, it shouldn't.

Can you list your notification settings here..? (Add wedge.org to the URL.)
/profile/?area=notifications
Title: Re: Cannot edit own posts.
Post by: emanuele on July 10th, 2013, 05:34 PM
I can't even edit posts in that board... :angel:
Title: Re: Cannot edit own posts.
Post by: Arantor on July 10th, 2013, 05:35 PM
1. There's a setting in the ACP for it. It doesn't differentiate over admins vs non admins.

2. The first error indirectly causes the second, since you can't opt in for a null notifier...
Title: Re: Cannot edit own posts.
Post by: Sara on July 10th, 2013, 05:38 PM
Here's my settings.
Title: Re: Cannot edit own posts.
Post by: Nao on July 10th, 2013, 07:06 PM
I'm at a loss...

I guess I'll have to create another of those test accounts, and test by FTP etc...
Posted: July 10th, 2013, 05:44 PM

Okay, fixed...
Wasn't a Wedge bug; really, it was a mismatched file, i.e. I'd forgotten to update the Mentions plugin with the new notification code, and it was sending the wrong parameters as a result, hmm........
Title: Re: Cannot edit own posts.
Post by: Oracle on July 11th, 2013, 02:42 AM
You guys are truly brilliant. Love watching you perform. :)
Title: Re: Cannot edit own posts.
Post by: Nao on July 11th, 2013, 10:56 AM
I'm only fixing my own mistakes... Least I can do, really... :^^;: