{"id":435,"date":"2011-05-01T17:47:26","date_gmt":"2011-05-01T07:47:26","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=435"},"modified":"2011-05-01T17:47:26","modified_gmt":"2011-05-01T07:47:26","slug":"gallery-3-and-wordpress-3-plugins-and-problems","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2011\/05\/gallery-3-and-wordpress-3-plugins-and-problems\/","title":{"rendered":"Gallery 3 and WordPress 3 plugins and problems"},"content":{"rendered":"<p>Gallery 3 is a photo gallery while WordPress provides for blogs and  pages to be made. WordPress handles media but not as nicely as Gallery  and as I already have (currently) 800+ photos in Gallery I did not want  to go manually migrating. Hence a link between Gallery and WordPress  would be good.<\/p>\n<p>A number of plugins for WordPress exist and a number of extensions to  Gallery exist. However to get them working is not a simple task.<\/p>\n<p>The ones I have tried and the issues that I had to modify on my SME Server 8 to get them running is detailed here.<\/p>\n<p><a title=\"Gallery 3 WordPress plugin\" href=\"http:\/\/wordpress.org\/extend\/plugins\/g3client\/changelog\/\">Gallery3 Client (G3Client) WordPress plugin<\/a><\/p>\n<p>The first issue I had to resolve was that after install I kept getting an error<\/p>\n<blockquote><p>Could not connect to Gallery3: failed to connect to Gallery3 (http status code: 0)<\/p><\/blockquote>\n<p>The http status of 0 was odd and it took me a while to work it out. Which I did while looking at the next plugin. I documented the fix which was related to <a href=\"http:\/\/howden.net.au\/thowden\/2011\/05\/curl-returns-0-due-to-dns-error-on-sme-server\/\">cURL and not having my DNS set correctly<\/a> on the server.<\/p>\n<p>Once that was resolved, I then had a similar error<\/p>\n<blockquote><p>Could not connect to Gallery3: failed to connect to Gallery3 (http status code: 302)<\/p><\/blockquote>\n<p>I documented the fix for this <a href=\"http:\/\/howden.net.au\/thowden\/2011\/05\/sme-server-and-open_basedir-restriction-affects-curl\/\">open_basedir restriction in effect in Apache<\/a> in another post.<\/p>\n<p><a href=\"http:\/\/wordpress.org\/extend\/plugins\/gallery3-picker\/\">Gallery 3 Picker<\/a> is the other plugin for WordPress that I tried.<\/p>\n<p>I experienced the same errors with cURL as with the first plugin.<\/p>\n<p>At first the Gallery3 Picker would just this message.<\/p>\n<blockquote><p>Detected REST tree support, will use this.<\/p><\/blockquote>\n<p>I was not sure what this meant as there was no &#8216;Ok&#8217; message to indicate that it is working.<br \/>\nIf I tried to add media from the gallery in WP, the title of my Gallery appears ok but the page states<\/p>\n<blockquote><p>Module not configured<br \/>\nSorry, but your Gallery3 module configuration doesn&#8217;t seem to work:<br \/>\nthere is an error possibly with CURL. No mod rewrite.<br \/>\nPlease go here to configure<\/p><\/blockquote>\n<p>Which lead me back to the plugin configure page.<\/p>\n<p>In the end I worked through the code for the picker.php file and established the issues with cURL and SME Server as noted above. I made a suggestion on <a href=\"http:\/\/gallery.menalto.com\/node\/99396?page=1#comment-373497\">handling the cURL error in the Gallery forum<\/a>.<\/p>\n<p>I now have both of these WordPress plugins working as designed and they appear very good.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gallery 3 is a photo gallery while WordPress provides for blogs and pages to be made. WordPress handles media but not as nicely as Gallery and as I already have (currently) 800+ photos in Gallery I did not want to go manually migrating. Hence a link between Gallery and WordPress would be good. A number [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,16,24],"tags":[],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-linux-servers-and-software","category-sme-server","category-wordpress-links"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":0,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}