"Most likely the ajax url is incorrec" after moving to HTTPS

Discuss MySQL Ajax Table Editor

"Most likely the ajax url is incorrec" after moving to HTTPS

Postby sslUser » Tue Jul 31, 2018 11:11 pm


I'm getting the "Something went wrong Most likely the ajax url is incorrect." error after moving my website (shared hosting, managed via cPanel) to HTTPS. Everything had been working fine for 2 years.

I have scoured through the .php and .js files but I cannot find any reference to the ajax url, other than:
<script type="text/javascript">
trackHistory = false;
var ajaxUrl = '<?php echo $_SERVER['PHP_SELF']; ?>';

I've tried setting ajaxUrl to nameOfMyPage.php , https://domain.name/nameOfMyPage.php and str_replace("http","https",$_SERVER['PHP_SELF'] , with no results.

In any case, ajaxUrl is getting filled with the path to "self" from the root folder, without protocol and domain parts, e.g. /my/site/nameOfMyPage.php (full path is https://domain.name/my/site/nameOfMyPage.php)

Do I need any extra configuration after moving to HTTPS?

Thanks in advance!
Posts: 1
Joined: Tue Jul 31, 2018 10:56 pm

Re: "Most likely the ajax url is incorrec" after moving to H

Postby Christian Alfredsson » Wed Jul 31, 2019 4:54 am

I got the same error after working correctly for months.

I have a few drop-downs in the form. If I miss to set one of them I get the error. Is it the same for you
Christian Alfredsson
Posts: 3
Joined: Wed Jul 10, 2019 5:28 pm

Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 4 guests