horst Posted April 7, 2018 Share Posted April 7, 2018 @gebeer, there was a change in Session-DB-Handler in the past, but don't remember exactly when. Maybe you compare the current 3.x Module against the 2.7.x one? 3 Link to comment Share on other sites More sharing options...
flydev Posted April 7, 2018 Share Posted April 7, 2018 (edited) The module in the PW version 2.7.2 create a table with a TEXT (64Kb) field and in PW version 3.0.x it use a MEDIUMTEXT (16Mb) field. @gebeer your are trying to insert 23,536 bytes which could be fine if the string was composed with single-byte characters. But in your case it look like your string is encoded in UTF-8/Multi-byte, so we can assume that each character in your string take 1 to 4 bytes of space and thus the database server truncate your string because the TEXT field can only contain 65 535 chars (using single-byte characters) and your string contain (assuming here) 94 144 bytes (multi-byte characters). It could explain your issue. For testing, you could try to disable SQL STRICT MODE. I hope it make sense. Edited April 7, 2018 by flydev correction 6 Link to comment Share on other sites More sharing options...
gebeer Posted April 7, 2018 Share Posted April 7, 2018 @flydev this is what I call a thorough explanation Thank you for taking the time and sharing your knowledge! 1 Link to comment Share on other sites More sharing options...
PTRRR Posted December 15, 2018 Share Posted December 15, 2018 Hello everyone , I'm trying to deploy processwire on heroku but I'm getting this " Unknown error, please try again later " as well when I want to login directly to the pagelist. If I login on another admin page (modules, etc...) I don't get this error. And if I navigate then to the pagelist from there it works as well. It seems that this error only appears when I go directly to this "pagelist" or I reload the page. I tried to investigate a bit and I found that this issue is caused by an incorrect response to this request: "/processwire/page/list/?id=1&render=JSON&start=0&lang=0&open=0-0&mode=actions" I get this HTML: <form id="ProcessLoginForm" class="InputfieldFormFocusFirst InputfieldFormNoWidths InputfieldFormVertical uk-form-vertical InputfieldForm" method="post" action="./?id=1" data-colspacing="0"><ul class='Inputfields uk-grid-collapse uk-grid-match' uk-grid uk-height-match='target: > .Inputfield:not(.InputfieldStateCollapsed) > .InputfieldContent'><li class='Inputfield InputfieldText Inputfield_login_name collapsed9 uk-width-1-1@m' id='wrap_login_name'><label class='InputfieldHeader uk-form-label' for='login_name'>Username</label><div class='InputfieldContent uk-form-controls'><input id="login_name" class="ProcessLoginName uk-input InputfieldMaxWidth" name="login_name" type="text" maxlength="2048" /></div></li><li class='Inputfield InputfieldText Inputfield_login_pass collapsed9 uk-width-1-1@m' id='wrap_login_pass'><label class='InputfieldHeader uk-form-label' for='login_pass'>Password</label><div class='InputfieldContent uk-form-controls'><input id="login_pass" class="ProcessLoginPass uk-input InputfieldMaxWidth" name="login_pass" type="password" maxlength="2048" /></div></li><li class='Inputfield InputfieldSubmit Inputfield_login_submit uk-width-auto uk-margin-top' id='wrap_Inputfield_login_submit'><div class='InputfieldContent uk-form-controls'><button id="Inputfield_login_submit" class="ui-button ui-widget ui-state-default ui-corner-all" name="login_submit" value="Login" type="submit"><span class='ui-button-text'>Login</span></button></div></li><li class='Inputfield InputfieldHidden Inputfield_login_hidpi uk-width-1-1@m' id='wrap_login_hidpi'><label class='InputfieldHeader uk-form-label' for='login_hidpi'>login_hidpi<i title='Toggle open/close' class='toggle-icon fa fa-fw fa-angle-down' data-to='fa-angle-down fa-angle-right'></i></label><div class='InputfieldContent uk-form-controls'><input id="login_hidpi" name="login_hidpi" value="0" type="hidden" /></div></li><li class='Inputfield InputfieldHidden Inputfield_login_touch uk-width-1-1@m' id='wrap_login_touch'><label class='InputfieldHeader uk-form-label' for='login_touch'>login_touch<i title='Toggle open/close' class='toggle-icon fa fa-fw fa-angle-down' data-to='fa-angle-down fa-angle-right'></i></label><div class='InputfieldContent uk-form-controls'><input id="login_touch" name="login_touch" value="0" type="hidden" /></div></li><li class='Inputfield InputfieldHidden Inputfield_login_width uk-width-1-1@m' id='wrap_login_width'><label class='InputfieldHeader uk-form-label' for='login_width'>login_width<i title='Toggle open/close' class='toggle-icon fa fa-fw fa-angle-down' data-to='fa-angle-down fa-angle-right'></i></label><div class='InputfieldContent uk-form-controls'><input id="login_width" name="login_width" value="0" type="hidden" /></div></li></ul><input type='hidden' name='TOKEN1386143469X1544888824' value='U/pmG2Z5NxG4lJvHui1x13TpsYhdGZ0L' class='_post_token' /></form><p><div><a href='/'><i class='fa fa-home'></i> Home</a></div></p> instead of the correct JSON file. And this is causing the "PageList" script to fail at some point because it can't parse the response. I tried several ways to fix that problem from the answers above but none worked. Any ideas of what can I do to solve this problem? Thank you!! Link to comment Share on other sites More sharing options...
flydev Posted December 16, 2018 Share Posted December 16, 2018 Welcome to the forum @PTRRR If you run `heroku logs --tails|grep "code="` and navigate with your browser inside your backend to trigger the error, is there an output ? How do you manage your sessions (session handler like MemCachier) ? Link to comment Share on other sites More sharing options...
Jonathan Sachse Mikkelsen Posted February 6, 2020 Share Posted February 6, 2020 On 2/3/2017 at 8:56 PM, Giulio_. said: Maybe a wrong copy/paste. Without those lines it works perfectly! I'm experiencing the exact same problems... and i'm getting this: i'm guessing there shouldn't be the <!-- --> comment there.. how do i make it... NOT be there!? Link to comment Share on other sites More sharing options...
BitPoet Posted February 6, 2020 Share Posted February 6, 2020 Deleted, I somehow answered to an old post. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now