Error - Website encountered an unexpected error (cannot log in)

Tim Sparrow
Forums
I updated and added some payment modules (paypal) and enabled other modules (cannot remember which ones, but were from main module list not installed manually). I got an Error The website encountered an unexpected error. Please try again later. and now cannot load any of the sites pages. In watchdog I see the following on the last 7 lines: (84995, 1, 'php', '%type: !message in %function (line %line of %file).', 0x613a363a7b733a353a222574797065223b733a32333a225265636f76657261626c6520666174616c206572726f72223b733a383a22216d657373616765223b733a3231353a22417267756d656e7420322070617373656420746f20656e746974795f76696577735f6669656c645f646566696e6974696f6e2829206d75737420626520616e2061727261792c206e756c6c20676976656e2c2063616c6c656420696e202f686f6d652f696465612f7075626c69635f68746d6c2f656c6561726e696e672f70726f66696c65732f6f7069676e6f5f6c6d732f6d6f64756c65732f636f6e747269622f656e746974792f76696577732f656e746974792e76696577732e696e63206f6e206c696e652031353220616e6420646566696e6564223b733a393a222566756e6374696f6e223b733a33313a22656e746974795f76696577735f6669656c645f646566696e6974696f6e2829223b733a353a222566696c65223b733a39383a222f686f6d652f696465612f7075626c69635f68746d6c2f656c6561726e696e672f70726f66696c65732f6f7069676e6f5f6c6d732f6d6f64756c65732f636f6e747269622f656e746974792f76696577732f656e746974792e76696577732e696e63223b733a353a22256c696e65223b693a3137353b733a31343a2273657665726974795f6c6576656c223b693a333b7d, 3, '', 'http://XXX/YYY/admin/reports/dblog', 'http://XXX/YYY/admin/modules/list/confirm', 'zzz.200.24.58', 1404204410); The Blob is: a:6:{s:5:"%type";s:23:"Recoverable fatal error";s:8:"!message";s:215:"Argument 2 passed to entity_views_field_definition() must be an array, null given, called in /home/XXX/public_html/YYY/profiles/opigno_lms/modules/contrib/entity/views/entity.views.inc on line 152 and defined";s:9:"%function";s:31:"entity_views_field_definition()";s:5:"%file";s:98:"/home/XXX/public_html/YYY/profiles/opigno_lms/modules/contrib/entity/views/entity.views.inc";s:5:"%line";i:175;s:14:"severity_level";i:3;} I have no idea where to look to fix this and don't really want to go back to a backup of the DB as there is a load of changes since the backup. Many Thanks, Tim
Tim Sparrow

Found a daily backup I forgot

Found a daily backup I forgot I had taken of the DB a couple of days ago so restored the DB and can now access the site again. Would like to know what caused it as I want to enable payments via paypal but don't want to brick the site again. Many thanks
Profile picture for user James Aparicio
James Aparicio

Hi Tim,

Hi Tim,

That error was on confirming a module activation.

Activate the modules one by one to find what module is giving you the problem,

Btw, you should backup the site aswell since the module files changed.

Best regards

Profile picture for user James Aparicio
James Aparicio

If you do not have a site

If you do not have a site backup, after setting the old backed up database clear the cache and go to update.php.

After that enable the modules one by one.

After you narrowed down the module responsable, on your database that is giving you the error go to the system table and disable that module. This should fix it