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
Visited 1107, Followers 1, Udostępniony 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.

Posted on the
12 ODPOWIEDZI
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?

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from 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?

Czytaj więcej
Posted on the from 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

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from 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? 

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from 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

Czytaj więcej
Posted on the from Stefano G.
Manoj Kumar
Manoj Kumar
User
Autor

Hi Stefano,

The link is still there: Test 1 - www.groupmnk.com/test1.php

Please check and let me know.

Czytaj więcej
Posted on the from Manoj Kumar
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

Czytaj więcej
Posted on the from 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.

Czytaj więcej
Posted on the from 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

Czytaj więcej
Posted on the from Stefano G.