This topic is locked

I really screwed something up now - Fatal Error!

12/14/2007 1:03:09 AM
PHPRunner General questions
D
dorlisa author

Help!!! I have two problems...one is more critical than the other.
First: I gotta bad error, and I can't figure it out. I looked in these files to see if I could guess the problem, and of course...I couldn't.
Can someone tell me how to fix this?
[codebox]Warning: set_error_handler() expects argument 1, 'error_handler', to be a valid callback in /home/ezlinkwe/public_html/test5/include/dbcommon.php on line 113
Fatal error: Call to undefined function: postvalue() in /home/ezlinkwe/public_html/test5/login.php on line 38[/codebox]
Second: For some strange reason the the 1st part of my Last Actions section stopped working
Anybody out there see what I did wrong...This was working...it added two actions to the _last_actions table and displayed the result on the correct page...and now it will not add the actions to the _last_actions table.
1st part:

[codebox]global $conn;

//** select member id from members table ***

$strSelect = "select member_id from _members where username='".$_SESSION["UserID"]."'";

$rsSelect = db_query($strSelect,$conn);

$dataSelect = db_fetch_array($rsSelect);
$Action= "<a href=\"/test5/_members_view.php?editid1=".$dataSelect["member_id"]."\">".$_SESSION["UserID"]."</a>";

$Action.= " added the comment ";

$Action.= "<a href=\"_image_comments_list.php\">".$values["commentname"]."</a>";

$str = "insert into _last_actions (username,action,dateofaction) values ('".$_SESSION["UserID"]."','".$Action."','".now()."')";

echo $str;

$db_exec($str,$conn);[/codebox]
2nd Part:

[codebox]global $conn;

$str = "select * from _last_actions order by dateofaction desc limit 10";

$rs = db_query($str,$conn);

while ($data = db_fetch_array($rs))

echo $data["dateofaction"].": ".$data["action"]."
";[/codebox]

Alexey admin 12/14/2007

Hi,
publish yout project on Demo account server (last tab un PHPRunner) and send a URL where I can see and troubleshoot this error to support@xlinesoft.com

D
dorlisa author 12/14/2007

Hi Alexey,
I got an error trying to publish it to the Demo Account, so I just sent you FTP info via email.
Thanks,
phpnewbie

D
dorlisa author 12/15/2007

Thanks Alexey...
Fatal error is gone...Yeah!
Is there anyone that can help me figure out where I went wrong in my Second question of my original request above?
Any guidance would be greatly appreciated.
Thanks,
phpnewbie

K
kenlyle 2/13/2008

I am getting both of these errors in my Calendar project. I'd like to know how they were fixed.
Thanks,

Ken

J
Jane 2/13/2008

Ken,
it's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.