Title: simplexml_load_string error
Last modified: March 1, 2017

---

# simplexml_load_string error

 *  Resolved [funex](https://wordpress.org/support/users/funex/)
 * (@funex)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/simplexml_load_string-error/)
 * I am getting the following errors:
 * Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected,‘
   <‘ not found in C:\xampp\htdocs\hastingsflyfishers\wp-content\plugins\photonic\
   extensions\Photonic_Picasa_Processor.php on line 246
 * Warning: simplexml_load_string(): Unable to find user with email 380969451620-
   70qmqt1fv0vs6iq8vi12gd2mdfdn0gvo.app in C:\xampp\htdocs\hastingsflyfishers\wp-
   content\plugins\photonic\extensions\Photonic_Picasa_Processor.php on line 246
 * Warning: simplexml_load_string(): ^ in C:\xampp\htdocs\hastingsflyfishers\wp-
   content\plugins\photonic\extensions\Photonic_Picasa_Processor.php on line 246
    -  This topic was modified 9 years, 2 months ago by [funex](https://wordpress.org/support/users/funex/).

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-8861521)
 * I think you are using the wrong `user_id`. Take a look at this message:
 * `Warning: simplexml_load_string(): Unable to find user with email 380969451620-
   70qmqt1fv0vs6iq8vi12gd2mdfdn0gvo.app in C:\xampp\htdocs\hastingsflyfishers\wp-
   content\plugins\photonic\extensions\Photonic_Picasa_Processor.php on line 246`
 * From this message above it seems like you are putting in your _client id_ into
   the `user_id` field, while you should be putting in your _email user_. If your
   email is [xyz@gmail.com](https://wordpress.org/support/topic/simplexml_load_string-error/xyz@gmail.com?output_format=md),
   in the `user_id` field you should be putting in xyz. The only place you will 
   put your client id is in _Photonic → Settings → Picasa → Picasa Settings → Google
   Client ID_, nowhere else.
 *  Thread Starter [funex](https://wordpress.org/support/users/funex/)
 * (@funex)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-8863739)
 * Okay. Well, that fixed that. It wasn’t entirely clear, though.
 * However, it still doesn’t solve the other issues:
 *     ```
       Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in C:\xampp\htdocs\hastingsflyfishers\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 C:\xampp\htdocs\hastingsflyfishers\wp-content\plugins\photonic\extensions\Photonic_Picasa_Processor.php on line 246
   
       Warning: simplexml_load_string(): ^ in C:\xampp\htdocs\hastingsflyfishers\wp-content\plugins\photonic\extensions\Photonic_Picasa_Processor.php on line 246
       ```
   
 * Uncommenting this:
 *     ```
        // This works, but test further ...
         $rss = wp_remote_request($query_url, array(
       		'timeout' => 30 ,
       	        'user-agent' => 'Photonic',
       		'sslverify' => true // prevent some problems with Google in token request
       ));
       ```
   
 * Results in just his message:
    `Warning: simplexml_load_string() expects parameter
   1 to be string, array given in C:\xampp\htdocs\hastingsflyfishers\wp-content\
   plugins\photonic\extensions\Photonic_Picasa_Processor.php on line 246`
    -  This reply was modified 9 years, 2 months ago by [funex](https://wordpress.org/support/users/funex/).
    -  This reply was modified 9 years, 2 months ago by [funex](https://wordpress.org/support/users/funex/).
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-8863826)
 * Please don’t change the code – I can assure you that it works fine and doesn’t
   need changes.
 * What is the shortcode you are using? The error message indicates that you are
   setting an incorrect value for “kind” (which is a different error message from
   the previous time).
    -  This reply was modified 9 years, 2 months ago by [Sayontan Sinha](https://wordpress.org/support/users/sayontan/).
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-8866271)
 * Hi,
    I wanted to follow up – were you able to resolve this?
 * If you can explain what you are trying to show, and what shortcode you are using
   for it (you can see the shortcode in the “Text Editor”), I can help resolve this
   easily.
 * In general, for Picasa there are two things you can show – thumbnails for all
   your albums, and thumbnails of photos within an album. Demos and examples of 
   shortcodes for the first can be found [here](https://aquoid.com/plugins/photonic/picasa/picasa-albums/),
   while demos and examples for the second can be found [here](https://aquoid.com/plugins/photonic/picasa/picasa-photos/).
   Both these links are included under _Photonic → Getting Started_ in your dashboard,
   as well as in the “Documentation” links that you see when you click on _Add Media
   → Photonic → Picasa_.
 * My apologies for the brief note yesterday – that was typed from my phone.
 *  Thread Starter [funex](https://wordpress.org/support/users/funex/)
 * (@funex)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-8868867)
 * Here is an example shortcode:
 * `[gallery type='picasa' user_id='hastingsflyfishers' kind='album' album='RecentOutings'
   access='public' protection='none' max_results='5' layout='square' caption='desc-
   title' thumb_size='72' main_size='400' fx='fade' controls='hide' timeout='100'
   speed='100' ]`
 * Despite the album being an “album”, changing kind to “photo, or removing that
   tag altogether has eliminated that problem.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-8870617)
 * Well, basically Google looks at it from a user’s point of view, and they only
   have two permissible values for `kind`:
    - `album` – This shows all albums for a user (only the albums, not the photos
      in an album)
    - `photo` – This shows all photos for a user, and by passing the album you can
      get photos for a specific album
 * The catch here is that if you are providing the user, setting _kind=’album’_ 
   _and_ a specific album id, it misconstructs the API call, resulting in an error
   returned from Google.
 * For the next release I will make the errors report out better.
 *  [kpdillon](https://wordpress.org/support/users/kpdillon/)
 * (@kpdillon)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-9016067)
 * Hi, I am receiving a similar error trying either google photos or flickr, though
   the error is different. This is what I get when I turn on debug. Any ideas? I
   am using PHP 7.0. I am not sure if that could be the issue?
 * Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected,‘
   <‘ not found in /home/stjamestheatre/wp-content/plugins/photonic/extensions/Photonic_Picasa_Processor.
   php on line 246
    -  This reply was modified 9 years, 1 month ago by [kpdillon](https://wordpress.org/support/users/kpdillon/).
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-9016187)
 * [@kpdillon](https://wordpress.org/support/users/kpdillon/),
    Please start a different
   thread, as this one is resolved. Please provide the shortcode you have used.
 * Also, Flickr will never give you this issue – XML is not used for Flickr.
    -  This reply was modified 9 years, 1 month ago by [Sayontan Sinha](https://wordpress.org/support/users/sayontan/).

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘simplexml_load_string error’ is closed to new replies.

 * ![](https://ps.w.org/photonic/assets/icon.svg?rev=1972449)
 * [Photonic Gallery & Lightbox for Flickr, SmugMug & Others](https://wordpress.org/plugins/photonic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photonic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photonic/)
 * [Active Topics](https://wordpress.org/support/plugin/photonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photonic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photonic/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/simplexml_load_string-error/#post-9016187)
 * Status: resolved