Forums

unwanted double article creation

hyrum_0 16 Sep, 2015
I have a custom form which creates the desired joomla article, but it also simultaneously creates another article with no title.
see the attachment

What is the most likely root cause?
GreyHead 16 Sep, 2015
Hi hyrum_0,

I've no idea, not a problem that I've seen before.

Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

Bob
hyrum_0 17 Sep, 2015
with debugger on and after submitting a article creation form

Data Array
Array
(
    [option] => com_chronoforms5
    [chronoform] => project-submit
    [event] => submit
    [article-title] => debugger on
    [already-published] => No
    [synopsis] => duh
    [purpose] => duh2
    [product] => Cartoon
    [additional] => 
    [deadline] => 
    [button5] => Submit
    [full_text] => 
<h3>Synopsis</h3>
<div>duh</div>
<p>Already published = No</p>
<p>Finished Product = <b> Cartoon</b></p>
<h3>Purpose</h3>
<div>duh2</div>
<h3>Additional Details</h3>
<div></div>
<h3>Deadline</h3>
<div></div>

    [intro_text] => 
<h3>Synopsis</h3>
<div>duh</div>
<h3>Purpose</h3>
<div>duh2</div>

)

Errors
Array
(
)
Debug Info
Array
(
)
GreyHead 17 Sep, 2015
Hi hyrum_0,

That all looks OK. Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
hyrum_0 17 Sep, 2015
thanks again or your help.
GreyHead 17 Sep, 2015
Hi hyrum_0,

It works OK when I test, only one article is created.

How are you showing the form? I wonder if there is a URL problem. Does it work correctly from the Test or View Form link in the Forms Manager?

Bob
hyrum_0 17 Sep, 2015
I get the same result whether from a module, a menu item or the test/view option that you mentioned.
I turned on the error reporting to "Development" and no errors or messages.
hyrum_0 17 Sep, 2015
I just noticed that the blank article is created after the desired one (it has a larger article #). Might be a clue to the puzzle.
GreyHead 18 Sep, 2015
Hi hyrum_0,

Sorry I have no clues about what is happening from the form - which appears to work correctly when I test, or the debug output. I can only guess that the form is being re-submitted somehow.

By all means email or PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
hyrum_0 18 Sep, 2015
Just PM'd you, but forgot the form name: project-submit
GreyHead 18 Sep, 2015
Answer
1 Likes
Hi hyrum_0,

I'm not clear what is happening - some kind of looping in the URLs I think. I've added a Submit Limit action that blocks any new submissions for 20 seconds and that seems to have cured the double-posting.

I also added some very basic serverside validation to check for, and block, an empty title.

Bob
hyrum_0 18 Sep, 2015
Oops, I should have chosen your post as the best answer.
This topic is locked and no more replies can be posted.