I’ve now set up a gallery for me to test the WPG2 plug-in on WordPress.
I have the open_basedir problem to solve again in wp-content/plugins/wpg2/g2embed.php on line 922:
// require_once('G2EmbedDiscoveryUtilities.class');
require_once(ABSPATH . '/wp-content/plugins/wpg2/G2EmbedDiscoveryUtilities.class');
Also in wp-content/plugins/wpg2/g2admin.php on line 24
// require_once('G2EmbedDiscoveryUtilities.class');
require_once(ABSPATH . '/wp-content/plugins/wpg2/G2EmbedDiscoveryUtilities.class');
Beyond this, I am now able to install widgets on the sidebar.
However, cannot see the thumbnail image.
This is because it has the wrong domain: http://www.domain.com/gallery/ instead of http://www.reggie.net/gallery/
I made a few changes in WordPress Admin -> WPG2, but no response
I changed the cookies directory in Gallery2 Site Admin -> Admin options -> General -> Cookies to “/gallery/”
Clicking on the link gives a “404 page not found” error.
I suspect the problem is with .htaccess - it is enabled for the WordPress site, but not for the gallery. Let’s try enabling it for Gallery2.
Hmm. No further progress. I looked in all the wpg2 and wpg2widgets files for the word “domain”. It only occurs in g2admin.php as a text example on the admin page. I will have to hunt through the database.
It’s a database problem: For g2options I have s:6:"g2_url";s:30:"http://www.domain.com/gallery/";.
This gets sorted out by “WPG2″ -> “WPG2″ -> “Show/Hide Auto Configuration Form” and entering the correct URL.
Now I get a “Page not found” error, but I see that I haven’t moved my wp-gallery2.php file from the /wp-content/plugins directory to the root directory for this WordPress. The WPG2 documentation didn’t mention this, but there was a forum entry about it here.
Excellent.
Now I have to do some editing on the layout.