My site is having this error

Error

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

Actually when i created a user and logged in along with it this error occurs.
Please help me...

Thanks in advance

Comments

pankaj.magic’s picture

1). I created a user named 'webmaster' having permission to upload content it is different with admin.
2). When i log in with this user this error comes on my screen with site logo.
3). Later on when i click on logo site runs without error.

I dont why this error come....i think its all about profile2/profile2_registration_path module or any thing else.

pjmagic

dman’s picture

I guess you didn't try following any of the 560 other identical issue reports. On that page I linked to, #1, #5 have debugging clues to try. Probably half the others also.

The short answer is look at your server logs
If you don't know how, then the long answer is find out where your server logs are, then look at them

pankaj.magic’s picture

Thanks...I will check it out.

pjmagic

pankaj.magic’s picture

When i disable profile2 module and log in with any user i get no error.
but when i enable profile2 and profile2 registration path and log in with any user except admin i get same error and url is "xyz.com/users/my-name".

pjmagic

vishal.sirsodiya’s picture

when I have edit a node then show "The website encountered an unexpected error. Please try again later." error in my theme.

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 2: SELECT revision.revision_id AS revision_id, base.item_id AS item_id, base.field_name AS field_name, base.archived AS archived, CASE WHEN base.revision_id = revision.revision_id THEN 1 ELSE 0 END AS default_revision FROM {field_collection_item} base INNER JOIN {field_collection_item_revision} revision ON revision.revision_id = base.revision_id WHERE (base.item_id IN ()) ; Array ( ) in EntityAPIController->query() (line 187 of C:\wamp\www\myproj-new\sites\all\modules\contrib\entity\includes\entity.controller.inc).

priyankprajapati’s picture

First I use the drupal 7. I login as a user. I login as a authenticated user. i have use the drupal commerce. when i add the product detail after click on the submit button then after display the Error "The website encountered an unexpected error. Please try again later".

I also clear the cache and update.php also how can i solve this problem ?

also display this error

EntityMetadataWrapperException: Unknown data property . in EntityStructureWrapper->getPropertyInfo() (line 335 of /home/videoaffiliate/public_html/sites/all/modules/entity/includes/entity.wrapper.inc).

priyank

bruceclothier’s picture

For future reference, in case it helps anyone, I have had this problem and found the Drupal Reports "recent log messages" to be very helpful. Mine was a syntax error in my SQL. The fact that it didn't output this is probably down to some misconfiguration on my part re error messages.

Bruce