Jump to content


Photo

Callback Function problem


  • Please log in to reply
1 reply to this topic

#1 farukh_king

farukh_king
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 28 August 2006 - 08:27 AM

Hi,
  I am getting following error.

Warning: session_set_save_handler() [function.session-set-save-handler]: Argument 2 is not a valid callback in /home/ephlox/public_html/accounts/include/misc/auth.inc.php on line 30


Here is my PHP Code.
http://pastebin.com/777362


Can you help me how i can fix this problem ? Please kindly write correct code here. Or upload correct code anywhere and give me the URL. Your help will be very appreciated thanks.

Best Regards from,
Farrukh Hussain

#2 Satria Ox41464b

Satria Ox41464b
  • Members
  • PipPip
  • Member
  • 18 posts

Posted 28 August 2006 - 09:28 AM

Always check manual first,
http://php.net/sessi...et_save_handler

and read the Error message.
"Argument 2 needs valid callback"


and from your pastebin, seems like you didnt have anything for 2nd Argument
session_set_save_handler("sess_mysql_open",
                         "",                              //<- need valid callback here
                         "sess_mysql_read",
                         "sess_mysql_write",
                         "sess_mysql_destroy",
                         "sess_mysql_gc");
Where is 2nd argument? you only put ""




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users