Okay
  Public Ticket #3301965
Switch registration from dev-site to live site
Closed

Comments

  •  1
    Mattias started the conversation

    Hi

    We have had wpDatatables registered on oour development site for some time, ogbeta.beginit.se. It is now time to switch over to the live site, osbyglas.se. I have deactivated registration on the dev-site. It says "0/1 Domains in use" on your managae domains site. But it will not register itself on the live site. It says an errpr occured. What is wrong?

    Regards  Mattias C

  •  1,688
    Miloš replied

    Hi, Mattias.

    This could be an issue with the SSL certificate on your site.

    There is a workaround for this issue.

    You can edit a PHP file on your FTP in the plugin folder, with any text/code editor.

    This is the path of the file :

     ../wp-content/plugins/wpdatatables/controllers/wdt_admin_ajax_actions.php

     around line 1089 ( during updates the exact lines of code change, so i recommend searching  for string "curl_setopt" with CTRL+F"), you will find this line of code:

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

    then add this below that :

    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    

    in the end it should look like this :

    4594731436.png

    And it will bypass the SSL issue, and activate the license. 

    Please note, though, that if you migrate the site in the future, and the SSL certificate is not updated, you'll need to add this line again.

    -

    Let me know how it goes?

    Thank you


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Mattias replied

    Hi

    I was not expecting an error in the source-code. I thought there was something in your records blocking.

    I modified as you described, see attachment. But I can see there is an error somewhere. Because tha ajax request gets an 500 response. Se the other attachment.

    The development site is an old copy of the live site. It worked nice when I installed and activated the dev-site some time ago (previous year). There have been several updates of your wpDataTables since then on the dev-site. I installed wpDatatables on the live site maybe a month or so ago. There should not be a big difference between the sites.

    It still doesn't get registered. There are no known issues with certificates or any other on the live site.

    Regards Mattias

    Attached files:  2023-03-15_09-40-37.png
      2023-03-15_09-53-02.png

  •  1
    Mattias replied

    Hi again

    Can I manually upgrade to latest version to fix any code-updates, like the one you proposed. And then try to activate after that?

    Regards Mattias

  •   Miloš replied privately