Module: Picasa upload button
theo.codrianu
Joined: 2012-03-08
Posts: 2 |
Posted: Thu, 2012-03-15 09:26 | |||
based on iresmi - picasa uploader stripped and rebuild as a module. with some improvements. what it does what it doesn't do (yet?) well ... that's it for now ...
|
||||
Posts: 8
Hi - thanks for this! I've figured out a few things, but still have some problems.
My website is hosted on Dreamhost, and I can only install pear things in my home directory, so I had to set the include path, which worked fine, though it would be nicer if picasa_uploader.php included local.php from the gallery3 root (the way gallery3/index.php does; I'm not sure how to do that, yet -- I'm a complete novice at php).
With the path hard-coded, I'm getting four errors along the lines of "Deprecated: Assigning the return value of new by reference is deprecated in /home/orrison/pear/php/HTTP/Request.php on line 412" -- according to http://pear.php.net/package/HTTP_Request HTTP_Request is deprecated in favor of HTTP_Request2.
I can ignore those messages, but then when I try to create an album within the Picasa browser window I getting a javascript error: "An error has occurred in the script on this page. Line: 66, Char: 11, Error: Syntax error, Code: 0, URL: http://orrison.com/gallery3/modules/picasa_uploader/js/picasa_uploader.js"
Thanks again, and thanks for any help or suggestions.
Randy
Posts: 4
Hi Randy, I was wondering if you ever got the uploader to work? I see no response from the module author regarding the issues you ran into.
I am also on Dreamhost and know even less about PEAR so running into:
PEAR package Mail/mime.php Required
Check Failed. PEAR package Mail/mime.php is required.
PEAR package HTTP/Request.php Required
Check Failed. PEAR package HTTP/Request.php is required.
Which file/path did you edit to point to the right stuff? The config.xml did not get created automatically as the author noted...not sure what to do about that.
Sorry for a complete noob question, I like researching but feeling completely stuck at the moment :\
Posts: 8
I think that just means that you need to enable the REST API Module:
Go into Admin, Dashboard, click on Modules, then check the box by "REST API Module" and click Update.
Posts: 12
Hi!
Thank you for the module!
I just tested it - to get rid of the pear-error you have to install the pear-modules with pear in the shell:
1.) pear install Mail
2.) pear install Mail_Mime
3.) pear install HTTP_Request
After this procedure, there are no errors about missing pear-modules.
Now, I created the button and installed it in Picasa 3, but after the login and pressing the "publish" button, there is no picture in the selected album. I tried various albums and smaller files (< 400px wide) but it doesn't work.
Does anyone know what to do?
Posts: 4
Randy, thank you for your reply but enabling the REST API didn't remove the rest of the php errors. I would really appreciate if you could clarify where and how you set the include paths? Assuming it's only needed in one of the php's of the module, not the whole site? I tried inputting the piece of code dreamhost listed in their wiki article into both files in the controller folder of the module, however that only seemed to prevent it from functioning completely :\
_____________________________________
[edit & update 7/15/12]
Was able to resolve the Pear include path issue and add to controllers, as well as all files in the module. However, running into the issue of getting a blank page when clicking to Generate Picasa Button. The "handler" page shows
1
2
3
in the source code and nothing else :\
Posts: 1
Hi,
finally I made the module run. I can create new albums with the uploader, and they end up in table items. I also can initiate the picture-upload from Picasa. It is uploading, but the picture is neither stored in table items, nor can I see it in the G3 album. What could be wrong?
Cheers, Christoph
Posts: 4
Hi,
Having trouble uploading. Managed to get the button into Picasa (by includes in php.ini and several php-files) but after logging in there is no albums showing. If I try to create a new album, I see no text when writing.
Uploading doesn't add anything to my Gallery.
What should I change?
/Michiel
Posts: 6
developer is dead?
or not?
module not work (((
After deleting in index.php "$rss" from value='$rss'
<input type='hidden' name='rss' id='rss' value='$rss' />
i can install button.
From Picasa open window, autentificate, load selected photo...but nothing else- photos dont appear on server....
Picasa version 3.9.0 136.12
Can anybody advice or help?