Jump to content
Giulio_.

ADMIN - Pages not working

Recommended Posts

@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?

  • Like 3

Share this post


Link to post
Share on other sites

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 by flydev
correction
  • Like 6

Share this post


Link to post
Share on other sites

@flydev this is what I call a thorough explanation :-) Thank you for taking the time and sharing your knowledge!

  • Like 1

Share this post


Link to post
Share on other sites

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!!

Share this post


Link to post
Share on other sites

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) ?

Β 

Share this post


Link to post
Share on other sites
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:

gnome-shell-screenshot-DKFEF0.thumb.png.0f48b9bfa3321d08dd305912fa48aebe.png

i'm guessing there shouldn't be the <!--Β  --> comment there..

how do i make it...Β  NOT be there!?

Β 

Share this post


Link to post
Share on other sites

Deleted, I somehow answered to an old post.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Γ—
Γ—
  • Create New...