Jump to content

Messed up Login Page


tron1000
 Share

Recommended Posts

Hello everyone,

It seems that I managed to mess up my Login page. I tried to use a custom template for it and when changing the template, I got the warning, that the field «process» will be deleted. (I hope I remember this right …)

Of course I ignored the warning :-[ and my custom template didn't work properly, so I changed back to the processwire admin template again. Since I logged out, if I try to log in, I see no form, but the message «This page has no Process assigned».

Is there a way for me to get back in and fix the Login page??

Any help would be very appreciated and sorry for my carelessness …

tron1000

Link to comment
Share on other sites

Hmm, that doesn't sound very good … I think I have no backup, but the site is not extremely big, so in the worst case, I could do a fresh install and fill all the content back in … Thanks for your fast reply Soma!

Link to comment
Share on other sites

You could try reassign the field and its content manually or with the api. But currently not at computer. But maybe someone else. Although you have to attach all the right processes so not easy.

Link to comment
Share on other sites

Took a quick look at my databases from several Pw installs.

1) Make a backup of current DB!

2) In table pages: Entry with id=2 must have templates_id=2

3) In table field_process: Add new entry => pages_id=2, data=87

Good luck :)

Link to comment
Share on other sites

Hi Wanze,

Thanks for your reply!

Unfortunately it didn't work.

In table pages, the entry with id=2 had templates_id=2.

I tried to add anew entry in table field_process, but I received the following error message: Duplicate entry '2' for key 'PRIMARY'.

Maybe this appears, because there already is an entry with pages_id=2. This entry had data=10. When I change data to 87 there, nothing changes.

Thanks, tron1000

Link to comment
Share on other sites

Sorry, the login page has its own page... I was too quickly!

Please change the other value back to '10'.

The page we want has pages_id=23. The right Process has ID=10

So this should work:

1) Make a backup of current DB!

2) In table pages: Entry with id=23 must have templates_id=2

3) In table field_process: Add new entry => pages_id=23, data=10

  • Like 5
Link to comment
Share on other sites

Thank you Wanze!!!!!! Is works again. You saved me a lot of work …

Something is strange thought. I have to put pages_id=2 to data=87 like you said before. Otherwise my browser tells me, that there are too many redirects and the page could not be opened.

But finally in table «field_process» pages_id=2 with data=87 and pages_id=23 with data=10 works perfect.

Thanks so much for your help people! This community is great …

Greetings, tron1000

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

×
×
  • Create New...