Okay
  Public Ticket #3346284
Error Could not resolve host
Closed

Comments

  • Victor Torres Rubio started the conversation

    I migrate my website from a server (knownhost) to another server (AWS).  The migration went excellent but with just one exception.  All the tables now show could not resolve host: {new domain}.  I'm using Serialized PHP Array.  If I open the php file by itself it opens correctly.  I can't give you access to the server as it is on an internal tunnel network.  How it is that I can use the link as internally and not through your plugin?  Am I missing something?

  •  1,849
    Miloš replied

    Hi, Victor.

    When you changed the domain, the path to the files for the source data of tables most likely changed, and it is also possible that you changed your Database Table Prefix.

    In order to check what is the current/new path of the tables,

    first you can create a new table linked to an Excel or CSV file, and it should generate just fine. 

    Once you do that, access your database, and open wp_wpdatatables database table.

    In the "content" column, you will see the path related to the new table. 

    So, if the new file is stored in (for example):

    /var/www/html/your-NEW-site/wp-content/uploads/2021/02/file-one.xls

    And your old files are in:

    /var/www/html/your-OLD-site/wp-content/uploads/2021/02/file-two.xls

    You need to modify the content column for each row, and replace the path.

    To do that, you can run this SQL command in your Database ( via PHPMyAdmin):

    UPDATE `wp_wpdatatables` SET content=REPLACE(content,'this_part','that_part')
    

    Please bear in mind that wp_ is the default table prefix of WordPress,

     but on your new site it could be anything, so check what is your DB table prefix,

    then you should run `your_prefix_wpdatatables` and actually replace the part of the path in "this_part" and "that_part" sections.

    -

    That replaces the prefix in the "Content" column. And this:

    UPDATE `xyz_wpdatatables` SET mysql_table_name=REPLACE(mysql_table_name,'wp_','xyz_');

    That replaces the prefix in the "mysql_table_name" column. 

    Once you do this, you should be able to simply load all your manual tables without issues.

    -

    If you're unsure how to do this, I can do it for you if you can provide me with a temporary wp-admin user (administrator), 

    and database (phpMyAdmin) access credentials.

    If you send us access, please make sure to check PRIVATE reply - for safety reasons, so that only we can see it.


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    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

  • Victor Torres Rubio replied

    Hi!

    I was happy thinking that was the case of my problem but it wasn't.  I double check the path and the prefix and was already correct so that's not what is causing the problem.  What else I can look into to check for that problem?  If I use the path in the browser to open the serialized php file array it works.  It shows me in the browser the array.  but on the table, it is showing that error.

  • Victor Torres Rubio replied

    I am currently investigating the problem and came across some forums where users with similar issues for other plugins and they found out that the problem was by changing domains to a none secure domain removing the "s" in https to http. I am wondering if this could be the case for my issue as well. Do you have any suggestions on how to fix it? I have already contacted my domain administrator to see if we can obtain the "s" for https, but in the meantime, I am curious about the root cause of the problem.

  •  1,849
    Miloš replied

    Hi, Victor.

    Thank you for this update.

    We will do our best to advise what you can check next.

    If i understood, server is on an internal tunnel network.

    And that PHP file path opens through your browser, but our plugin gives the error.

    -

    Can you confirm, if you try to make a new PHP Array Table, with the same URL path to the PHP file ,

    does it create a new table successfully, and just the existing tables are giving you an error;

    or it is the same error when you try to make a new table from this PHP URL?

    -

    Can you please show us some screenshots of how this error looks on the screen?

    Can you also please record a Video of your screen,

    show us how it looks/which path you use exactly as URL to open this in your browser;

    and which path is set in the table's back-end settings of our plugin,

    in the Input file path or URL for the Serialized PHP Array table?

    9888740130.png

    Can you also perhaps send me an example of any PHP file that you would use-

    i can try to just check if i can place this file on my localhost folder, and try to link a table to it?

    Also, if you send us any sensitive data, please make sure to mark the reply as PRIVATE, for safety reasons.

    Thank you.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    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