[02:47:59] Help me [02:48:33] Your session data was lost! Check your php.ini and make sure session.save_path is set to an appropriate directory. [02:48:55] session.save_path => C:\session => C:\session [02:49:36]  C:\session [02:49:37] 2023/08/18 10:47 . [02:49:37] 2023/08/18 10:47 .. [02:49:38] 2023/08/18 10:46 2,406 sess_1o7juh8kq957mev331qqqgjm4u [02:49:38] 2023/08/18 10:44 64 sess_939kg0bj1dk81taosfppfp96fl [02:49:39] 2023/08/18 10:44 2,406 sess_ae76svhvnut48ksj0gf04vh1ie [02:49:39] 2023/08/18 10:42 2,406 sess_ch909ub7m5tf4l8scfkgcuc3op [02:49:40] 2023/08/18 10:42 64 sess_di923f824n6hp4b7h84gak9966 [02:49:40] 2023/08/18 10:42 64 sess_f16d5qf9nj688sratjqscha6cm [02:49:41] 2023/08/18 10:42 64 sess_gr579f5dihjij4etknitjlal73 [02:49:41] 2023/08/18 10:42 64 sess_jrr0394k3j659vij95ea3uig47 [02:49:42] 2023/08/18 10:44 2,406 sess_ltqbipahscnustkf0poo19q0re [02:49:42] 2023/08/18 10:47 64 sess_nt4stanqkpnrt4i7iliqpstive [02:49:43] 2023/08/18 10:44 64 sess_pprong9pqgv7jk3cv8ltiiae6l [02:49:43] 2023/08/18 10:42 2,406 sess_qjq5re4n6uub70l3hlto91v29a [02:49:44] 2023/08/18 10:42 2,412 sess_ql7q3j58nk98rd02te24ti0q50 [02:49:44] 2023/08/18 10:42 2,406 sess_rldar6vlcre6bfldkf1c90mdjm [02:50:24] !pastebin [02:50:24] To avoid overflowing the channel with inane amounts of text, use https://dpaste.org or https://phabricator.wikimedia.org/paste/edit/form/14/ or other awesome pastebin sites to share code, errors, and other large texts. [02:50:50] e [02:52:47] https://dpaste.org/hEpGQ [02:55:02] The problem remains unresolved. [02:55:05] https://dpaste.org/hEpGQ [02:55:28] !help [02:55:28] There are a lot of topics you could be asking about. Besides, this bot is mostly for experienced users to quickly answer common questions. Please just ask your question and wait patiently, as the best person to answer your question may be away for a few minutes or longer. If you're looking for help pages, we moved that to !helpfor. [03:16:38] jijibao: that sounds like T124817 which was closed as a duplicate of T126177 and supposedly fixed 7 years ago... [03:16:39] T126177: Session manager breaks installer - https://phabricator.wikimedia.org/T126177 [03:16:39] T124817: Error "Your session data was lost! Check your php.ini and make sure session.save_path is set to an appropriate directory." comes up while installing MediaWiki. - https://phabricator.wikimedia.org/T124817 [03:17:26] https://dpaste.org/LHQkH/raw [03:17:47] jijibao: I also found T342183 which mentions this error can show up if you have cookies disabled in your browser [03:17:47] T342183: "Your session data was lost!" message in installer should cover disabled cookies as potential reason - https://phabricator.wikimedia.org/T342183 [03:17:53] a bug? [03:19:40] jijibao: in your second paste I think I see a configuration problem with the `session.cookie_path` setting. That should probably be '/' and not a file system path. See https://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path [03:20:28] That could make the things act the same as T342183 reports because the session cookie sent to your browser would not come back to the site for the next page load [03:21:46] I am using mediawiki 1.40 [03:24:19] ; The path for which the cookie is valid. [03:24:20] ; http://php.net/session.cookie-path [03:24:20] session.cookie_path = "C:/session" [03:24:27] ? [03:24:35] jijibao: yes, try changing the `session.cookie_path` setting in your php.ini to the default value of "/" [03:25:02] C:/sessions is the directory where I store my sessions, no problem! [03:25:06] C:/session is the directory where I store my sessions, no problem! [03:25:16] that setting is about the set-cookie header that is sent to your browser. [03:25:29] it is not about the local filesystem on the server you are running [03:26:12] But there's no problem here, my settings are C:/session and the display is also C:/session, I don't know how to change it, also, I'm not using linux [03:26:37] Leave `session.save_path` set to "C:\session" and change `session.cookie_path` to "/" [03:27:15] Why? [03:27:30] I am using windows! [03:27:34] windows have not "/" [03:27:36] `session.save_path` is about your local filesystem on the windows machine. `session.cookie_path` is about the URL path to send the cookie back to the server for. [03:27:43] emm [03:27:53] ok [03:28:21] Reports the error too [03:29:50] ; [03:29:50] session.save_path = "C:\www" [03:30:38] Still having the same problem [03:30:50] I'm going to replace it with a 1.39 [03:31:02] after changing session.cookie_path I would expect that you need 2 page loads to make things work. The first would not pass the session cookie back to the server, but the second should. [03:32:05] I've tried almost 10 times, but every time I get an error. [03:34:15] The session directory has a bunch of sessions stored in it, but it still gives an error, is it a problem with your program? [03:34:27] If you are comfortable using your browser's debugging tools you can check to see if the requests that you are sending to the server carry the session cookie that was returned by the prior response. Having seen T342183 that is my strong hunch of what is causing the error message. [03:34:28] T342183: "Your session data was lost!" message in installer should cover disabled cookies as potential reason - https://phabricator.wikimedia.org/T342183 [03:35:27] I have allowed 127.0.0.1 to use cookies [03:37:04] I can comfortable using your browser's debugging tools [03:37:41] Set cookie failed [03:38:35] This Set-Cookie was blocked because it had the "Secure" attribute but was not received over a secure connection [05:07:48] [上午11:36:05] mediawiki1.40 Set cookie failed [05:07:48] [上午11:36:59] This Set-Cookie was blocked because it had the "Secure" attribute but was not received over a secure connection