Hi all,

I need your help its very urgent for me. when i am adding new taxonomy term i m getting "The website encountered an unexpected error. Please try again later. ". Please help how to fix this issue.

Pantheon is proud to support Drupal and open source Pantheon logo

Comments

priyanka.tawde's picture

Hi,
Can you please reports > recent log messages there you can get exact issue.
If you can not find issue there then you need to clear cache and check vocabulary created properly or not.

JvE's picture

Category: Task » Support request
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

JKingsnorth's picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

There was no further response from the original poster so I'm going to close the issue for now. Please do reopen the issue if you still require assistance, with full instructions to recreate the error from a fresh installation of the latest version.

Justincletus's picture

hi,
The website encountered an unexpected error. Please try again later. how to fix it

gchalker@princeton.edu's picture

I am experiencing this error as well.

"The website encountered an unexpected error. Please try again later."

This is when I made two module updates. This is my error log is in the attached file.
My current CORE is Drupal core 8.2.3

Please advise.

g.g

BEGRAFX's picture

I'm encountering the same issue. I was attempting to add a module, and I got "The website encountered an unexpected error. Please try again later." I can click the BACK button on my browser and get back into the Admin toolbar, but as soon as I click anywhere on it, I get the same error. I can FTP in and I can find the new module in the /MODULES folder. I attempted to just rename the folder, but that doesn't seem to resolve the problem. I've seen suggestions clear the cache, check logs, etc. but I can't get to the proper screens to clear the cache or view the logs. Even trying to view the front end gets the "The website encountered an unexpected error. Please try again later." error message. I've attempted to run CRON using the remote link, and even THAT just gets the "unexpected error" message. I'm using Drupal 8.

I can access both the PHPadmin and FTP.

BEGRAFX's picture

Status: Closed (cannot reproduce) » Needs review

trendy crunch's picture

I am experiencing this error as well on my site www.trendycrunch.com
"The website encountered an unexpected error. Please try again later."

Lynds_y's picture

I am also getting this error on: http://abby-net.org/, including the message
"PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in lock_may_be_available() (line 167 of /var/www/abby-net.org/public_html/includes/lock.inc)."

I haven't made any recent changes to the website.

@trendy crunch: I see your website is up again. How did you resolve this?

Thank you!

BEGRAFX's picture

Hi Lynds_y,

The first thing I would suggest you try, is while you are signed in as Admin, put your site into Maintenance Mode and then go to http://abby-net.org/update.php and let it run through it's process, and see if that helps.

abarpetia's picture

@Lynds_y:

"PDOException: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in lock_may_be_available() (line 167 of /var/www/abby-net.org/public_html/includes/lock.inc)."

Can you able to access your database from phpmyadmin? If not then probably you need to contact you hosting provider. This error is a MySQL configuration problem.
Check this Forum issue for related workarounds.