Title: Photonic_SmugMug_Processor.php
Last modified: August 31, 2016

---

# Photonic_SmugMug_Processor.php

 *  Resolved [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/)
 * I get the following error displayed on my website’s photo albums:
 * Fatal error: Cannot use object of type WP_Error as array in /home/xxxxxx/xxxxxx/
   wp-content/plugins/photonic/extensions/Photonic_SmugMug_Processor.php on line
   166
 * Any idea how to work around this?
    I’ve got all of my plugins updated. It’s definitely
   coming from this plugin “Photonic Gallery for Flickr, Picasa, SmugMug, 500px,
   Zenfolio and Instagram”
 * Any help would be greatly appreciated. Also, I’m sorry, but my skill with coding
   is practically nonexistent, so I guess I’m asking for the simplest language in
   understanding how to go forward with this problem.
 * THANK YOU!
 * [https://wordpress.org/plugins/photonic/](https://wordpress.org/plugins/photonic/)

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

 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400413)
 * Did you provide your API key etc. correctly? Do ensure that you have no leading
   or trailing spaces in the API key.
 * What is the shortcode you are using?
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400427)
 * I’m not sure where I am supposed to provide my API Key. Do I insert that info
   into the photonic .php file?
    It looks to me that my smugmug account is automatically
   linked (and automatically providing my ACI key) to the wordpress – photonic app.
 * The shortcode I’m using looks like this:
    [gallery type='smug mug' view='album'
   album='xxxxx_xxxxxx' columns='4']
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400429)
 * oops. shortcode looks like this…
    [gallery type='smugmug' view='album' album='
   xxxxx_xxxxxx' columns='4']
 * there is no space between “smug” and “mug”
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400432)
 * Okay. I just figured out WHERE to provide my API Key.
    I re-entered that AND 
   the secret. This did not solve the problem. I can confirm that I have properly
   provided my API key. The shortcode I’m using is also the exact same short code
   I’ve used for a long time now.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400437)
 * I didn’t follow your last post – are you saying that you have been using Photonic
   for quite some time, and all of a sudden this stopped working? The reason I ask
   is because of your statement:
 * > The shortcode I’m using is also the exact same short code I’ve used for a long
   > time now.
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400439)
 * I have been using Photonic for about 4 years now and all of a sudden this stopped
   working.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400461)
 * OK; I haven’t released any update to the plugin for the past few months, so this
   isn’t something that I recently broke. My guess is that something might have 
   changed with your hosting provider’s settings, but it is impossible for me to
   guess what without doing some troubleshooting on your site. Did you recently 
   switch from HTTP to HTTPS, or change something fundamental on your site, like
   disabling cURL? If you don’t know the answer to this question, can you check 
   with your hosting provider as well?
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400464)
 * I did change my DNS management at my domain host so.
    I was trying to make it
   so that my email campaigns that I send through Mailchimp would all appear to 
   come from my website host and not from mail chimp. Here is the instructions that
   they gave me… [http://kb.mailchimp.com/binaries/content/gallery/mailchimpkb/common/account/dns/account_clickauthenticatedomain_modal.jpg](http://kb.mailchimp.com/binaries/content/gallery/mailchimpkb/common/account/dns/account_clickauthenticatedomain_modal.jpg)
 * This is the one and only thing I can think of that has changed.
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400472)
 * I don’t believe that is causing the issue. The only way to figure out what is
   happening would be to forcefully print out the error. Basically what is happening
   is that WP is failing to communicate with Smugmug. If you put this in right before
   line 166 of the problematic file and reload the page, it will give you the error
   details:
 * `print_r($response);`
 * Can you make this change and reload, then let me know what message you get? You
   can remove the line after you have provided me with the error information.
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400513)
 * I’m sorry, but I don’t know how to tell which is line 166.
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400514)
 * I counted down to what I THOUGHT was line 166 and got this message:
 * Parse error: syntax error, unexpected T_ELSE in /home/content/k/o/a/koalatyadmin/
   html/qdpb/wp-content/plugins/photonic/photonic.php on line 172
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400517)
 * Okay.
    I’m getting a little better at this. I think I found the proper “Line 
   166”. Here is the newest error I got:
 * WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] =>
   error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure))[
   error_data] => Array ( ) )
    Fatal error: Cannot use object of type WP_Error as
   array in /home/content/k/o/a/koalatyadmin/html/qdpb/wp-content/plugins/photonic/
   extensions/Photonic_SmugMug_Processor.php on line 167
 *  Plugin Author [Sayontan Sinha](https://wordpress.org/support/users/sayontan/)
 * (@sayontan)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400521)
 * Thanks. This particular message is illuminating:
 * > WP_Error Object ( [errors] => Array ( [http_request_failed] => Array ( [0] 
   > => **error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake
   > failure** ) ) [error_data] => Array ( ) )
 * It seems like somehow WP failed to make a connection to Smugmug for your site.
 * I can only think of one more thing to attempt: change the connection to HTTP 
   instead of HTTPS (i.e. SSL). For this, you can go to [lines 141 and 144](https://plugins.trac.wordpress.org/browser/photonic/trunk/extensions/Photonic_SmugMug_Processor.php#L141),
   and change this:
 *     ```
       https://secure.smugmug.com/services/api/json/1.3.0/
       ```
   
 * to:
 *     ```
       http://secure.smugmug.com/services/api/json/1.3.0/
       ```
   
 * If this doesn’t work, you might have to talk to your hosting provider.
 *  Thread Starter [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * (@quckdrawphotos)
 * [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400522)
 * That did it!
    Thanks a ton!!!

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

The topic ‘Photonic_SmugMug_Processor.php’ 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/)

## Tags

 * [fatal+error](https://wordpress.org/support/topic-tag/fatalerror/)
 * [smugmug](https://wordpress.org/support/topic-tag/smugmug/)
 * [wp_error](https://wordpress.org/support/topic-tag/wp_error/)

 * 14 replies
 * 2 participants
 * Last reply from: [quckdrawphotos](https://wordpress.org/support/users/quckdrawphotos/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/photonic_smugmug_processorphp/#post-7400522)
 * Status: resolved