Jump to content

Recommended Posts

Posted

Hello.

I've got a form with an email on it after submiting: 

  1. I create a page with a title and the submited email. 
  2. 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.

Posted

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)

Posted

Well Google does...it means you are using Drupal...hehe, just kidding :P  :biggrin: . 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)....

  • Like 1
Posted

is a tip to start with you jooker!  :lol:, drupal, what the hell is that? >:D , something from the fifties? O0

  • Like 1
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...