After fixing the Settings page I tried the shortcode and it came up blank. I looked at errors.log and noticed this:
PHP Warning: simplexml_load_string(): Entity: line 2: parser er
ror : AttValue: ” or ‘ expected in […]/plugins/h-gallery/h-gallery.php on line 55
PHP Warning: simplexml_load_string(): <html lang=en> in […]/plugins/h-gallery/h-gallery.php on l
ine 55
PHP Warning: simplexml_load_string(): ^ in […]/plugins/h-gallery/h-gallery.php on lin
e 55
[ad nauseum]
This is just wrong. Quotes have never been required in any version of HTML if the attribute value consists solely of letters, digits, and hyphens.
]]>The Settings page for the plugin came up blank. It’s 3.6.1 but that’s probably not actually relevant. I looked at my error.log and it looks like the real bug (triggered by Debian’s non-standard way to do multisite) is this:
--- plugins/h-gallery/h-gallery.php.dist 2012-11-05 16:47:31.000000000 -0500
+++ plugins/h-gallery/h-gallery.php 2014-08-27 21:40:23.000000000 -0400
@@ -259,7 +259,7 @@
// ADMIN PAGE
function hgallery_admin() {
- include(ABSPATH . '/wp-content/plugins/h-gallery/admin/h-gallery-admin.php');
+ include(plugin_dir_path(__FILE__) . 'admin/h-gallery-admin.php');
}
function hgallery_admin_actions() {
@@ -272,4 +272,4 @@
}
-?>
\ No newline at end of file
+?>
]]>
Replace in Plugin script ” fullscreenloader.js” Line
$('#fs-close').click(function(){
$container.trigger("close");
});
with
$('#fs-close').click(function(){
$container.trigger("close");
$("#fb-overlay").css('display','none');
$("#fb-wrap").css('display','none');
});
]]>
First off, awesom! Up till now I was only able to find album viewers, and not the entire gallery.
Problem is though, that I can’t get it to work. I keep getting this error.
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Start tag expected, '<' not found in /home/deb49483/domains/volcana.nl/public_html/scouting/wp-content/plugins/h-gallery/h-gallery.php on line 55
The picasa ID I’m working with it not a number, nor a gmail adres. Just a normal info@something email adres…
Any help?
]]>H-Gallery needs allow_url_fopen enabled.
Your provider can change this. If he want.
Thanks to Stephan!
… I have a solution for the problem if you cannot get access to allow_url_fopen
Replace line 50 in h-gallery.php
$photos = simplexml_load_file($photo_feed);
by
$ch = curl_init($photo_feed);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$xml_raw = curl_exec($ch);
curl_close($ch);
$photos = simplexml_load_string($xml_raw)
as suggested in
https://www.antary.de/2011/05/26/php-curl-als-alternative-fuer-allow_url_fopen/
Best regards
Stephan
Nice plugin, would be wonderful it you could select albums directly, instead of copy pasting them.
Good work
]]>