We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Google Maps Location - Integrity constraint violation - Google Maps Location | Forum

Lester Sagastume
Lester Sagastume Jan 23 '14
Hello,


I am having issues with my oxwall install since the upgrade. I create events from my events plugin. However, whenever I use the google maps location section in events it returns 500 error. I enabled  debug and see the following:



OW Debug - ExceptionMessage:SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '36' for key 'userId'File:/home/XXXXX/public_html/ow_core/database.phpLine:331Trace:#0 /home/XXXXX/public_html/ow_core/database.php(331): PDOStatement->execute() #1 /home/XXXXX/public_html/ow_core/database.php(564): OW_Database->execute('INSERT INTO `ow...', Array) #2 /home/XXXXX/public_html/ow_core/database.php(601): OW_Database->insert('INSERT INTO `ow...', Array) #3 /home/XXXXX/public_html/ow_core/base_dao.php(216): OW_Database->insertObject('ow_googlelocati...', Object(GOOGLELOCATION_BOL_Location)) #4 /home/XXXXX/public_html/ow_plugins/google_map_location/bol/location_service.php(59): OW_BaseDao->save(Object(GOOGLELOCATION_BOL_Location)) #5 /home/XXXXX/public_html/ow_plugins/google_map_location/classes/event_handler.php(446): GOOGLELOCATION_BOL_LocationService->save(Object(GOOGLELOCATION_BOL_Location)) #6 [internal function]: GOOGLELOCATION_CLASS_EventHandler->beforeEventEdit(Object(OW_Event)) #7 /home/XXXXX/public_html/ow_core/event_manager.php(193): call_user_func(Array, Object(OW_Event)) #8 /home/XXXXX/public_html/ow_plugins/event/controllers/base.php(364): OW_EventManager->trigger(Object(OW_Event)) #9 [internal function]: EVENT_CTRL_Base->edit(Array) #10 /home/XXXXX/public_html/ow_core/request_handler.php(266): ReflectionMethod->invokeArgs(Object(EVENT_CTRL_Base), Array) #11 /home/XXXXX/public_html/ow_core/application.php(330): OW_RequestHandler->dispatch() #12 /home/XXXXX/public_html/index.php(65): OW_Application->handleRequest() #13 {main}Type:PDOException
If I use the location section without selecting googles map(text address only) it will load ok.

Attachments:
  Capture.JPG (32.55Kb)
You do not have permission to reply this topic