HI I have been getting an error on a form submit and not idea why.
It was working fine now this “RangeError: Maximum call stack size exceeded”
Can anyone shed any light as to why this occurs and what I need to look for?
HI I have been getting an error on a form submit and not idea why.
It was working fine now this “RangeError: Maximum call stack size exceeded”
Can anyone shed any light as to why this occurs and what I need to look for?
What page are you getting this on? And where do you see it?
Hi
I am submitting a form signup form as attached below.
Simple form nothing special about it.
It was working fine but for some reason I now get this message in browser and in wappler.
Do you see the same error in the browser dev tools, when you load the page in your browser?
And do you see this error after you submit the form only? Or is it there on page load?
Can you send a link to your page?
Only on submit and i running on local I will have to try and publish to see give you a link.
Here is the log from chrome though.
On posting the form it hangs and then it posts snaps produced this:
wow and that last post with the error above created anew user over 300 times. same user 300 times in one post
I will need to check your page to be able to answer - probably something is wrongly set up so it’s looping.
How do I do that, do I have to publish the site to a host?
If you don’t have any hosting where to upload it, you can zip and send me your page to check for any obvious errors in the code.
Ok a quick and nasty but the error is still produced on submit. It won’t create a record in the database and the failed to load, ignore that they are not relevant to this as i ma not seeing this local.
https://additionalview.com/community/signup.php
Any 8 letterboxing password
But the errors on submit are the same
I see one obvious issue on your page.
You are using the onsubmit event to submit your form … dmx-on:submit.once="signup_form.submit()"
which is not good. Your form submits, when you hit the submit button, then after it submits the onsubmit event fires and submits the form again, which then triggers the onsubmit event … and this goes endlessly
You must not use onsubmit event to submit your form again. You only need one submit button which does the job.
Another issue - you included a server connect component on the page, which runs the same server action you are using for the server connect form:
<dmx-serverconnect id="serverconnect1" url="dmxConnect/api/signup.php"></dmx-serverconnect>
This should not be on the page. You only need the form, not a separate server action component which runs on page load.
You only add a server connect component on the page if you want to list any data there. The server actions used with forms to submit data should not be added separately like that on the page.
Ok So Removed the server connect and remove the on submit event.
The form points to the server action and Now i just get the error on fail.
What error are you getting now and when?
It works in the browser and creates the record in the db and one record, but the error is coming from wappler error event I added under dynamic and is probably the email component, which has stopped working so must be something to do with how I had it set up relied upon the past settings.
Do you have a screenshot of the error?
Fixed it! Back to a working form again. Just rebuilt the query and repeat group ii had to craate the hash token and now it works again.
Thanks @Teodor for you help! yet Again. I will get the hang of this - eventually!
Now to figure out the update issue and will deal with that tomorrow!