I am trying to create a wordpress data table with a serialized php array and after I put in the file url and click save it gives me this error: SSL certificate problem: unable to get local issuer certificate. The file url is correct and the file is submitting the right results but no matter what I try I cannot get it to work. I have it working on my local so I pushed the files to the development site and now when I try to make the table on the dev site it won't let me.
If I understood this correctly, it is working fine locally, but not on a live site?
You need to amend the location of your certificate file to match your own setup:
Download "cacert.pem" from here: http://curl.haxx.se/docs/caextract.html.
Save the cacert.pem file anywhere on your system.
Example:
If you're modifying both php.ini, and telling PHP where to look for this file on a Windows server, save the cacert.pem in "C:\PHP\Extras\SSL".
Open your php.ini file. If your php.ini file doesn't have the curl.cainfo line, just add it to the end of the file, then add the file path where you saved your cacert.pem file:
Change:
; curl.cainfo = To:
curl.cainfo = "C:\PHP\Extras\SSL\cacert.pem";
Restart your server.
This is for a local computer, but for your case, you need to do that on your server so the path will be different. If you are not familiar with this you will need to find someone from your hosting or a company to do that for you. We are using WordPress's remote function wp_remote_get to get data from the store and this is why you are not able to do that.
I already have the carcert.pem and those lines in the php.ini file. The data tables work fine when I do a sql query table but the PHP serialized array and the JSON file options both give that error right when I click save.
I'm not sure if this is the issue, but PHP, JSON, Excel, and all other tables linked to an existing data source need to go through cURL, so maybe trying to make an authenticated call to get the data is causing the issue.
Are those PHP and JSON files hosted online? You can only pass a URL as a source when creating the table, PHP and JSON don't accept uploading the files.
It is definitely something to do with curl. I am not very familiar with it. So the file I use for the data table just echos a serialized array. How would I make that go through curl?
I am trying to create a wordpress data table with a serialized php array and after I put in the file url and click save it gives me this error: SSL certificate problem: unable to get local issuer certificate. The file url is correct and the file is submitting the right results but no matter what I try I cannot get it to work. I have it working on my local so I pushed the files to the development site and now when I try to make the table on the dev site it won't let me.
Hello Kyle.
Thank you for your purchase.
If I understood this correctly, it is working fine locally, but not on a live site?
You need to amend the location of your certificate file to match your own setup:
Download "cacert.pem" from here: http://curl.haxx.se/docs/caextract.html. Save the cacert.pem file anywhere on your system.
Example:
If you're modifying both php.ini, and telling PHP where to look for this file on a Windows server, save the cacert.pem in "C:\PHP\Extras\SSL". Open your php.ini file. If your php.ini file doesn't have the curl.cainfo line, just add it to the end of the file, then add the file path where you saved your cacert.pem file:
Change:
; curl.cainfo = To:
curl.cainfo = "C:\PHP\Extras\SSL\cacert.pem";
Restart your server.
This is for a local computer, but for your case, you need to do that on your server so the path will be different. If you are not familiar with this you will need to find someone from your hosting or a company to do that for you. We are using WordPress's remote function wp_remote_get to get data from the store and this is why you are not able to do that.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
I already have the carcert.pem and those lines in the php.ini file. The data tables work fine when I do a sql query table but the PHP serialized array and the JSON file options both give that error right when I click save.
Hello again Kyle
I'm not sure if this is the issue, but PHP, JSON, Excel, and all other tables linked to an existing data source need to go through cURL, so maybe trying to make an authenticated call to get the data is causing the issue.
Are those PHP and JSON files hosted online? You can only pass a URL as a source when creating the table, PHP and JSON don't accept uploading the files.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
It is definitely something to do with curl. I am not very familiar with it. So the file I use for the data table just echos a serialized array. How would I make that go through curl?
Hi Kyle,
Did you maybe try this : https://wpdatatables.com/faqmd/get-error-failed-connect-network-unreachable/
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 | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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
Yes. I did try that. That did not work either.
Adding this to functions.php fixed it for me:
Thanks for letting us know that this fixed the issue.
I saved your response in case someone else needs help with this.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia 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