I am getting the error "Flickr error 2: Unknown user". I am using the user name that follows http://www.flickr.com/photos/username. I also tried using my yahoo account name which is different.

CommentFileSizeAuthor
#14 paul.booker.251673.patch1.38 KBAnonymous (not verified)

Comments

Zorrin’s picture

I'm having the same problem. Anyone know of a solution for this? Your help would be much appreciated.

shaeman’s picture

Same error here. Any help?

gettysburger’s picture

I'm getting the same thing:

* Flickr error 2: Unknown user
* warning: strtr() [function.strtr]: The second argument is not an array. in /nfs/c01/h04/mnt/36064/domains/otreilly.virtualantietam.com/html/modules/syslog/syslog.module on line 108.

Any thoughts? Thanks.

d.paleino’s picture

Priority: Normal » Critical

Hi,
I can reproduce this also with 6.x-1.x-dev (2008-Apr-03). I'm also rasing its priority, since the module is not usable at all at the moment.

David

jfuzzy’s picture

On the blocks page, in the field that asks for user ID you should be entering the ID that is on your Flickr Api Explorer page. I found mine on this page: http://www.flickr.com/services/api/explore/?method=flickr.photos.getAllC...
There is a region on the right side of the screen that says "useful values", one of these is the user ID. Mine had numbers and a single symbol, not my flickr screen name, or what is at the end of the URL on my flickr site. Good luck.

woogychuck’s picture

We're having a similar issue with our site. I've tried the YahooID, Flickr Username and the Flickr user_id and all result in the Flickr Error 2: Unknown user. In addition, we have the following warning displayed at the top of the page:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of system_settings_form_submit(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/.pester/sunderme/grace.sundermedia.com/modules/flickr/flickr.admin.inc on line 87

I'm unfortunately on a shared host and can't edit the ini file. In addition, attempting to set the value using ini_set() just before the function call, but that didn't seem to help. Hopefully this provides some insight into what is causing the bug.

d.paleino’s picture

Title: Flickr error 2: Unknown user » "Flickr error 2: Unknown user": please specify *what* user_id to input
Category: support » feature
Priority: Critical » Minor

The solution posted by mcqueenj works great! Thanks :)

Changing bug details to fit what should be done IMHO: specify *what* user_id the module wants.

David

irishgringo’s picture

well, I still have the same problem... I found the userID as mcqeen says to do, I have treid several API keys with secret keys, and I am getting the exact same issue.

this is just killing me. I am wondering if it communicated on somekind of blocked prot or something as I am testing this on a shared host.

I think I will give up today... becuase I still have to make it work with lightbox

is anyone else having trouble with this?

bebouze’s picture

Category: feature » bug
Priority: Minor » Critical

ok, I have the same issue. I tried all the user ID variations (including the one mcqueenj mentionned) and get the unknown user red flag.

nonon’s picture

Hi, I'm also experiencing the same sort of error. some small diffs, my is error 1 and not 2. User not found.
Check my error message:

* Flickr error 1: User not found
* warning: strtr() [function.strtr]: The second argument is not an array in /home/nunorodr/public_html/modules/syslog/syslog.module on line 108.
* Flickr error 1: User not found
* warning: strtr() [function.strtr]: The second argument is not an array in /home/nunorodr/public_html/modules/syslog/syslog.module on line 108.

I also tried all usernames possible.

nonon’s picture

Hi, I'm also experiencing the same sort of error. some small diffs, my is error 1 and not 2. User not found.
Check my error message:

* Flickr error 1: User not found
* warning: strtr() [function.strtr]: The second argument is not an array in /home/nunorodr/public_html/modules/syslog/syslog.module on line 108.
* Flickr error 1: User not found
* warning: strtr() [function.strtr]: The second argument is not an array in /home/nunorodr/public_html/modules/syslog/syslog.module on line 108.

I also tried all usernames possible.

Scoutmaster’s picture

I have been having both errors sometimes at the same time depending on what block I use and if I use Flickr user page photosets I get no error but the photos do not show. I have used all the ID's including the one generated by flickr and still can not get aything to work.

I was not sure what callback url should be so I used http://auburnscouts.org/public_html/node/11 this is my photo page and I set the block to content. What is a correct URL for the whole sight for the blocks? I want to add photos on the top of pages and such as well as have a photo gallery but not sure my Call back url is right and even with the one I am using I get the errors above.
I also went to the page in flicker that shows the calls made to flickr and it shows that my calls are comming in.
I am a Drupil noob and have not been able to add any modules and not have problems, I was told there is a steep learning curve but dang.

Anonymous’s picture

Assigned: Unassigned »

There are two errors here

Flickr Error 1:
Too many tags in ALL query
When performing an 'all tags' search, you may not specify more than 20 tags to join together.

Flickr Error 2:
Unknown user
A user_id was passed which did not match a valid flickr user.

user_id (Optional)
The NSID of the user who's photo to search. If this parameter isn't passed then everybody's public photos will be searched. A value of "me" will search against the calling user's photos for authenticated calls.

Information taken from http://www.flickr.com/services/api/flickr.photos.search.html

So what we need to do is ensure that the flickr user name is converted into its NSID and that it is the NSID that is sent with the API request to flickr.com. I'll fix this today .

Anonymous’s picture

StatusFileSize
new1.38 KB

Please patch and provide feedback , thanks.

Anonymous’s picture

Status: Active » Needs review
hyunkeln’s picture

I got the patches working, but now i have a different problem... the random flickr image block works... but it doesn't show my photos but other users´photos....

hyunkeln’s picture

I got another problem... as a field, hoy can I insert an image but without the <p></p> tags... or with this tags customed. I mean, when I insert an image field by default, it's inserted with <p></p> tags... how can I aviod them?

Anonymous’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
Anonymous’s picture

Status: Needs review » Fixed

Sorry , that patch should have been ..

if ($settings['user_id'] == "") {
	  $settings['user_id'] = variable_get('flickr_default_userid', '');
    }
    $settings['user_id'] =flickr_user_find_by_identifier($settings['user_id']);

I'll get that committed to the development branch later today

Freso’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta3
Status: Fixed » Active

Since this issue was marked a duplicate of #212000: Flickr error 1: User not found, I'm going to re-open this one.

I just updated to 6.x-1.0-beta3 which should apparently have the fix for this. Using "freso" still gives me the same result as described in #212000: Flickr error 1: User not found, namely:

  • Flickr error 1: User not found
  • freso is not a Flickr user id and it does not appear to be a valid user name.

So, apparently you still have to use the system's user_id, while the field's description still suggests you can use username or user id.

Anonymous’s picture

Taking a look at this bug report tomorrow

Anonymous’s picture

Fixed.

I'll get this committed to the development branch and put out a further beta.

Anonymous’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.