Manol Posted March 3, 2014 Share Posted March 3, 2014 Hello. I've got a form with an email on it after submiting: I create a page with a title and the submited email. I add the id of the page created in first step to a PageField in another page that already exists The first step is done but after the second I got the following error ( only if I'm no logged in the page ) Error: Exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '------------' for key 'name_parent_id' (in /var/www/html/patrimonio24/wire/core/Pages.php line 692) Any ideas will be welcome. Thanks. Link to comment Share on other sites More sharing options...
Manol Posted March 3, 2014 Author Share Posted March 3, 2014 Easier question, does anybody know about this error: Error: Exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '------------' for key 'name_parent_id' (in /var/www/html/patrimonio24/wire/core/Pages.php line 692) Link to comment Share on other sites More sharing options...
kongondo Posted March 3, 2014 Share Posted March 3, 2014 Well Google does...it means you are using Drupal...hehe, just kidding . Googling that error returns Drupal stuff in the first few results... From what I see (and this is not very helpful)....something seems to be resubmitting the form? i.e. trying to create another page with the form using same name as one that already exists, or just created? (as in your step #1 in first post).... 1 Link to comment Share on other sites More sharing options...
Manol Posted March 3, 2014 Author Share Posted March 3, 2014 is a tip to start with you jooker! , drupal, what the hell is that? , something from the fifties? 1 Link to comment Share on other sites More sharing options...
Manol Posted March 3, 2014 Author Share Posted March 3, 2014 Is kind of curious I'm using $suscriptores = $pages->find('template=newsletters-client'); I've got 4 pages of this type but is not returning any? Link to comment Share on other sites More sharing options...
Soma Posted March 3, 2014 Share Posted March 3, 2014 Maybe they're hidden or unpublished? 1 Link to comment Share on other sites More sharing options...
Manol Posted March 3, 2014 Author Share Posted March 3, 2014 Soma thanks your right inheritance was the problem, thank you very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now