Jump to content

Callback Function problem


farukh_king

Recommended Posts

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
Link to comment
https://forums.phpfreaks.com/topic/18879-callback-function-problem/
Share on other sites

Always check manual first,
http://php.net/session_set_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
[code]session_set_save_handler("sess_mysql_open",
                        "",                              //<- need valid callback here
                        "sess_mysql_read",
                        "sess_mysql_write",
                        "sess_mysql_destroy",
                        "sess_mysql_gc");[/code]Where is 2nd argument? you only put ""

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.