WebSite X5Help Center

 
Manoj Kumar
Manoj Kumar
User

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

Автор: Manoj Kumar
Просмотрено 1536, Подписчики 1, Размещенный 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.

Размещено
12 Ответы
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?

Читать больше
Размещено От Aleksej H.
Manoj Kumar
Manoj Kumar
User
Автор

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.

Читать больше
Размещено От 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?

Читать больше
Размещено От Aleksej H.
Manoj Kumar
Manoj Kumar
User
Автор

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

Читать больше
Размещено От 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.

Читать больше
Размещено От Aleksej H.
Manoj Kumar
Manoj Kumar
User
Автор

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? 

Читать больше
Размещено От 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.

Читать больше
Размещено От 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

Читать больше
Размещено От Stefano G.
Manoj Kumar
Manoj Kumar
User
Автор

Hi Stefano,

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

Please check and let me know.

Читать больше
Размещено От 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

Читать больше
Размещено От Stefano G.
Manoj Kumar
Manoj Kumar
User
Автор

Hi Stefano,

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

Please advise.

thanks.

Читать больше
Размещено От 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

Читать больше
Размещено От Stefano G.