• Resolved WebEndev

    (@munman)


    Hello,

    I’m getting the following error when trying to display a Google/Picasa album. Running PHP 7.0.18. Any idea what the issue might be?

    Here is the shortcode:
    [gallery type="picasa" user_id='xxxxx' kind='album' album='yyyyyyyyyyyyyy' access='public' protection='none' layout='square' caption='desc-title' thumb_size='72' main_size='1600']

    Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /srv/users/devuser/apps/xxxxx/public/wp-content/plugins/photonic/extensions/Photonic_Picasa_Processor.php on line 246
    
    Warning: simplexml_load_string(): kind: That is not one of the acceptable values in /srv/users/devuser/apps/xxxxx/public/wp-content/plugins/photonic/extensions/Photonic_Picasa_Processor.php on line 246
    
    Warning: simplexml_load_string(): ^ in /srv/users/devuser/apps/xxxxx/public/wp-content/plugins/photonic/extensions/Photonic_Picasa_Processor.php on line 246

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    If you are specifying album='yyyyyyyyyyyyyy' set kind='photo'.

    Also, is this a public album? If not, set access='public,protected,private'

    Thread Starter WebEndev

    (@munman)

    Hi,

    I did have album set with a valid value, and I had kind=’album’.

    I now have it working. I created new albums, and then did add access='public,protected,private and also changed from album= to filter=. It works now.

    Sort of confusing on when to use album vs filter, but as long as it works, I’m good to go.

    Thanks for the quick response.

    Plugin Author Sayontan Sinha

    (@sayontan)

    This is the rule of thumb:

    1. Use kind='photo' if you want to display all photos in an album. In this case you will have to specify album='xxxxx' to tell Photonic which album to display.
      Using filter='xxxxx' will not help here (at least it should not – I have not tested it). You can see examples of the behaviour here.
    2. Use kind='album' to display all of your albums as single thumbnails. In this case you should not specify album='xxxxx' (you will get the XML error), but you can specify filter='xxxxx,yyyyy', in which case it will only show selected albums as single thumbnails. You can see examples of the behaviour here.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SimpleXML Parse Error’ is closed to new replies.