We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Add-on: Flickr for EE

Development and Programming

aircrash's avatar
aircrash
293 posts
15 years ago
aircrash's avatar aircrash
I’m running EE locally on MAMP, if it makes a difference.
I’m guessing this is because you’re running it on MAMP. It looks like the needed PHP variables aren’t set on your server. Have you had any issues with other add-ons not working on your MAMP install?

No, this is the first time I’ve been unable to get an add on to work (though I’m only using a few so far).

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess
like so? Because this didn’t make anything more show up on the page than what i sent in the screenshot.
Yep, you did everything correctly. Weird error, its like your dww_flickr settings aren’t being saved, yet they’re appearing in the Flickr fieldtype settings. I may need to find a better way to access the settings. Try this - go add a Flickr fieldtype to one of your field groups. I’m guessing that once you do that the plugin tags will work. If so, that’ll confirm that I need to pull the settings a different way.

After creating a Flickr custom field I still get:

A PHP Error was encountered
Severity: Notice

Message: Trying to get property of non-object

Filename: dww_flickr/pi.dww_flickr.php

Line Number: 220

Moreover, the custom field itself doesn’t work, see the attached screencap, and from Safari’s Error Console

Unsafe JavaScript attempt to access frame with URL http://system_directory?S=0&D=cp&C=content_publish&M=entry_form&channel_id=1 from frame with URL http://lisajill.net/dem/thoughts/lost. Domains, protocols and ports must match.
lisajill.net/dem/thoughts/lost:236XML self-closing tag syntax used on [removed].  The tag will be closed by WebKit, but not all browsers do this.  Change to [removed][removed] instead for best cross-browser compatibility.
lisajill.net/dem/thoughts/lost:236Unmatched [removed] encountered.  Ignoring tag.
Profile "Profile 1" started.
http://lisajill.net/dem/thoughts/lost

Is my 404 page. This error, as well as the screencap, happen after I click “choose photo”

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

I guess my add-on just doesn’t work at all :( Looks like it has some issues in Safari. I’ll hopefully get around to fixing some of these problems tomorrow.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Lisa, I’ve released a new version (2.0.2) which will hopefully address some of the issues you’re having. I’ve even tested it on Safari 😊.

You can download it from the the page on our site (link is in the first post in this thread).

Let me know how that works and what issues you have.

-Brett

       
aircrash's avatar
aircrash
293 posts
15 years ago
aircrash's avatar aircrash

The new version fixed my problem, too. Thanks.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Great! Totally unexpected result but glad it fixed your issue.

       
aircrash's avatar
aircrash
293 posts
15 years ago
aircrash's avatar aircrash

I spoke too soon. When I use this tag pair: {exp:dww_flickr:photostream}{flickr_img}{/exp:dww_flickr:photostream} I get these errors:

Message: Undefined index: option_auth
Filename: dww_flickr/pi.dww_flickr.php
Line Number: 227

Message: Undefined index: option_nsid
Filename: dww_flickr/pi.dww_flickr.php
Line Number: 34

Message: Cannot modify header information - headers already sent by (output started at /path/to/system/core/Exceptions.php:166)
Filename: core/Common.php
Line Number: 428

And on the publish page I get more errors, and my photostream doesn’t show up:

Message: Undefined index: option_auth
Filename: dww_flickr/ft.dww_flickr.php
Line Number: 143

Message: Undefined index: option_nsid
Filename: dww_flickr/ft.dww_flickr.php
Line Number: 144

Message: Undefined index: option_photourl
Filename: dww_flickr/ft.dww_flickr.php
Line Number: 145

Message: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/artificialmemory/admin/core/Exceptions.php:166)
Filename: core/Common.php
Line Number: 428
       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess

Uninstalled the old version and reinstalled this version. Made a new Flickr custom field and on the publish screen I get:

A PHP Error was encountered Severity: Notice Message: Undefined index: option_auth Filename: dww_flickr/ft.dww_flickr.php Line Number: 143 A PHP Error was encountered Severity: Notice Message: Undefined index: option_nsid Filename: dww_flickr/ft.dww_flickr.php Line Number: 144 A PHP Error was encountered Severity: Notice Message: Undefined index: option_photourl Filename: dww_flickr/ft.dww_flickr.php Line Number: 145

at the top of the Publish form. Then

A PHP Error was encountered Severity: Notice Message: Undefined offset: 13 Filename: content/publish.php Line Number: 136 A PHP Error was encountered Severity: Notice Message: Undefined offset: 13 Filename: content/publish.php Line Number: 136 A PHP Error was encountered Severity: Notice Message: Undefined offset: 13 Filename: content/publish.php Line Number: 158

at the bottom of the publish form.

I’m using a custom publish page layout.

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess

Added:

{exp:flickr:photostream size="square"}<a href="http://{flickr_url}">{flickr_img}</a>{/exp:flickr:photostream}

to a test template and got:

Error The following tag has a syntax error: {exp:flickr:photostream} Please correct the syntax in your template.

the full dww_flicker folder is in the third_party folder.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody
Added:
{exp:flickr:photostream size="square"}<a href="http://{flickr_url}">{flickr_img}</a>{/exp:flickr:photostream}
to a test template and got: Error The following tag has a syntax error: {exp:flickr:photostream} Please correct the syntax in your template.

The template tags were changed for EE2 to be {exp:dww_flickr:function}. If you add the “dww_” I hope it’ll work…

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody
I spoke too soon. When I use this tag pair:

Aircrash - can you make sure the add-on was installed correctly. Before using the template tags you need to go through the custom fieldtype setup. If setup correctly all the fields in the settings panel for Flickr will be filled in.

       
aircrash's avatar
aircrash
293 posts
15 years ago
aircrash's avatar aircrash

Apparently it wasn’t. When I opened the setup page, I had to activate it again (must not have worked last time), and now everything seems to be fine – both the custom field in my publish page, and the tag loop.

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Awesome! Apparently I’m getting better at this whole add-on thing. For reasons I don’t know yet it doesn’t connect with Flickr on the first click most times. But the second click works almost every time.

Feel free to post if you have any other questions, ideas or issues.

-Brett

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
15 years ago
Lisa Wess's avatar Lisa Wess
{exp:dww_flickr:photostream size="square"}<a href="http://{flickr_url}">{flickr_img}</a>{/exp:dww_flickr:photostream}

Gives me:

Fatal error: Class ‘Api’ not found in /www/username/system/expressionengine/libraries/api/Api_channel_fields.php on line 3

       
Brett DeWoody's avatar
Brett DeWoody
140 posts
15 years ago
Brett DeWoody's avatar Brett DeWoody

Try adding

$this->EE->load->library('api');

to line 221 of pi.dww_flickr.php

       
First 2 3 4 5 6 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.