Hi,
I added custom code in Toolset settings which I didn't unfortunately test and activated and now I can't login even in recovery mode, only "There has been a critical error on this website..."
Now I need to delete or deactivate the code I added, but I can't find where the Toolset custom codes are in the database. Would you please guide me to the right direction, thank you.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
This is related to the custom code you wrote, I realized I need it with another view also and stupidly I just copied the code, and changed the view id. Didn't test, only activated and here we are. I realize now I should have changed the function name, right? Or even better I should have added the view with OR in the same custom code. I'm so novice at PHP.
Now I got the admin back (I didn't yet delete the toolset account) with this in config define( 'TOOLSET_DISABLE_CODE_SNIPPETS', true );
But of course the snippets aren't there and if I add the define( 'TOOLSET_DISABLE_CODE_SNIPPETS_GUI', true ); I can't get into admin.
I didn't yet delete the toolset user from this site. Do you have the credentials?
We do not store access details, once ticket is marked resolved the parivate accessa details automatically deleted.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I've removed the code from the snippet you added and I've adjusted the code added to "Custom Code" section with "toolset-custom-code" snippet as given under:
Ok, but when I did that, I couldn't get inside WP. There was this "There has been a critical error on this website..." Even recovery_mode didn't help. There's a way around that?
To get in to admin you have to uncomment that line and then I've deleted the unwanted code and modified the code I shared with you before so you will have working site.
Once site is working, I've comment out that code as we need to access the custom code section. I hope that clarifies things and this was not Toolset issue but you by mistake added wrong code.