Search

Hi guys,

I’m having troubles when trying to edit an entry in the frontend.

What’s happening:

  • I’ve got a section with a simple text-input.
  • In the frontend, there’s a form to edit one entry of this section
  • I’ve created one entry in the backend
  • When I submit the form to edit this entry, it returns the following error:
  • <alterar-nome result="error"><message>Invalid Entry ID specified. Could not create Entry object.</message></alterar-data-do-cardapio>
  • In the backend, the entry was deleted.-

I’m using Symphony 2.1.2.

Does anyone have an idea about it and how to solve?

Thanks a lot!

The form markup:

<form action="?debug" method="POST">
<fieldset>
<h3>Editar nome</h3>
<input type="text" name="fields[nome]" value="{//info/entry/nome}" />
<input type="hidden" name="id" value="{//info/entry/@id}" />
<input type="submit" value="Editar" name="action[alterar-nome]" />
</fieldset>
</form>-

Can you clarify the value of the hidden ID input field? (View Source should do the trick)

Does the entry disappear entirely from the database? Check in sym_entries to see whether there is a row with an id of your entry ID value. It could be that the entry still exists in the database, but is not visible in the backend UI for some reason.

@brendo I’ve already done this… The ID in this field is the entry’s ID. I’ve checked the source code and the debug.

@nickdunn Yes, the entry disapper entirely.

Do the rows in your sym_entry_data_xxx tables disappear as well?

@phoque yes, the entry vanishes into thin air.

Hi guys,

I’ve solved this problem. I checked other events in my app and there was another event (customized) being triggered before the editing event for deleting entries.

Sorry, and thanks all of you!

Phew! Glad you got it sorted.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details