• joeniedermayer

    (@joeniedermayer)


    Hi! I have this issue:

    Entered my Flickr API key and secret -> Saved the settings -> Clicked on Authenticate 
    Got the error: “Oops! There’s no <q>oauth_token</q> parameter.

    What I’ve tried so far:

    • Deactivated all security and caching plugins
    • Waited over a week and tested multiple times
    • Contacted both my hosting provider and Flickr support – both confirmed that nothing is being blocked on their side and pointed to a possible Photonic plugin issue
    • The Plugin with the same settings and the same Flickr Accouts works on other Websites.
    • Query Monitor says th Plugin delivers “sslverify=false” to flickr.

    Additionally, Cloudways Support gave me the following response:

    Furthermore, while checking the logs, there appears to be an authentication issue within the plugin. These are the logs:

    [Thu Aug 07 11:18:34.527326 2025] [proxy_fcgi:error] [pid 2228952:tid 2228975] [client 91.113.123.188:0] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "oauth_token" in /home/533510.cloudwaysapps.com/zdtgdwafgx/public_html/wp-content/plugins/photonic/Platforms/OAuth1.php on line 65', referer: https://www.homo.at/wp-admin/admin.php?page=photonic-auth

    And this is likely what’s causing the problem.

    This is a code issue within the Photonic plugin itself.

    You need to review the plugin’s code with the help of the plugin developer.

    There is no such restriction from the server side, as confirmed. I have also enabled all permissions so the plugin can function properly.


    Could you please help me troubleshoot this? I’d really like to get this working.

    Thanks in advance!

    The page I need help with: [log in to see the link]

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

    (@sayontan)

    This is a code issue within the Photonic plugin itself.

    While it may seem that way, it is unlikely to be the issue; as recently as yesterday, other users have executed authentication for the plugin without problems.

    The line you are pointing to is executed this way (photonic/Admin/Authentication.php, lines 298 and 299):

    $request_token = $module->get_request_token(admin_url('admin.php?page=photonic-auth&provider=flickr'));
    $authorize_url = $module->get_authorize_URL($request_token);

    The first line gets the $request_token, which is passed to the call for get_authorize_URL (in OAuth1.php), where the error is occurring.

    Let’s look at the code for get_request_token (OAuth1.php, line 146):

    	public function get_request_token($oauth_callback): array {
    $method = 'GET';

    $signature = $this->generate_signature($this->request_token_URL(), ['oauth_callback' => $oauth_callback], $method);
    $parameters = [
    'oauth_version' => $this->oauth_version,
    'oauth_nonce' => $this->nonce,
    'oauth_timestamp' => $this->oauth_timestamp,
    'oauth_callback' => $oauth_callback,
    'oauth_consumer_key' => $this->api_key,
    'oauth_signature_method' => $this->oauth_signature_method(),
    'oauth_signature' => $signature,
    ];

    $end_point = $this->request_token_URL();
    if ('GET' === $method) {
    $end_point .= '?' . self::build_query($parameters);
    $parameters = null;
    }

    $response = Photonic::http($end_point, $method, $parameters);
    $token = $this->parse_token($response);

    return $token;
    }

    The $token is being parsed out of the $response, which is a call made to https://www.flickr.com/services/oauth/request_token with various parameters. The only way that the $token will not have values is if the line $response = Photonic::http($end_point, $method, $parameters) is failing – that is a simple call to the endpoint with the parameters… this happens either when there is a connection failure, or when something is messing with the parameters when the call is being made (typically a security plugin).

    Since I have never been able to replicate the issue on any of my test or live instances, there is no way for me to say which one of these is affecting your site. I can help you troubleshoot this further if you are comfortable adding lines of code – let me know if you want to proceed that way.

    I have one fundamental question for you: do you really need authentication? Are your galleries private? If they are not private, you can simply display your galleries without the need for any authentication.

    Thread Starter joeniedermayer

    (@joeniedermayer)

    Sure, I can add lines to the code.

    My galleries are not private. How can I display them without authentication?
    Thank you for your help!

    Plugin Author Sayontan Sinha

    (@sayontan)

    My galleries are not private. How can I display them without authentication?

    You don’t need to do anything! Basically you can just start creating the galleries using the Photonic wizard. See here for gallery creation guidelines. Note that for Flickr, all you need is an API key if there are no private photos.

    Let’s start with this this before trying to troubleshoot authentication.

    Thread Starter joeniedermayer

    (@joeniedermayer)

    Unfortunately, the wizard gets stuck at “For whom?” (user_id).

    Plugin Author Sayontan Sinha

    (@sayontan)

    What information have you selected/filled in for that?

    Thread Starter joeniedermayer

    (@joeniedermayer)

    It sticks on both ways. Current user as well as with Another User.
    Can we arrange a webcall?

    Plugin Author Sayontan Sinha

    (@sayontan)

    Can we arrange a webcall?

    Sorry, the forum rules don’t permit that.

    It sticks on both ways. Current user as well as with Another User.

    I understand, but when you select “Another User”, what value do you put into the “User Name” field?

    Thread Starter joeniedermayer

    (@joeniedermayer)

    My Account ID “104544918@N03” or “rosalilapantherinnen”. Both the same issue.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Seems to be showing up fine when I run the search. If you open “Developer Tools” in Chrome and view the “Console”, are you seeing any errors?

    Thread Starter joeniedermayer

    (@joeniedermayer)

    No errors ind the Chrome Developer Tools. But this is what I see in the Query Monitor Plugin:

    Plugin Author Sayontan Sinha

    (@sayontan)

    The errors in your Query Monitor are for when you are running authentication – you are getting a “403 Forbidden” error when you are doing the OAuth steps (that is the step that is failing in authentication).

    Are there other items in this list corresponding to Photonic?

    Thread Starter joeniedermayer

    (@joeniedermayer)

    Thats all i get.

    Plugin Author Sayontan Sinha

    (@sayontan)

    Is this list increasing each time you are trying to go through the user selection?

    Also, you are getting “Forbidden” responses for non-Authentication calls, which is very puzzling – basically your API key should be able to do a regular fetch of information from Flickr. Can you confirm that there are no “hidden characters” or “special characters” in your API key?

    Thread Starter joeniedermayer

    (@joeniedermayer)

    Yes, absolutely. I can confirm that there are no “hidden” or “special” characters. I was able to connect the same account on another website.

    I then tried to enter the generated token on the affected website, but without success.

    Plugin Author Sayontan Sinha

    (@sayontan)

    At this time, I am confident that you are facing an issue with either your site’s configuration, or a conflict with another plugin or a conflict with your theme. If Photonic is working with the exact same details on another site, then the only source of the issue boils down to factors other than Photonic. Note that you are facing “403 Forbidden” issues on non-authenticated calls, which shouldn’t happen unless there is an underlying issue with how your site is connecting to Flickr.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Authentication not possible. No “oauth_token”.’ is closed to new replies.