Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sbryce138

    (@sbryce138)

    Sorry, forgot to post the message I get where the stream goes:

    Flickr API error: SSL is required

    Thread Starter sbryce138

    (@sbryce138)

    Further update: other plugins work fine with my flickr stream so I know its not an expired key.

    I’ve tried completely deleting the plugin (and checked it’s gone on my host too) and re-adding it with no luck. I tried the alternative code mentioned in the other post with no luck either. Now I can’t even store my user id and api key in the plugin settings as it states “API Key is not valid”!

    Flickr photostream is my preferred plugin so if anyone can help me get this working I would appreciate it!

    Thread Starter sbryce138

    (@sbryce138)

    One last update – looks like the http addresses are cached somewhere in the code or wordpress…

    I did a var dump after line 109 in flickr-photostream-setting.php
    $f =new phpFlickr…

    and got this:

    array(26) { [“api_key”]=> string(32) “MYKEY” [“secret”]=> NULL [“rest_endpoint”]=> string(36) “https://api.flickr.com/services/rest/” [“upload_endpoint”]=> string(38) “https://api.flickr.com/services/upload/” [“replace_endpoint”]=> string(39) “https://api.flickr.com/services/replace/” [“req”]=> NULL [“response”]=> string(81) “a:3:{s:4:”stat”;s:4:”fail”;s:4:”code”;i:95;s:7:”message”;s:15:”SSL is required”;}” [“parsed_response”]=> bool(false) [“cache”]=> bool(true) [“cache_db”]=> NULL [“cache_table”]=> NULL [“cache_dir”]=> NULL [“cache_expire”]=> NULL [“cache_key”]=> string(32) “06b5458cfe6d28eeeb48802e267dcae9” [“last_request”]=> array(3) { [“api_key”]=> string(32) “MYKEY” [“format”]=> string(10) “php_serial” [“method”]=> string(16) “flickr.test.echo” } [“die_on_error”]=> bool(false) [“error_code”]=> int(95) [“error_msg”]=> string(15) “SSL is required” [“token”]=> NULL [“php_version”]=> array(3) { [0]=> string(1) “5” [1]=> string(1) “4” [2]=> string(2) “29” } [“custom_post”]=> NULL [“custom_cache_get”]=> NULL [“custom_cache_set”]=> NULL [“max_cache_rows”]=> int(1000) [“service”]=> string(6) “flickr” [“cache_request”]=> array(3) { [“api_key”]=> string(32) “MYKEY” [“format”]=> string(10) “php_serial” [“method”]=> string(16) “flickr.test.echo” } }

    Does anyone know where this cache is to clear it? Thanks, Stewart

    Thread Starter sbryce138

    (@sbryce138)

    Fresh start in the morning. It has cached the phpFlickr code. I can change it but it seems cached on my host. It’s due to this line in phpFlickr.php

    if ( !class_exists('phpFlickr') )

    I am hacking my way through PHP which I don’t know but I assume this means once it has loaded the class it never gets refreshed.

    My wordpress and plugins are all up to date, and I don’t use any caching plugins.

    I have cheated by copying this file and renaming phpFlickrV2 and then changing the class name and any calls to it, or references to the file. The plugin is fine if you run it first time but the cache is a serious headache for me. Now my page works fine (for now).

    Does anyone know how to reload php files on my host? Would love to uninstall my hacked plugin and reinstall the original!

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘API Key is still not valid v3.1.2’ is closed to new replies.