1
irmtfan
news1.2 bug in anon submit
  • 2004/6/30 3:52

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


when an anon. user submit a news ( click on submit ) get a fatal error:
Quote:
Fatal error: Call to a member function on a non-object in /home/.../public_html/modules/news/submit.php on line 209

i have this problem with anon user only
am i mistake something in upgrade or permissions?
thanks in advance

2
Mithrandir
Re: news1.2 bug in anon submit

No, I think you've found something.
In submit.php around line 209:

if ( empty( $storyid ) ) {
$story = new NewsStory();
$story -> setUid( $xoopsUser->uid() );
}

change it to:

if ( empty( $storyid ) ) {
$story = new NewsStory();
$story -> setUid( $uid );
}

3
irmtfan
Re: news1.2 bug in anon submit
  • 2004/7/1 11:57

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


thank u mithrandir
i change it and works fine.
is this correction add to news1.2 RC now?

and i found another bug in moderation block.
when i click on delete action nothing happen and i didnt see any error or warning for this when i use php debug.

thanks in advance

4
Mithrandir
Re: news1.2 bug in anon submit

I had forgotten to commit it to the CVS, so it'll take a little while before it is available on anonymous CVS.

It'll be in a bugfix version along with some cleanup and other things - possibly a whole new version as we are putting in more functionality, too.

I'll look into the moderation block as well, when I get home from my vacation.

5
irmtfan
Re: news1.2 bug in anon submit
  • 2004/7/1 13:02

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

Mithrandir wrote:
I'll look into the moderation block as well, when I get home from my vacation.


have a good time
i think about a feature : change author in admin section ( like xf-section )?

6
irmtfan
Re: news1.2 bug in anon submit
  • 2004/7/26 4:01

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


what about a moderation block.
and the feature: change author by admin ( big one i think )

good luck

7
hervet
Re: news1.2 bug in anon submit
  • 2004/7/26 4:37

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


hi,

Quote:

irmtfan wrote:
what about a moderation block.

It has been made

Quote:

and the feature: change author by admin ( big one i think )

It has been asked and I will do it

Bye,
Hervé

8
irmtfan
Re: news1.2 bug in anon submit
  • 2004/7/26 4:44

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


good news about news 1.2
thank u hervet

Login

Who's Online

334 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 334


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits