I am sure the author of this module would not mind if you work on it as well.
I am no regex expert but the team uses: http://weitz.de/regex-coach/ to help build regex's
I've never modified php classes so I'm a bit hesitant. But still game to learn. Breaking code is nowhere near as hazardous as breaking some things. Is there anything special I need to know about code registered as a class?
I assume the purpose is to group and register a block of functions that are similar in some way so a reference to the class compiles it as a module and makes it available as such, and to provide a standard access syntax.
If I make a few changes to the code, will it break?
Hello All. I've read through these comments and haven't found a solution to my problem. I receive this error whenever I go to the update page: http://<host>/gallery/main.php?g2_controller=addviaemail.addviaemailpage&g2_authToken=<token>
Quote:
Error Detail -
Error (ERROR_BAD_PARAMETER)
in modules/core/classes/GalleryController.class at line 158 (GalleryCoreApi::error)
in main.php at line 189 (GalleryController::loadController)
in main.php at line 94
in main.php at line 83
Any idea what I did wrong? Here is my current setup:
Gallery version 2.2.4
PHP version 5.2.5 apache2handler
Webserver Apache/2.2.8 (Unix) PHP/5.2.5
Database mysqlt 5.0.24a
Add via Email 0.7.3
Any help is appreciated.
Sarah_au
Joined: 2008-01-14
Posts: 8
Posted: Wed, 2008-01-23 19:06
Hi there,
I am trying to get the addemail plugin to work but I keep getting the imap missing errors. My host tells me that imap is compiled into php it's version 5.
I am also using gallery multi user so maybe that's part of the problem?
Sarah
trbailey
Joined: 2007-04-16
Posts: 172
Posted: Wed, 2008-01-23 22:24
Create a file with this one line as it's contents. Name it phpinfo.php and place it in your web root on your hosting service.
<?php phpinfo(); ?>
Navigate to it and look at the results.
http://your.host.name/phpinfo.php
If it does not contain IMAP as a section header (they are alphabetic), your PHP does not support IMAP or pop3 and you need to send your hosting service the url to your phpinfo page and ask them to correct the issue.
I don't think multi user has anything to do with it.
Author:Blog|Site
trbailey
Joined: 2007-04-16
Posts: 172
Posted: Wed, 2008-01-23 22:38
Reply to soto3456, read through the earlier posts on this topic and see the addviaemail codex.
It should help you correct the issue. I'm not the author but I'll try to help if I can. But you'll need to look through the posts first.
It looks to me like a malfomred url.
See: http: //your.gallery.com/main.php?g2_controller=addviaemail.Addviaemailpage
There is a capitol "A" in Addviaemailpage
Try running wget http://<your host>/main.php?g2_controller=addviaemail.Addviaemailpage from a shell and see if it works.
Author:Blog|Site
soto345
Joined: 2008-01-23
Posts: 2
Posted: Thu, 2008-01-24 01:12
trbailey:
Wow, I didn't even notice I had a lower case "a" in there... Guess I should have copied and pasted instead of typing! wget works, going there directly works...
Well, it says it has an incorrect password, but I can fix that and hopefully it'll work 100% after that.
Thank you for your help.
soto
Sarah_au
Joined: 2008-01-14
Posts: 8
Posted: Thu, 2008-01-31 05:48
Quote:
trbaily said If it does not contain IMAP as a section header (they are alphabetic), your PHP does not support IMAP or pop3 and you need to send your hosting service the url to your phpinfo page and ask them to correct the issue.
No it's not there as a seperate header it's listed under apache as a module.... mod_imap
before I get back to the host is there anything I should know about apache? not knowing anything at all I mean.
Sarah
trbailey
Joined: 2007-04-16
Posts: 172
Posted: Thu, 2008-01-31 06:09
If you don't see this:
[img]http://www.trbailey.net/tom/images/imap.jpg[/img]
Or something very similar, it's not installed and you'll need to ask your web hosting provider to make sure it is. I don't think this gallery module uses the apache imap module.
If you have a private server or can install software it's usually called php5-imap.
Author:Blog|Site
trbailey
Joined: 2007-04-16
Posts: 172
Posted: Thu, 2008-01-31 15:13
FYI and FFR (future reference): Apache2 defaults to case sensitive URL's whereas IIS and possibly others designed for win32 do not.
Author:Blog|Site
dlane99
Joined: 2006-10-10
Posts: 8
Posted: Mon, 2008-03-24 19:22
steffi wrote:
So I'm getting it working however with the iphone there are two attachments. One is text/plain for the body and the other is image/jpeg and it seems right now it ends up uploading two things to gallery where only one is an image. So I guess I need to write an iphone specific handler to ignore the text/plain attachment.
I also have this problem,
would it be possible to filter out non image attachments?
Has anyone found a solution?
risp
Joined: 2004-04-09
Posts: 8
Posted: Thu, 2008-04-24 12:50
At the moment I'm trying to get this module to work. Does anyone knows if it should work on gallery 2.2.4? I get the following error
Quote:
Fatal error: Cannot use object of type GalleryStatus as array in /usr/local/www/pictureonline/gallery2/modules/addviaemail/classes/AddviaemailHelper.class on line 181
and debug says:
Quote:
ile_exists(/usr/local/www/pictureonline/gallery2/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) file_exists(/usr/local/www/pictureonline/gallery2//modules/addviaemail/templates/blocks/local/AddviaEmail.tpl) file_exists(/usr/local/www/pictureonline/gallery2//modules/addviaemail/templates/blocks/AddviaEmail.tpl) stat(/usr/local/www/pictureonline/gallery2//modules/addviaemail/templates/blocks/AddviaEmail.tpl) file_exists(/usr/local/www/pictureonline/gallery2/g2data/cache/module/addviaemail/0/0/0.inc) Error performing addviaemail.AddviaEmailBlock callback realpath(/usr/local/www/pictureonline/gallery2/modules/core/classes/../../../) realpath(/usr/local/www/pictureonline/gallery2/) Error (ERROR_BAD_PARAMETER)
in modules/addviaemail/Callbacks.inc at line 70 (GalleryCoreApi::error)
in modules/core/classes/GalleryTemplateAdapter.class at line 875 (AddviaEmailCallbacks::callback)
in g2data/smarty/templates_c/%%4141570250/%%CB^CBD^CBD2A23F%%AddviaEmail.tpl.php at line 3 (GalleryTemplateAdapter::callback)
in lib/smarty/Smarty.class.php at line 1871
in modules/core/classes/GalleryTemplateAdapter.class at line 806 (Smarty::_smarty_include)
in g2data/smarty/templates_c/%%4141570250/%%B4^B49^B49848CB%%sidebar.tpl.php at line 6 (GalleryTemplateAdapter::block)
in lib/smarty/Smarty.class.php at line 1871
in modules/core/classes/GalleryTemplateAdapter.class at line 747 (Smarty::_smarty_include)
in g2data/smarty/templates_c/%%4141570250/%%42^42C^42CE7724%%album.tpl.php at line 9 (GalleryTemplateAdapter::theme)
in lib/smarty/Smarty.class.php at line 1871
in modules/core/classes/GalleryTemplateAdapter.class at line 747 (Smarty::_smarty_include)
in g2data/smarty/templates_c/%%4141570250/%%3A^3A8^3A818B59%%theme.tpl.php at line 49 (GalleryTemplateAdapter::theme)
in lib/smarty/Smarty.class.php at line 1265
in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
in modules/core/classes/GalleryTemplate.class at line 186 (GallerySmarty::fetch)
in main.php at line 490 (GalleryTemplate::fetch)
in main.php at line 98
in main.php at line 87
file_exists(/usr/local/www/pictureonline/gallery2//modules/core/templates/blocks/local/NavigationLinks.tpl)
I'm really want to fix those errors but since I'm new to the gallery2 API it takes some time so if anyone has some pointers for me i hope i can fix it quitte soon
cobalt027
Joined: 2005-06-29
Posts: 22
Posted: Tue, 2008-06-03 21:47
Ok, I'm back and will try to help who ever is still having problems. I shall make it a goal to check here every day, and reply as much as time allows.
If anyone has any problems past, or present, please post so I can you are still having problems. If you already posted, please just refer to a previous message so as not to clutter the forums.
Thanks!
- Cobalt027
nfriedly
Joined: 2007-02-21
Posts: 8
Posted: Tue, 2008-06-03 22:28
WB cobalt! I'd recommend that you just subscribe to the thread and have the forum send you an email whenever somebody posts a reply. Then, as long as you check your email regularly, you should be good. From what I've seen, this thread gets maybe one post a month.
You might want to go back through the history and do kind of a summary of fixes though.
Love the plugin, I know it is not compatible with T-Mobile MMS, TMO sends the image along with 4 other .gif's to the email address which are then processed. It would be nice if you could specify a wildcard type to state what the file name is on the phone. IMAGE_XXX.jpg for example, so the plugin would only process items with that naming convention. That should solve a lot of problems with different phones sending the branding images along with the actual wanted data. Or you could go the other route and have it "ignore" specific file names attached in the message perhaps by typing it directly into the plug while setting it up or adding it as a txt file sitting in the directory. It's late so I can't tell if I'm making too much sense. Thanks for the great plugin and glad to see its active!
Tmobile's branding is as follows:
IMAGE_243.jpg 341 k [ image/jpeg ]
dottedline350.gif 1.1 k [ image/gif ]
dottedline600.gif 1.1 k [ image/gif ]
tmobilelogo.gif 15 k [ image/gif ]
tmobilespace.gif 1 k [ image/gif ]
underbjerg
Joined: 2008-06-26
Posts: 1
Posted: Thu, 2008-06-26 14:21
I had a problem using a gmail account with this plugin. All I got was "ERROR! Could not open mailbox". I turned on debugging in Gallery, and found out that the SSL certificate wasn't trusted.
To get things working, I disabled certificate verification by changing this in AddviaemailHelper.class:
// Check if SSL was enabled - if it was, add it to the server options. if ( $emailssl == "1" ) { $emailServerOptions = $emailServerOptions."/ssl"; }
...to:
// Check if SSL was enabled - if it was, add it to the server options. if ( $emailssl == "1" ) { $emailServerOptions = $emailServerOptions."/ssl/novalidate-cert"; }
Hope this helps someone.
DrUnKtAnK
Joined: 2007-04-23
Posts: 6
Posted: Thu, 2008-07-24 23:01
Thanks Cobalt027 - Awesome plugin just installed on Wordpress 2.5, Gallery 2.2.5 and WPG 3.0.7
rudolfpietersma
Joined: 2003-01-09
Posts: 45
Posted: Sat, 2008-08-16 21:20
I found this error in the error log:
PHP Warning: Invalid argument supplied for foreach() in modules/addviaemail/classes/AddviaemailHelper.class on line 187
What is it? What's the problem?
I'm trying now for days to get this module working, but no success.
It checks my mailbox (because it changes the mails from not-read to read) but the pics are not added to the album. I tried gmail pop, imap, my own pop and imap but nothing seems to work.
I'm having trouble after an upgrade. I deleted and reinstalled AddViaEmail, but it still will not add the photo to the gallery. It checks mail fine, grabs photo and put it in tmp dir /gallery/g2data/tmp (777) but does not add it to the folder associated with the "Email Submissions" gallery (gallery/g2data/albums/photos-from-email/ (777)).
I've also noticed that the page stops loading when it gets to the AddViaEmail block.
The manual test reccomended in the README also fails. Produces 500 internal server error.
Any help is appreciated.
Thanks
Jeremy
Gallery version = 2.2.5 core 1.2.0.7
PHP version = 5.2.3 cgi
Webserver = Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.30 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysql 4.1.22-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, SquareThumb, Thumbnail, Gd, ImageMagick
Acceleration = none, none
Operating system = Linux esc93.midphase.com 2.6.9999-MIDPHAZED-8d852ef03f0ece2563d39a8c6ebdbe96 #1 SMP Mon Jul 24 19:40:22 CDT 2006 i686
Default theme = matrix
gettext = disabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)
Rows in GalleryAccessMap table = 23
Rows in GalleryAccessSubscriberMap table = 3193
Rows in GalleryUser table = 7
Rows in GalleryItem table = 3186
Rows in GalleryAlbumItem table = 84
Rows in GalleryCacheMap table = 0
imap
IMAP c-Client Version 2004
greenteagod
Joined: 2004-05-20
Posts: 38
Posted: Tue, 2008-10-14 06:51
I'm having trouble getting it to function properly. I have the information entered correctly, to pull from a email address from my domain, but it doesn't seem to be reading them. I've tried entering the short email address and with the entire @.com extension but no luck either way.
I am using geeklog and the G2bridge, could that be causing a conflict?
This is the Add via Email dev/debug/results page
The parameters are:
serverType:1
serverAddress:mail.super-crush.com
subjectToMatch:upload
tmpLocation:/home/super-cr/gdata/tmp/
owner:6
destinationAlbum:12080
deleteProcessed:1
Added [0] new items
greenteagod
Joined: 2004-05-20
Posts: 38
Posted: Sat, 2008-10-18 06:03
Now I appear to be getting the same error as gnetwerker was when attempting to access
Error Detail -
Error (ERROR_REQUEST_FORGED)
* in modules/core/classes/GalleryController.class at line 239 (gallerycoreapi::error)
* in main.php at line 224 (gallerycontroller::assertisgenuinerequest)
* in main.php at line 94
* in main.php at line 83
System Information
Gallery version 2.2.5
PHP version 4.4.8 cgi
Webserver Apache/1.3.41 (Unix) mod_gzip/1.3.26.1a mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Database mysql 4.1.22-standard
Toolkits SquareThumb, ImageMagick, Thumbnail, Gd
Operating system Linux gibson.nocdirect.com 2.6.9-67.0.15.ELsmp #1 SMP Thu May 8 10:52:19 EDT 2008 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
gbickel
Joined: 2007-04-29
Posts: 2
Posted: Sun, 2008-11-09 17:06
I too am geting the same error when trying to manually invoke the module bu enterung the URL http://mydomain.com/main.php?g2_controller=addviaemail.Addviaemailpage into my browser.
I can invoke the module by going to a page with the addviaemail block in the sidebar. I like the module and it seems to be working for me, but I really would rather cron the job. Page loads seem to be slow when using the block in my sidebars. Specific error code below.
***************************
Authentication Failure
Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.
Back to the Gallery
Error Detail -
Error (ERROR_REQUEST_FORGED)
in modules/core/classes/GalleryController.class at line 239 (GalleryCoreApi::error)
in main.php at line 243 (GalleryController::assertIsGenuineRequest)
in main.php at line 104
in main.php at line 88
System Information
Gallery version 2.3
PHP version 5.2.4 apache2handler
Webserver Apache/2.0.59 (Trustix Secure Linux/Linux) PHP/5.2.4
Database mysqli 5.1.22-rc-community
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux bickels.net 2.6.19.7-3tr #1 Tue Aug 21 12:21:25 GMT 2007 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
************
Any help is appreciated.
galmoid
Joined: 2005-11-07
Posts: 364
Posted: Thu, 2008-12-04 18:41
dlane99 wrote:
steffi wrote:
So I'm getting it working however with the iphone there are two attachments. One is text/plain for the body and the other is image/jpeg and it seems right now it ends up uploading two things to gallery where only one is an image. So I guess I need to write an iphone specific handler to ignore the text/plain attachment.
I also have this problem,
would it be possible to filter out non image attachments?
Has anyone found a solution?
This works for me; but, somebody smarter than I will need to explain what I've done and whether it is in some way not a good idea.
In AddviaemailHelper.class (found in modules/addviaemail/classes/) there is a section that starts with:
// Beginning of loop that files all images
and ends with:
// end of loop the find all images
In that section I changed the last line (just before the curly brace) from:
I have commited a new version of Configure.inc. This resolved my problem with my module not working anymore. The error was a parameter I look for later on was getting blanked when selected POP as the server type.
ChrisJohnson00TA
Joined: 2004-03-15
Posts: 167
Posted: Thu, 2009-01-15 08:06
Is it possible to add HTML functionality?
This module would be taken to the next level if (most) of us could actually email stuff to it by using outlook, Windows smart phones, other html clients, etc.
I'd be happy to donate some cash to the dev if this actually worked...
alecmyers
Joined: 2006-08-01
Posts: 4342
Posted: Thu, 2009-01-15 08:58
I don't believe this module is under active development any more; also all the Gallery core developers are now working on Gallery3, so I'd say it's unlikely that anything new will be added to this module unless someone new steps in to take it on.
You could advertise for a developer in the marketplace section of this forum if you want to try to find someone to take it on under contract.
ChrisJohnson00TA
Joined: 2004-03-15
Posts: 167
Posted: Mon, 2009-02-16 07:01
I realize that this is dead.. but, is there a wildcard that I can set for email subjects?
Like IMAG* to import all emails that start with whatever letters I choose?
The anti spam feature is great.. but, it's not allowing me to do what I want :p
IMAG* would take IMAG001 or IMAG01 or IMAG0234, etc.
Thanks!
willhaus
Joined: 2006-09-17
Posts: 3
Posted: Sun, 2009-09-20 21:55
galmoid wrote:
dlane99 wrote:
steffi wrote:
So I'm getting it working however with the iphone there are two attachments. One is text/plain for the body and the other is image/jpeg and it seems right now it ends up uploading two things to gallery where only one is an image. So I guess I need to write an iphone specific handler to ignore the text/plain attachment.
I also have this problem,
would it be possible to filter out non image attachments?
Has anyone found a solution?
This works for me; but, somebody smarter than I will need to explain what I've done and whether it is in some way not a good idea.
In AddviaemailHelper.class (found in modules/addviaemail/classes/) there is a section that starts with:
// Beginning of loop that files all images
and ends with:
// end of loop the find all images
In that section I changed the last line (just before the curly brace) from:
Server Type: POP3
Server Address: mail.example.net
SSL: no
Port: 110
Username: photos+example.net
Password: ******
Subject to Match: Ad
The subject was selected since it's the fastest I could type with a phone, I'd really like to not have a subject because I'm lazy, but this is ok.
Selected a designated album for my mobile uploads.
Selected NO for Body as Caption. I did mention I'm lazy. I ain't typing in a body message on a phone.
As per the instructions, I used the manual test link. However, it could not run. I got the common authentication error issue as many of the previous users above: Error (ERROR_REQUEST_FORGED)
So I appended the URL with the session token. To do so, I viewed my page source and searched for g2_authToken. My manual test URL looks like:
That ran successfully. Now to set up the cron job. My server disabled wget and curl for cron jobs. So I created a php file like so:
<?php
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://pics.example.net/main.php?g2_controller=addviaemail.Addviaemailpage");
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
?>
I saved that file as cron.php and uploaded it to the pics directory on my server. I scheduled my cron job like so:
php /home/example/public_html/pics/cron.php
and presto - everything works as it should
Take a pic with my phone.
Add the subject: Ad
Send it to:
When the cron job runs, it pastes it into my Gallery.
I tested with the cron job running every minute, but for real life applications, I only need it to check once a day.
So hopefully that information will help some others who may be stuck. This is what worked for me.
cornellh
Joined: 2006-10-11
Posts: 1
Posted: Tue, 2009-10-06 19:44
Hey... Did you ever get the html emails to work? Is there a snippet of code I can take to make this work? This finishes the process for me and allows family with an easy way to do "Mobile Uploads". Since our phones all send html emails the module can't digest them. This would be sooooo sweet.
Posts: 27300
I am sure the author of this module would not mind if you work on it as well.
I am no regex expert but the team uses: http://weitz.de/regex-coach/ to help build regex's
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 172
I've never modified php classes so I'm a bit hesitant. But still game to learn. Breaking code is nowhere near as hazardous as breaking some things. Is there anything special I need to know about code registered as a class?
I assume the purpose is to group and register a block of functions that are similar in some way so a reference to the class compiles it as a module and makes it available as such, and to provide a standard access syntax.
If I make a few changes to the code, will it break?
Let me guess; Probably...
Author:Blog|Site
Posts: 2
Hello All. I've read through these comments and haven't found a solution to my problem. I receive this error whenever I go to the update page: http://<host>/gallery/main.php?g2_controller=addviaemail.addviaemailpage&g2_authToken=<token>
Any idea what I did wrong? Here is my current setup:
Gallery version 2.2.4
PHP version 5.2.5 apache2handler
Webserver Apache/2.2.8 (Unix) PHP/5.2.5
Database mysqlt 5.0.24a
Add via Email 0.7.3
Any help is appreciated.
Posts: 8
Hi there,
I am trying to get the addemail plugin to work but I keep getting the imap missing errors. My host tells me that imap is compiled into php it's version 5.
I am also using gallery multi user so maybe that's part of the problem?
Sarah
Posts: 172
Create a file with this one line as it's contents. Name it phpinfo.php and place it in your web root on your hosting service.
<?php phpinfo(); ?>
Navigate to it and look at the results.
http://your.host.name/phpinfo.php
It should contain the IMAP section. Here is mine for comparison: http://www.trbailey.net/phpinfo.php
If it does not contain IMAP as a section header (they are alphabetic), your PHP does not support IMAP or pop3 and you need to send your hosting service the url to your phpinfo page and ask them to correct the issue.
I don't think multi user has anything to do with it.
Author:Blog|Site
Posts: 172
Reply to soto3456, read through the earlier posts on this topic and see the addviaemail codex.
It should help you correct the issue. I'm not the author but I'll try to help if I can. But you'll need to look through the posts first.
It looks to me like a malfomred url.
See: http: //your.gallery.com/main.php?g2_controller=addviaemail.Addviaemailpage
There is a capitol "A" in Addviaemailpage
Try running wget http://<your host>/main.php?g2_controller=addviaemail.Addviaemailpage from a shell and see if it works.
Author:Blog|Site
Posts: 2
trbailey:
Wow, I didn't even notice I had a lower case "a" in there... Guess I should have copied and pasted instead of typing! wget works, going there directly works...
Well, it says it has an incorrect password, but I can fix that and hopefully it'll work 100% after that.
Thank you for your help.
soto
Posts: 8
No it's not there as a seperate header it's listed under apache as a module.... mod_imap
before I get back to the host is there anything I should know about apache? not knowing anything at all I mean.
Sarah
Posts: 172
If you don't see this:
[img]http://www.trbailey.net/tom/images/imap.jpg[/img]
Or something very similar, it's not installed and you'll need to ask your web hosting provider to make sure it is. I don't think this gallery module uses the apache imap module.
If you have a private server or can install software it's usually called php5-imap.
Author:Blog|Site
Posts: 172
FYI and FFR (future reference): Apache2 defaults to case sensitive URL's whereas IIS and possibly others designed for win32 do not.
Author:Blog|Site
Posts: 8
I also have this problem,
would it be possible to filter out non image attachments?
Has anyone found a solution?
Posts: 8
At the moment I'm trying to get this module to work. Does anyone knows if it should work on gallery 2.2.4? I get the following error
and debug says:
I'm really want to fix those errors but since I'm new to the gallery2 API it takes some time so if anyone has some pointers for me i hope i can fix it quitte soon
Posts: 22
Ok, I'm back and will try to help who ever is still having problems. I shall make it a goal to check here every day, and reply as much as time allows.
If anyone has any problems past, or present, please post so I can you are still having problems. If you already posted, please just refer to a previous message so as not to clutter the forums.
Thanks!
- Cobalt027
Posts: 8
WB cobalt! I'd recommend that you just subscribe to the thread and have the forum send you an email whenever somebody posts a reply. Then, as long as you check your email regularly, you should be good. From what I've seen, this thread gets maybe one post a month.
You might want to go back through the history and do kind of a summary of fixes though.
Nathan Friedly - Minister, Web Developer, Ninja - http://nfriedly.com
Posts: 1
Hi.
Love the plugin, I know it is not compatible with T-Mobile MMS, TMO sends the image along with 4 other .gif's to the email address which are then processed. It would be nice if you could specify a wildcard type to state what the file name is on the phone. IMAGE_XXX.jpg for example, so the plugin would only process items with that naming convention. That should solve a lot of problems with different phones sending the branding images along with the actual wanted data. Or you could go the other route and have it "ignore" specific file names attached in the message perhaps by typing it directly into the plug while setting it up or adding it as a txt file sitting in the directory. It's late so I can't tell if I'm making too much sense. Thanks for the great plugin and glad to see its active!
Tmobile's branding is as follows:
IMAGE_243.jpg 341 k [ image/jpeg ]
dottedline350.gif 1.1 k [ image/gif ]
dottedline600.gif 1.1 k [ image/gif ]
tmobilelogo.gif 15 k [ image/gif ]
tmobilespace.gif 1 k [ image/gif ]
Posts: 1
I had a problem using a gmail account with this plugin. All I got was "ERROR! Could not open mailbox". I turned on debugging in Gallery, and found out that the SSL certificate wasn't trusted.
To get things working, I disabled certificate verification by changing this in AddviaemailHelper.class:
...to:
Hope this helps someone.
Posts: 6
Thanks Cobalt027 - Awesome plugin just installed on Wordpress 2.5, Gallery 2.2.5 and WPG 3.0.7
Posts: 45
I found this error in the error log:
PHP Warning: Invalid argument supplied for foreach() in modules/addviaemail/classes/AddviaemailHelper.class on line 187
What is it? What's the problem?
I'm trying now for days to get this module working, but no success.
It checks my mailbox (because it changes the mails from not-read to read) but the pics are not added to the album. I tried gmail pop, imap, my own pop and imap but nothing seems to work.
HELP....
Rudolf.
Gallery versie = 2.2.5 core 1.2.0.7
PHP versie = 5.1.6 apache2handler
Posts: 1
I'm having trouble after an upgrade. I deleted and reinstalled AddViaEmail, but it still will not add the photo to the gallery. It checks mail fine, grabs photo and put it in tmp dir /gallery/g2data/tmp (777) but does not add it to the folder associated with the "Email Submissions" gallery (gallery/g2data/albums/photos-from-email/ (777)).
I've also noticed that the page stops loading when it gets to the AddViaEmail block.
The manual test reccomended in the README also fails. Produces 500 internal server error.
Any help is appreciated.
Thanks
Jeremy
Posts: 38
I'm having trouble getting it to function properly. I have the information entered correctly, to pull from a email address from my domain, but it doesn't seem to be reading them. I've tried entering the short email address and with the entire @.com extension but no luck either way.
I am using geeklog and the G2bridge, could that be causing a conflict?
Posts: 38
Now I appear to be getting the same error as gnetwerker was when attempting to access
http://your.gallery.com/main.php?g2_controller=addviaemail.Addviaemailpage
Posts: 2
I too am geting the same error when trying to manually invoke the module bu enterung the URL http://mydomain.com/main.php?g2_controller=addviaemail.Addviaemailpage into my browser.
I can invoke the module by going to a page with the addviaemail block in the sidebar. I like the module and it seems to be working for me, but I really would rather cron the job. Page loads seem to be slow when using the block in my sidebars. Specific error code below.
***************************
Authentication Failure
Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.
Back to the Gallery
Error Detail -
Error (ERROR_REQUEST_FORGED)
in modules/core/classes/GalleryController.class at line 239 (GalleryCoreApi::error)
in main.php at line 243 (GalleryController::assertIsGenuineRequest)
in main.php at line 104
in main.php at line 88
System Information
Gallery version 2.3
PHP version 5.2.4 apache2handler
Webserver Apache/2.0.59 (Trustix Secure Linux/Linux) PHP/5.2.4
Database mysqli 5.1.22-rc-community
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux bickels.net 2.6.19.7-3tr #1 Tue Aug 21 12:21:25 GMT 2007 i686
Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 1.1.4322)
************
Any help is appreciated.
Posts: 364
This works for me; but, somebody smarter than I will need to explain what I've done and whether it is in some way not a good idea.
In AddviaemailHelper.class (found in modules/addviaemail/classes/) there is a section that starts with:
and ends with:
In that section I changed the last line (just before the curly brace) from:
to:
Posts: 1
Uccamera: mobile phone directly capture images into Gallery2
The attachment is J2ME application. outline --> offline, login and capture, You could find the picture :
http://ucgps.com/photo/main.php?g2_itemId=12291 in fewer seconds.
***********************************
http://ucgps.com/en
Posts: 3
I have commited a new version of Configure.inc. This resolved my problem with my module not working anymore. The error was a parameter I look for later on was getting blanked when selected POP as the server type.
Posts: 167
Is it possible to add HTML functionality?
This module would be taken to the next level if (most) of us could actually email stuff to it by using outlook, Windows smart phones, other html clients, etc.
I'd be happy to donate some cash to the dev if this actually worked...
Posts: 4342
I don't believe this module is under active development any more; also all the Gallery core developers are now working on Gallery3, so I'd say it's unlikely that anything new will be added to this module unless someone new steps in to take it on.
You could advertise for a developer in the marketplace section of this forum if you want to try to find someone to take it on under contract.
Posts: 167
I realize that this is dead.. but, is there a wildcard that I can set for email subjects?
Like IMAG* to import all emails that start with whatever letters I choose?
The anti spam feature is great.. but, it's not allowing me to do what I want :p
IMAG* would take IMAG001 or IMAG01 or IMAG0234, etc.
Thanks!
Posts: 3
Don't know exactly what this does either, but it works perfectly for iPhone for me.
Thanks!
Posts: 38
Still no luck, what so ever, in getting this plugin to function.
Posts: 1
I thought I would post my success story with this plugin after experiencing many of the same issues such as authentication errors and such.
My goal was to have a way to upload pictures to my site from my camera phone.
My server and versions are:
The email address I'm using is:
So Gallery Add Via Email settings are like so:
The subject was selected since it's the fastest I could type with a phone, I'd really like to not have a subject because I'm lazy, but this is ok.
As per the instructions, I used the manual test link. However, it could not run. I got the common authentication error issue as many of the previous users above: Error (ERROR_REQUEST_FORGED)
So I appended the URL with the session token. To do so, I viewed my page source and searched for g2_authToken. My manual test URL looks like:
That ran successfully. Now to set up the cron job. My server disabled wget and curl for cron jobs. So I created a php file like so:
I saved that file as cron.php and uploaded it to the pics directory on my server. I scheduled my cron job like so:
and presto - everything works as it should
Take a pic with my phone.
Add the subject: Ad
Send it to:
When the cron job runs, it pastes it into my Gallery.
I tested with the cron job running every minute, but for real life applications, I only need it to check once a day.
So hopefully that information will help some others who may be stuck. This is what worked for me.
Posts: 1
Hey... Did you ever get the html emails to work? Is there a snippet of code I can take to make this work? This finishes the process for me and allows family with an easy way to do "Mobile Uploads". Since our phones all send html emails the module can't digest them. This would be sooooo sweet.