{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/3572","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/3572/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/3572/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/3572/events","html_url":"https://github.com/magento/magento2/issues/3572","id":137173806,"number":3572,"title":"Problem reading session file","user":{"login":"sengaigibon","id":16040734,"avatar_url":"https://avatars.githubusercontent.com/u/16040734?v=3","gravatar_id":"","url":"https://api.github.com/users/sengaigibon","html_url":"https://github.com/sengaigibon","followers_url":"https://api.github.com/users/sengaigibon/followers","following_url":"https://api.github.com/users/sengaigibon/following{/other_user}","gists_url":"https://api.github.com/users/sengaigibon/gists{/gist_id}","starred_url":"https://api.github.com/users/sengaigibon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sengaigibon/subscriptions","organizations_url":"https://api.github.com/users/sengaigibon/orgs","repos_url":"https://api.github.com/users/sengaigibon/repos","events_url":"https://api.github.com/users/sengaigibon/events{/privacy}","received_events_url":"https://api.github.com/users/sengaigibon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/CS","name":"CS","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"slavvka","id":9741905,"avatar_url":"https://avatars.githubusercontent.com/u/9741905?v=3","gravatar_id":"","url":"https://api.github.com/users/slavvka","html_url":"https://github.com/slavvka","followers_url":"https://api.github.com/users/slavvka/followers","following_url":"https://api.github.com/users/slavvka/following{/other_user}","gists_url":"https://api.github.com/users/slavvka/gists{/gist_id}","starred_url":"https://api.github.com/users/slavvka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavvka/subscriptions","organizations_url":"https://api.github.com/users/slavvka/orgs","repos_url":"https://api.github.com/users/slavvka/repos","events_url":"https://api.github.com/users/slavvka/events{/privacy}","received_events_url":"https://api.github.com/users/slavvka/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2016-02-29T07:31:50Z","updated_at":"2016-03-29T12:02:52Z","closed_at":null,"body":"I'm getting a weird behavior using Magento 2.0.2, it's described here as steps:\r\n1. On 'Sign in' front page, as customer if I type a wrong username/password I get redirected to the same page (normal) but Magento doesn't display any error message (abnormal), I was expecting \"Invalid login or password\" from LoginPost.php . Taking a look to the proper session file in var/session/sess_###, the error is stored there...\r\n2. I login again with the correct password and get redirected to my dashboard (normal) but the customer's name doesn't appear in the top menu bar, as a part of the welcome message (abnormal). Also, if the customer had in his car items from a previuos session, the orange square to the right of the cart icon doesn't show any amount.\r\n3. Then, if I add any item to the cart I get the message 'You added xxx to your shopping cart' (normal) but not only this but also I get the previous 'Invalid login' message (abnormal).\r\n4. After this, if I click on the cart icon and 'Go to Checkout' button, I get the login popup (abnormal) instead of going to the onepage checkout (normal).\r\n5. Finally, if at this point I go back to 'My Account', I get the proper customer name in the top bar, with the proper amount of items in the cart and I can go to checkout as if nothing had happened.\r\n\r\nI'm working on customize Magento for specific needs, I added a field to customer_entity table, 'mobile' field which has the same attributes as 'email' field. I disabled email as requiered field in the database. I added three custom fields stored in customer_entity_varchar. I had preferences of many files of Magento/Customer module. Even if I disable all my modules, rollback all my commits, clearing cache, var/generation, var/session and puc/static/frontend/*, I'm still getting this behavior. I have two instances, one running in production mode and one as developer, both has the same behavior.\r\nI'm using Opera, Firefox and Chrome for the tests, clearing the browser history and cache makes no difference.\r\n\r\nAlso, I get this messages in the system.log file:\r\n\r\n[2016-02-29 07:05:45] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_2c7461af04bb11fe209659d7147d2c579: Please correct the XML data and try again.  [] []\r\n[2016-02-29 07:05:45] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_20a98983867a1770682b48d9a0ad63441: Please correct the XML data and try again.  [] []\r\n[2016-02-29 07:05:45] main.CRITICAL: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []\r\n[2016-02-29 07:05:45] main.CRITICAL: Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []\r\n[2016-02-29 07:05:45] main.CRITICAL: Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []\r\n[2016-02-29 07:05:45] main.CRITICAL: Broken reference: the 'paypal.partner.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []\r\n[2016-02-29 07:05:45] main.CRITICAL: Broken reference: the 'bml.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []\r\n[2016-02-29 07:05:45] main.CRITICAL: Broken reference: the 'store.settings.currency' tries to reorder itself towards 'store_language', but their parents are different: 'store.settings' and 'header.panel' respectively. [] []\r\n[2016-02-29 07:05:45] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_26f1b068ec7ccf4878f9284dd1137afd1: Please correct the XML data and try again.  [] []\r\n\r\nSometimes, for an unknown reason the error disappear and the users can login and go to checkout normally. But this error is getting more persistent since 5 days ago. \r\n\r\nAny advice to fix it? Thank you so much!\r\n\r\nEDIT:\r\nI must add something I read from a different issue: I also see the red/orange square next to the cart icon but empty, before and after login, only shows an amount after add something to the cart and adds this new item to those added in previous sessions.\r\n\r\nUPDATE:\r\n- For the error messages, on 'Sign in' frontpage, I realize that the object 'messages' inside \"Magento/Theme/view/frontend/web/js/view/messages.js\" is not getting populated.\r\n- For the step (3) after adding a product, there is a call to \"http://my.magento2.server/index.php/customer/section/load/?sections=compare-products%2Ccustomer%2Cwishlist%2Clast-ordered-items&update_section_id=false\" which renders back the products in the cart and also the messages stored in the session file. I think is because it triggers the event listener \"$(document).on('ajaxComplete', function (event, xhr, settings) \" inside \"Magento/Customer/view/frontend/web/js/customer-data.js\" which update the content of the sections with the result of previous call to \"section/load/?...\" . \r\n- For step (5), customer data comes from a call to \"$(document).on('ajaxComplete', function (event, xhr, settings)\". I saw this function is called on every section, but don't understand why on 'Sign in' page and after login it retrieves empty objects.\r\n\r\nAfter step (5) take place, every access to magento site (e.g. in the browser, if I close the tab and reopen it from index.php or any other section of the store) is rendering correctly the customer name on top bar and items in the cart."},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/202856355","html_url":"https://github.com/magento/magento2/issues/3572#issuecomment-202856355","issue_url":"https://api.github.com/repos/magento/magento2/issues/3572","id":202856355,"user":{"login":"bb8d","id":17174468,"avatar_url":"https://avatars.githubusercontent.com/u/17174468?v=3","gravatar_id":"","url":"https://api.github.com/users/bb8d","html_url":"https://github.com/bb8d","followers_url":"https://api.github.com/users/bb8d/followers","following_url":"https://api.github.com/users/bb8d/following{/other_user}","gists_url":"https://api.github.com/users/bb8d/gists{/gist_id}","starred_url":"https://api.github.com/users/bb8d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bb8d/subscriptions","organizations_url":"https://api.github.com/users/bb8d/orgs","repos_url":"https://api.github.com/users/bb8d/repos","events_url":"https://api.github.com/users/bb8d/events{/privacy}","received_events_url":"https://api.github.com/users/bb8d/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T12:02:52Z","updated_at":"2016-03-29T12:02:52Z","body":"Sure:\r\n\r\nOS: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux (debian 8.2 - jessie)\r\nMYSQL: Ver 14.14 Distrib 5.7.10, for Linux (x86_64) using EditLine wrapper\r\nPHP 5.6.14-0+deb8u1 (fpm) with with Zend OPcache v7.0.6-dev\r\nWEBSERVER: nginx/1.8.0\r\nbuilt by gcc 4.9.2 (Debian 4.9.2-10) \r\nbuilt with OpenSSL 1.0.1k 8 Jan 2015\r\nTLS SNI support enabled\r\nconfigure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_spdy_module --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,--as-needed' --with-ipv6"}}