1
zer0fill
Admin > System > Comments > Edit, member function on a non-object (with fix)
  • 2003/12/21 21:04

  • zer0fill

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/12/2


Original thread
With the help of DonXoop we found this:



I get
Fatal errorCall to a member function on a non-object in d:domains<domain>.compublic_htmlxoopsincludecomment_post.php on line 41
when trying to go to admin > system > comments > edit existing > submit. however it doesn't give an error when replying or editing comments from the news area.

it might be because of
// file: d:domains.compublic_htmlxoopsincludecomment_post.php 
$comment =& $comment_handler->get($com_id); // line ~39
i don't see $com_id getting initialized.

i added
// file: d:domains.compublic_htmlxoopsincludecomment_post.php 

$com_id $_POST['com_id']; // line ~37
and it started working fine.

Note: Systems with register_globals ON will not have this problem.

Login

Who's Online

333 user(s) are online (270 user(s) are browsing Support Forums)


Members: 0


Guests: 333


more...

Donat-O-Meter

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

Latest GitHub Commits