UPDATE:

During a MySQL update, re-write split was enabled in the config. This caused the following errors on one of my Drupal installations. Other installs also had lesser (but still serious) issues, such as not displaying database log entries prior to enabling this setting or not being able to login using CAS authentication. The error which was produced was the following:

EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7929 of includes/common.inc).
Notice: Undefined index: node in pathauto_form_node_form_alter() (line 719 of sites/all/modules/pathauto/pathauto.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 630 of modules/menu/menu.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 630 of modules/menu/menu.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 629 of modules/menu/menu.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 629 of modules/menu/menu.module).
Notice: Trying to get property of non-object in comment_form_node_form_alter() (line 1227 of modules/comment/comment.module).
Notice: Undefined index: #node in comment_form_node_form_alter() (line 1210 of modules/comment/comment.module).
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'node_form' not found or invalid function name in drupal_retrieve_form() (line 842 of includes/form.inc).
Notice: Undefined index: instance in field_widget_instance() (line 603 of modules/field/field.form.inc).
Notice: Undefined index: field in field_widget_field() (line 578 of modules/field/field.form.inc).
Warning: implode(): Invalid arguments passed in date_limit_format() (line 2262 of sites/all/modules/date/date_api/date_api.module).
news: updated New Paper.

The website bugged out, messed up pathing, messed up file uploads,...
One thing was true on every install: clearing caches did not work without a huge wall of red errors, such as:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'sites/all/modules/pathauto/pathauto.test' for key 'PRIMARY': INSERT INTO {registry_file} (filename, hash) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => sites/all/modules/pathauto/pathauto.test [:db_insert_placeholder_1] => 1297560df48bad9b325d775d3bc64a411c03a0fd630c5e53ff8e46c4550a6977 ) in _registry_parse_files() (line 149 of /includes/registry.inc).

The error above was, for example, caused by disabling a module, yet drupal still showing it as enabled with an empty settings page. Lovely type of error, which is unfixable without messing around in the DB.

Disabling read-write split fixed all issues and revived the site.
No idea if this can help anyone, but here you go.

Sincerely,
Tim

Comments

herrzhull created an issue. See original summary.

TTNT’s picture

Priority: Normal » Major
TTNT’s picture

Title: MySQL 5.5->5.7 + views/entity reference security update » Read-write split causes errors
Issue summary: View changes
Status: Active » Fixed

Updated parent node with underlying cause.

TTNT’s picture

Issue summary: View changes
TTNT’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.