• Resolved quckdrawphotos

    (@quckdrawphotos)


    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://www.ads-software.com/plugins/photonic/

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

    (@sayontan)

    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

    (@quckdrawphotos)

    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

    (@quckdrawphotos)

    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

    (@quckdrawphotos)

    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

    (@sayontan)

    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

    (@quckdrawphotos)

    I have been using Photonic for about 4 years now and all of a sudden this stopped working.

    Plugin Author Sayontan Sinha

    (@sayontan)

    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

    (@quckdrawphotos)

    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…
    https://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

    (@sayontan)

    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

    (@quckdrawphotos)

    I’m sorry, but I don’t know how to tell which is line 166.

    Thread Starter quckdrawphotos

    (@quckdrawphotos)

    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

    (@quckdrawphotos)

    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

    (@sayontan)

    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, and change this:

    https://secure.smugmug.com/services/api/json/1.3.0/

    to:

    https://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

    (@quckdrawphotos)

    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.