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
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 ""
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.