Jump to content

SOLVED Can't see pages trough error


Troost
 Share

Recommended Posts

Hi all!

At first, i want to wish everybody happy 2020, with a lot of creativity, beautiful projects and lots of fun!

I've a website for a client with an admin account (my acc) and a user account (for the client).
Everything works fine for me, but when the client tries to login, i've got the following popup / error:

        Method ProcessPageListRenderJSON::getUseTrash does not exist or is not callable in this context

When I press OK, nothing happens, so the admin panel is empty for the client. 
I've tried to figure it out with some premissions on the users/roles page, but this won't work out either.

See attached screenshots from the error messages, the 'admin' side and the 'client' side.

Can someone help us out?
Thanks in advance!

CLIENT.jpg

error.png

Schermafbeelding 2020-01-02 om 12.54.22.png

Link to comment
Share on other sites

@Dragan, I commented some lines out in the ProcessPageListRenderJSON.php which made the pages visible.

if(!$this->superuser && $page404 && $page404->parent_id == 1 && !isset($extraPages[$idTrash])) {
	$pageTrash = $this->wire('pages')->get($idTrash);
	if($pageTrash->id && $this->getUseTrash() && $pageTrash->listable()) {
		$extraPages[$pageTrash->id] = $pageTrash;
	}
}

Thanks

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...