WebSite X5Help Center

 
Manoj Kumar
Manoj Kumar
User

Form with X5 sends data by ajax, instead of redirecting to the page  en

Autor: Manoj Kumar
Visitado 1043, Seguidores 1, Compartilhado 0  

I get the following error when submitting my form. I want the page to re-direct to the other file using "Send data to file", but I get an ajax error instead.

The error is as follows:

VM234:1

Uncaught SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
at JSON.parse (<anonymous>)
at Object.<anonymous> (x5engine.deferrable.js?2022-2-9-0:2:123999)
at c (jquery.js?2022-2-9-0:2:28327)
at Object.fireWith [as resolveWith] (jquery.js?2022-2-9-0:2:29072)
at l (jquery.js?2022-2-9-0:2:79901)
at XMLHttpRequest.<anonymous> (jquery.js?2022-2-9-0:2:82355)

The forms we created earlier are working fine, but for the last 3 days we are having issues. The newer forms aren't working and this issue is happening across multiple sites.

We would appreciate some input, thanks in advance.

Publicado em
12 RESPOSTAS
Aleksej H.
Aleksej H.
Moderator

Hello. Please provide a link to the form page. Please send a screenshot of the form submission settings. What version of PHP do you have on your hosting?

Ler mais
Publicado em de Aleksej H.
Manoj Kumar
Manoj Kumar
User
Autor

Hi,

Apologies for reverting very late. Hope you are still there. The problem continues. Please check the link below:

https://www.groupmnk.com/test-1.php

The 'SEND' button just doesn't work.

Many thanks in advance.

Ler mais
Publicado em de Manoj Kumar
Aleksej H.
Aleksej H.
Moderator

I just successfully submitted the registration form. After submitting, I saw a message: "We have sent you an e-mail to validate your account.".
What's wrong?

Ler mais
Publicado em de Aleksej H.
Manoj Kumar
Manoj Kumar
User
Autor

I see. The link is password protected and the form you completed was for access to the page which i have now granted. Your access details as requested are as follows:


Full name: sdfg sdfg
Username:***
E-mail:***
IP Address: 46.150.23.152
Registration Date: 2022-11-01 00:55:08

Please check the below link and let me know.

https://www.groupmnk.com/test-1.php

many thanks.

Manoj Kumar

Ler mais
Publicado em de Manoj Kumar
Aleksej H.
Aleksej H.
Moderator

I registered again at info @ aleksius.biz

I see an error in the console. Try:
1) Delete all site files from the hosting and re-upload it completely to the hosting.
2) Try different versions of PHP - 7.4, 8.0, 8.1.

Ler mais
Publicado em de Aleksej H.
Manoj Kumar
Manoj Kumar
User
Autor

Hi Aleksej,

I deleted all files from server and uploaded the website. Also tried php version 7.4 which is my server version too - didn't work. I can't use 8.0 or 8.1 as my server won't support this.

Any other thoughts? 

Ler mais
Publicado em de Manoj Kumar
Aleksej H.
Aleksej H.
Moderator

Hello. I sent a notification about your question to the company employees, expect an answer from them here in the comments.

Ler mais
Publicado em de Aleksej H.
Incomedia
Stefano G.
Incomedia

Hello Manoj

I registered on the website too, but the test page seems gone.

Did you perhaps move it?

I remain available here

Stefano

Ler mais
Publicado em de Stefano G.
Incomedia
Stefano G.
Incomedia

Hello Manoj

The issue seems to be caused by some custom code I assume, that prints the user's email at the top of the page:

That breaks the form functionality.

Can you try to remove this "hello" message from the project and try again? I remain available here

Stefano

Ler mais
Publicado em de Stefano G.
Manoj Kumar
Manoj Kumar
User
Autor

Hi Stefano,

Apologies for reverting late. The user email and 'Hello' has been removed from the top, yet the problem persists.

Please advise.

thanks.

Ler mais
Publicado em de Manoj Kumar
Incomedia
Stefano G.
Incomedia

Hello Manoj

It seems like an "Hello" is still there somewhere:

Because it's still causing the issue. Try looking for it. If you do not find it, I will ask you to send me your project to find it for you

I remain available here

Stefano

Ler mais
Publicado em de Stefano G.