OpenDevelopmentMekong / wpckan

wpckan is a wordpress plugin that exposes a series of functionalities to bring content stored in CKAN to Wordpress' UI and also provide mechanisms for archiving content generated on Wordpress into a CKAN instance.
GNU General Public License v3.0
22 stars 14 forks source link

My widget "Archive Post as CKAN dataset" doesn't work #159

Closed thenets closed 8 years ago

thenets commented 8 years ago

==== SOLVED AND BUG IDENTIFIED ==== I go back to the version 1.2.1 and everything works fine. Probably is a bug. If you need some information for debugging, just let me know.

Thanks for working on this plugin! :) See ya.

==== OLD POST: ==== I don't know why, but the "Archive Post as CKAN dataset" on post editor doesn't work :/ I have set the CORS on my CKAN and the "Add related CKAN content" works fine.

Below you can see all fields empty on "Archive Post as CKAN dataset": Widget on Post editor

If was necessary, this is my CKAN instance (I'm working on theme): http://dev.thenets.org/dataset

wpckan's Settings

I've got this output on log file:

SERVER_IP - 2016-07-24 20:54:10 - 3 - [ /var/www/dadosabertos/wp-content/plugins/wpckan/utils/wpckan-api.php | 465 ] ERROR API CALL on wpckan_api_get_organization_list_for_user message: The directory "/cache/" does not exist and could not be created.
SERVER_IP - 2016-07-24 20:54:10 - 3 - [ /var/www/dadosabertos/wp-content/plugins/wpckan/utils/wpckan-utils.php | 399 ] Something went wrong, check your connection details

But where should be located this "/cache" dir? On Wordpress installation? On system root?

Thanks!

acorbi commented 8 years ago

Hi @thenets thanks for raising this.

I understand you have enabled cache on the WPCKAN settings and specified /cache as path for the the folder storing the cached contents. You have to make sure then that the /cache folder does exist on the machine running your wordpress installation and that the folder is writable. Then WPCKAN should be able to store the cached contents returned by the queries done to the CKAN api

thenets commented 8 years ago

By now, the version 1.2.1 solved my problem ^^ I'll keep this version. I hope I have helped you. Thanks for this app! ^^

acorbi commented 8 years ago

@thenets with pleasure! Can you please share with me the site where you are using the plugin? Im curios to see your use-cases...

thenets commented 8 years ago

I'm just using on development environment. But I'm working with dados.gov.br . I'll release a new version on next month. :)

acorbi commented 8 years ago

Sweet! I covered dados.gov.br in some of the events we did in Brazil as part of http://open-steps.org. So you are using the archiving feature of WPCKAN? also the others?

thenets commented 8 years ago

I'm just implementing all features was requested to me. So I don't know what is the final purpose of all this features. I'm focus on a good CKAN installer, like my project Easy CKAN, and a good and simple way to deploy, using Docker with Easy CKAN command line.

Just mail me if you want to chat. ^^