If openlayers_ui is enabled and I either enable Profile2 or the Invite module it brakes the site, printing the following error message:

Additional uncaught exception thrown while handling exception.
Original

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT r.filename AS filename FROM {registry} r WHERE (r.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND (r.type = :db_condition_placeholder_1) ; Array ( [:db_condition_placeholder_0] => ctools\_export\_ui [:db_condition_placeholder_1] => interface ) in _registry_check_code() (line 3175 of /Applications/MAMP/htdocs/test_site/includes/bootstrap.inc).
Additional

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT lid, location FROM {locales_source} WHERE source = :source AND context = :context AND textgroup = 'default'; Array ( [:source] => An AJAX HTTP error occurred. [:context] => ) in _locale_parse_js_file() (line 1563 of /Applications/MAMP/htdocs/test_site/includes/locale.inc).
Uncaught exception thrown in shutdown function.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 144669893557471ff1a0ff5.11598792 ) in lock_release_all() (line 269 of /Applications/MAMP/htdocs/test_site/includes/lock.inc).
Uncaught exception thrown in session handler.

PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT 1 AS expression FROM {sessions} sessions WHERE ( (sid = :db_condition_placeholder_0) AND (ssid = :db_condition_placeholder_1) ); Array ( [:db_condition_placeholder_0] => GZYMlATwOh7dtwazo-7UgMG6_4DliyGbpJmvJ9o5vxk [:db_condition_placeholder_1] => ) in _drupal_session_write() (line 209 of /Applications/MAMP/htdocs/test_site/includes/session.inc).

PHP version 5.5.23, on Mac using MAMP (I just use drush to disable openlayers_ui and the site returns to normal).

This happens both with the 3.0-bata1 and the latest dev version of openlayers_ui.

My work around for building the site is to disable Profile2 and Invite, set everything I need in openlayers_ui, then disable it and re-enable Profile2 and Invite.

Thanks for this great module, really liking openlayers3; if there is any more information I can send that would be useful do let me know.

Comments

ebenfarnworth’s picture

Status: Active » Fixed

After more research it was a memory allocation problem on my local MAMP set-up. Nothing wrong in openlayers! If anyone else finds this useful, I fix the memory allocation problem with the information found here:

http://stackoverflow.com/questions/678645/does-mysql-included-with-mamp-...

Now I can run openlayers, profile2 and invite without any problem.

Max1’s picture

Status: Fixed » Closed (works as designed)

"Works as designed" will be more correct status, I think :-)