WordPress.org

Ready to get started?Download WordPress

Forums

Picasa Album Uploader
[resolved] Can't get button to install (28 posts)

  1. crackedjar
    Member
    Posted 3 years ago #

    I followed all the steps, but when Picasa opens, there is no button to select.

    Any ideas?

  2. jakob.bro
    Member
    Posted 3 years ago #

    I seem to have the same problem, and I have worked the issue a couple of hours now.

    Plugin installed using WordPress automatic method, so I did not upload it to /plugins myself.

    The "Install Image Upload Button in Picasa Desktop" link is appearing, and Picasa is launched as expected. Only nothing happens.

    I checked the details in Picasa by right-clicking and selecting "Configure buttons ..." and no new button is available.

    Note that the log below indicates 2 requests for the plugin, although I only clicked the "Install Image Upload Button in Picasa Desktop" link once.

    Any help would be highly appreciated. I have PHP and general development skills, so let me know what I can do to help.

    Log says:

    Plugin Versions:
    $Id: options.php 385833 2011-05-17 13:13:20Z draca $
    $Id: picasa-album-uploader.php 385840 2011-05-17 13:33:47Z draca $
    PHP Version:
    5.2.4-2ubuntu5.17
    MySQL Server Version:
    5.0.51a-3ubuntu5.8-log
    Plugin Slug:
    picasa_album_uploader
    Permalink Structure:
    /%year%/%monthnum%/%postname%/
    Button HTML:
    <a href="picasa://importbutton/?url=http://kofoednielsen.dk/blog/picasa_album_uploader/picasa_album_uploader.pbz" title="Download Picasa Button and Install in Picasa Desktop">Install Image Upload Button in Picasa Desktop</a>
    Log:
    2011-08-14 21:26:03 Parsing request 'blog/picasa_album_uploader/picasa_album_uploader.pbz'
    2011-08-14 21:26:03 Request is not for plugin: 'blog/picasa_album_uploader/picasa_album_uploader.pbz'
    2011-08-14 21:26:03 Parsing request 'blog/picasa_album_uploader/picasa_album_uploader.pbz'
    2011-08-14 21:26:03 Request is not for plugin: 'blog/picasa_album_uploader/picasa_album_uploader.pbz'
  3. crackedjar
    Member
    Posted 3 years ago #

    Sounds like exactly the same thing that is happening to me, although I don't know much about coding, so I can't even experiment.

  4. Ken
    Member
    Plugin Author

    Posted 3 years ago #

    Jakob.bro -

    The plugin expects the incoming request should be "picasa_album_uploader/picasa_album_uploader.pbz" and yours is prefixed with "blog/". In the installs I've tested this prefixing does not happen so this makes me think I'm not handling some aspect of WordPress customization properly.

    * Is WP installed in the 'blog' sub-directory on your server?
    * What are the values for "WordPress address (URL)" and "Site address (URL)" on the "General Settings" options screen?

    crackedjar - In the plugin settings, you can turn on the debug logging so see if similar data is being reported by the plugin.

  5. crackedjar
    Member
    Posted 3 years ago #

    I finally gave up and went with another way to get my pictures uploaded and displayed. Not quite as convenient, but I accomplished what I wanted to accomplish.

    Thank you anyway.

  6. jakob.bro
    Member
    Posted 3 years ago #

    Ken,

    Thanks for the speedy reply,

    Is WP installed in the 'blog' sub-directory on your server?

    Yes

    What are the values for "WordPress address (URL)" and "Site address (URL)" on the "General Settings" options screen?

    WordPress address (URL) = http://kofoednielsen.dk/blog

    Site address (URL) = http://kofoednielsen.dk

  7. Ken
    Member
    Plugin Author

    Posted 3 years ago #

    I haven't found the problem, but it is a result of how you have WordPress configured. If the site address were also set to have '/blog' I expect it would work for you. I've been able to recreate the problem locally so will be able to sort out a solution.

  8. Ken
    Member
    Plugin Author

    Posted 3 years ago #

    Found the flaw and posted version 0.6.2. Please give it a shot.

  9. jakob.bro
    Member
    Posted 3 years ago #

    Big improvement; I now have the button succesfully.

    A couple of observations. When trying to update the plugin from my WordPress installation, the plugin is reported as up-to-date version 0.6.1.

    I also noticed that the version number is indicated as 0.6.1 on the plugni homepage, however the link points to the 0.6.2 ZIP file.

    It may be intentional, but I though I wanted to mention.

    When using the button, the minibrowser opens, but I get the "Sorry, but no pictures were received from Picasa." error.

    I have seen it around in the forum, and have not investigated further on my own yet. So please dont waste time, if it is a known issue.

    Log now shows:

    Plugin Versions:
    $Id: options.php 385833 2011-05-17 13:13:20Z draca $
    $Id: picasa-album-uploader.php 423849 2011-08-15 15:54:46Z draca $
    PHP Version:
    5.2.4-2ubuntu5.17
    MySQL Server Version:
    5.0.51a-3ubuntu5.8-log
    Plugin Slug:
    picasa_album_uploader
    Permalink Structure:
    /%year%/%monthnum%/%postname%/
    Button HTML:
    <a href="picasa://importbutton/?url=http://kofoednielsen.dk/picasa_album_uploader/picasa_album_uploader.pbz" title="Download Picasa Button and Install in Picasa Desktop">Install Image Upload Button in Picasa Desktop</a>
    Log:
    [lines removed here - jakob.bro]
    2011-08-15 17:36:47 Parsing request 'picasa_album_uploader/picasa_album_uploader.pbz'
    2011-08-15 17:36:47 Request will be handled by plugin
    2011-08-15 17:36:47 build_url: http://kofoednielsen.dk/picasa_album_uploader/minibrowser
    2011-08-15 17:36:47 Building Button with target URL http://kofoednielsen.dk/picasa_album_uploader/minibrowser
    2011-08-15 17:36:47 Delivered button file to client
    2011-08-15 17:37:08 Parsing request 'picasa_album_uploader/minibrowser'
    2011-08-15 17:37:08 Request will be handled by plugin
    2011-08-15 17:37:08 Generating Minibrowser content
    2011-08-15 17:37:08 Redirecting minibrowser request to login
    2011-08-15 17:37:08 build_url: http://kofoednielsen.dk/picasa_album_uploader/login
    2011-08-15 17:37:08 Parsing request 'picasa_album_uploader/login'
    2011-08-15 17:37:08 Request will be handled by plugin
    2011-08-15 17:37:08 Generating login window content
    2011-08-15 17:37:08 build_url: http://kofoednielsen.dk/picasa_album_uploader/login
    2011-08-15 17:37:08 Using plugin supplied template
    2011-08-15 17:37:15 Parsing request 'picasa_album_uploader/login'
    2011-08-15 17:37:15 Request will be handled by plugin
    2011-08-15 17:37:15 Generating login window content
    2011-08-15 17:37:15 build_url: http://kofoednielsen.dk/picasa_album_uploader/minibrowser
    2011-08-15 17:37:15 Parsing request 'picasa_album_uploader/minibrowser'
    2011-08-15 17:37:15 Request will be handled by plugin
    2011-08-15 17:37:15 Generating Minibrowser content
    2011-08-15 17:37:15 Empty RSS feed from Picasa; unable to build minibrowser form.
    2011-08-15 17:37:15 Using plugin supplied template
  10. jakob.bro
    Member
    Posted 3 years ago #

    And, once again, thanks a lot for the fast response :-)

  11. Ken
    Member
    Plugin Author

    Posted 3 years ago #

    The version discrepancies should sort themselves out. There's a lag in the system from when a new version is posted an all the info at the wordpress site is updated.

    The empty RSS feed is most likely the result of server software dropping the long POST variables that are sent by Picasa. See the readme for a discussion of this error.

  12. digabyte
    Member
    Posted 2 years ago #

    I am still having the same issue in 0.6.2. The "install button" link exists in my WordPress settings, but the button does not appear in my Picasa button window. Suggestions?

  13. digabyte
    Member
    Posted 2 years ago #

    It would seem there is no ".pbz" file in the current 0.6.2 zip file. I assume this is where the button is coming from, and thus there is no button to install? Can you add this file back in, or perhaps direct users to an old file containing the .pbz file?

  14. jakob.bro
    Member
    Posted 2 years ago #

    The pbz is dynamically generated, as it says in the FAQ. So the file does not need to be added.
    Did you check the permalink settings, thats what ruined it for me ...

  15. Ken
    Member
    Plugin Author

    Posted 2 years ago #

    Regarding the "missing" button file, this is addressed in the readme. It is generated on the fly by the plugin. Please enable debugging and post the debug log so I can see what is happening from the plugin perspective.

  16. digabyte
    Member
    Posted 2 years ago #

    Yipes. Can't believe I missed the dynamic generation of .pbz in FAQ. Sorry 'bout that. [blush]

    Still not sure what's going on though. Here's the error log:

    Plugin Versions:
    $Id: options.php 385833 2011-05-17 13:13:20Z draca $
    $Id: picasa-album-uploader.php 423849 2011-08-15 15:54:46Z draca $
    PHP Version:
    5.2.17
    MySQL Server Version:
    5.0.92-community
    Plugin Slug:
    picasa_album_uploader
    Permalink Structure:
    /%year%/%monthnum%/%postname%/
    Button HTML:
    Install Image Upload Button in Picasa Desktop
    Log:
    2011-08-30 22:51:19 Parsing request ''
    2011-08-30 22:51:19 Request is not for plugin: ''
    2011-08-30 22:51:19 Parsing request ''
    2011-08-30 22:51:19 Request is not for plugin: ''

  17. Ken
    Member
    Plugin Author

    Posted 2 years ago #

    Hmmm... And that log is from when you click on the install button link? Very very odd if it is. Just in case ... what I meant to ask for:

    - Turn on debug
    - Recreate the problem, i.e. click the download button link.

    I'm expecting to see log messages like what jakob.bro presented earlier in this thread.

    The Button HTML also looks wonky. Did you modify it? It should start with 'picasa:' and what you provided begins with 'https:'. I guess I should modify my logging there to mask the site name. I'll make some tweaks to do that.

  18. digabyte
    Member
    Posted 2 years ago #

    Yep. That's what I did (turn on debug, click create button link).

    I didn't modify the button HTML except to change out my domain name. Perhaps WordPress changed it here to make it part of a post (sometimes doesn't like code)?

    Here's the information doing it again today (using the "code" button from this interface to bracket the text I cut and pasted); there doesn't seem to by any information in the Log:

    Plugin Versions:
        $Id: options.php 385833 2011-05-17 13:13:20Z draca $
        $Id: picasa-album-uploader.php 423849 2011-08-15 15:54:46Z draca $
    PHP Version:
        5.2.17
    MySQL Server Version:
        5.0.92-community
    Plugin Slug:
        picasa_album_uploader
    Permalink Structure:
        /%year%/%monthnum%/%postname%/
    Button HTML:
        <a href="picasa://importbutton/?url=http://www.mydomain.com/blog/picasa_album_uploader/picasa_album_uploader.pbz" title="Download Picasa Button and Install in Picasa Desktop">Install Image Upload Button in Picasa Desktop</a>
    Log:

    Thanks for your speedy response and for trying to help!

  19. Ken
    Member
    Plugin Author

    Posted 2 years ago #

    Did you get a message from Picasa after clicking the link? It seems that something is amiss in your browser that it isn't passing the string over to Picasa for handling. What the log shows is that Picasa is not making the request to retrieve the button.

    What should happen when you click the link is you'll get a dialog about launching Picasa to handle the request (this partly depends on browser config if you're prompted.) Picasa should then load and present a confirmation dialog asking if you wish to import a button that includes the path to the button.

    Sounds like you aren't getting that far so I think you need to look at your browser configuration in the 'Applications' settings (that's what it's called in Firefox). You should see an entry for content type 'picasa' that would cause it to launch Picasa, or at least ask what you want to do with that content type.

    If the content type isn't there, I'm not sure how to get it added. FF docs say it should be added automatically and prompt you for how to handle the content request. Other browsers might behave different.

  20. Ken
    Member
    Plugin Author

    Posted 2 years ago #

    Here's some instructions regarding the FF settings for download actions.

  21. digabyte
    Member
    Posted 2 years ago #

    No message from Picasa. Just the open button dialogue box in Picasa with my currently installed options but no sign of the WordPress uploader (so the link is definitely launching Picasa).

    Picasa is definitely present and functioning in FF applications. I'll try using a different browser and see what happens.

  22. digabyte
    Member
    Posted 2 years ago #

    Just tried in Chrome, Chrome asked to launch Picasa and import button, but when the "Configure Buttons" box popped up, still no option for WordPress photo upload button (only the currently installed options -just like what I was getting in FF).

    I feel like I must be doing something wrong, if jakob.bro got it to work, but perhaps there's something missing in the 0.6.2 .zip that he had already had downloaded from 0.6.1?

    Still nothing in the log (which also seems weird):

    Plugin Versions:
    $Id: options.php 385833 2011-05-17 13:13:20Z draca $
    $Id: picasa-album-uploader.php 423849 2011-08-15 15:54:46Z draca $
    PHP Version:
    5.2.17
    MySQL Server Version:
    5.0.92-community
    Plugin Slug:
    picasa_album_uploader
    Permalink Structure:
    /%year%/%monthnum%/%postname%/
    Button HTML:
    <a href="picasa://importbutton/?url=http://www.mydomain.com/blog/picasa_album_uploader/picasa_album_uploader.pbz" title="Download Picasa Button and Install in Picasa Desktop">Install Image Upload Button in Picasa Desktop</a>
    Log:
  23. Ken
    Member
    Plugin Author

    Posted 2 years ago #

    The only file delivered related to the button is: images/wordpress-logo-blue.psd That said, the empty log indicates that the plugin is not receiving a request to build or download the button so I highly doubt you are missing any files. If you really wanted to convince yourself the earlier versions are available by following the "Other Versions" link in the FYI box at the WP plugin page.

    On the more likely front...

    Have you checked your server error logs for any messages? I'm wondering if you might have something like mod_security setup and it's blocking the request for some reason. I noticed a flaw in the handling of URLs for multi-site configs that could run into some mod_security traps depending on the multi-site configuration.

  24. Trebacz
    Member
    Posted 2 years ago #

    I'm also having the same problem. Using the 0.62 zip file.

    Plugin Versions:
    $Id: options.php 385833 2011-05-17 13:13:20Z draca $
    $Id: picasa-album-uploader.php 423849 2011-08-15 15:54:46Z draca $
    PHP Version:
    5.3.5-1ubuntu7.2
    MySQL Server Version:
    5.1.54-1ubuntu4
    Plugin Slug:
    trebacz_picasa_uploader
    Permalink Structure:
    /%year%/%monthnum%/%postname%/
    Button HTML:
    <a href="picasa://importbutton/?url=http://amd-ubuntu/wordpress/trebacz_picasa_uploader/picasa_album_uploader.pbz" title="Download Picasa Button and Install in Picasa Desktop">Install Image Upload Button in Picasa Desktop</a>
    Log:

    There are no entries in the GUI log for the plugin. I am getting 404 errors in the apache access log:

    "GET /wordpress/trebacz_picasa_uploader/picasa_album_uploader.pbz HTTP/1.1" 404

    In the apache error log I get the following error:

    `[error] File does not exist: /var/www/wordpress/trebacz_picasa_uploader'

    The behavior is as others have noted (Picasa machine is Windows XP and Picasa 3). Click on link to install in settings>media. Chrome asks if it okay to allow -tell chrome to launch application. Picasa asks to launch and install buttons. I say yes. Picasa launches, but no button appears in Picasa. I get the associated errors in my apache logs on the webserver. No log entries for the plugin in wordpress.

  25. Ken
    Member
    Plugin Author

    Posted 2 years ago #

    This sounds like a configuration problem. Have you confirmed that you can access other posts and pages using their slug? My guess is that the needed changes are not in .htaccess to allow the rewrite rules in WP to do their thing.

    Double check Settings->Permalinks and confirm that you can access a post via its slug.

    You might need to manually modify .htaccess if the file is not writable by the webserver.

  26. Trebacz
    Member
    Posted 2 years ago #

    Ken - thanks for your time. It was a configuration issue. I did have mod_rewrite (rewrite in Ubuntu) enabled -but not actually working.

    The default Ubuntu virtual host file contains a Directory directive for /. It sets AllowOverride None. Due to Apache 2 scoping, this will disallow override in any directory underneath /, i.e., any directory at all.

    Modifying to "AllowOverride All" has gotten the button working. Thanks for your time in helping with something that had nothing to do with your plugin.

  27. Ken
    Member
    Plugin Author

    Posted 2 years ago #

    You're welcome. Happy to hear that it did turn out to be a config issue.

    I do recommend you be more conservative with your use of AllowOverride to allow only what is actually needed in the directories that are appropriate to improve the security on your server. My server has the same root level config and I have more specific Directory directives to allow what is needed for the apps that are installed in those areas.

  28. Trebacz
    Member
    Posted 2 years ago #

    Thanks again Ken. The server is still private -so I can experiment now. I did some more reading on the implications of AllowOverride All.

    The advice I gotten from another post was was incomplete (or wrong) regarding Ubuntu. Specifically "Error reading /home/david/.nano_history: Permission denied". I have reverted the changes to the configuration file, and only set AllowOveride FileInfo on my wordpress directory and everything seems to be working well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic