Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: After update to 7.5 Dropbox gone Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
joerg.giencke
Newbie
Newbie
Avatar

Joined: 28 February 2015
Location: Germany
Online Status: Offline
Posts: 12
Posted: 29 March 2015 at 11:16am | IP Logged Quote joerg.giencke

Hi,

after updating from 7.4 to 7.5 everything works fine.

BUT - the Dropbox integration is gone - AND - the 'Social Networks' tab in administration is just blank between '... each social network app' and 'Save'

???
Back to Top View joerg.giencke's Profile Search for other posts by joerg.giencke Visit joerg.giencke's Homepage
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 30 March 2015 at 7:46am | IP Logged Quote Alex

Please try
http://www.afterlogic.com/download/plugins/social-auth-plugin.zip

Unpack social-auth folder in data/plugins of your installation.

settings folder contains changes to be applied to config.php and settings.xml (data/settings folder of your installation).

You may remove the plugins you don't need (leave just

     'plugins.social-auth' => true,
     'plugins.social-auth.connectors' => array(
          'google',
          'dropbox',
     ),

The same way, add only those entries to settings.xml which you need (Google and Dropbox).

With Google, you'll need to configure Client ID, Client Secret, and API Key. Dropbox is fine with just ID and secret, no special API key. Also remove 'auth' from Scopes (you'll need just filestorage, not auth capability).

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
joerg.giencke
Newbie
Newbie
Avatar

Joined: 28 February 2015
Location: Germany
Online Status: Offline
Posts: 12
Posted: 30 March 2015 at 12:19pm | IP Logged Quote joerg.giencke

Changing config.php and settings.xml made the lost social settings reappear in Admin Panel.

BUT - adding the social-auth pluging crashes WebMail (white screen no messages). Deleting the plugin reanimates WebMail.
Back to Top View joerg.giencke's Profile Search for other posts by joerg.giencke Visit joerg.giencke's Homepage
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 31 March 2015 at 11:17am | IP Logged Quote Alex

Oops, looks like to make it work you'll also need these plugins:

http://www.afterlogic.com/wiki/Integrate_Files_storage_with_Google_Drive_(WebMail_Plugins)
http://www.afterlogic.com/wiki/Integrate_Files_storage_with_Dropbox_(WebMail_Plugins)

In the next release we'll put everything needed to have attachment capability on Compose screen into the installation package.

However, even their absence shouldn't crash anything.

Do you get anything in the logs?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
joerg.giencke
Newbie
Newbie
Avatar

Joined: 28 February 2015
Location: Germany
Online Status: Offline
Posts: 12
Posted: 03 April 2015 at 3:27am | IP Logged Quote joerg.giencke

Added and configured everything according to your instructions: white screen.

'plugins.social-auth' => false - WebMail's back again.

This is all the log (Debug) says with 'plugins.social-auth' => true:

Code:

[10:21:21.54][3974d877] [GET][ip:192.168.1.20] /
[10:21:21.54][3974d877] POST > []
[10:21:21.54][3974d877]
[10:21:21.54][3974d877] DB(PDO/mysql) : start connect to webmail_5@localhost
[10:21:21.55][3974d877] DB : PDO(mysql:dbname=webmail_5;host=localhost;charset=utf8)
[10:21:21.56][3974d877] DB : connected to webmail_5@localhost
[10:21:21.56][3974d877] DB[1] > SELECT `id_domain`, `id_tenant`, `disabled`, `name`, `url`, `override_settings`, `is_internal`, `is_default_for_tenant`, `site_name`, `lang`, `def_user_timezone`, `def_user_timeformat`, `def_user_dateformat`, `allow_registration`, `allow_pass_reset`, `allow_webmail`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_auth`, `mail_out_login`, `mail_out_pass`, `mail_out_ssl`, `mail_out_method`, `check_interval`, `skin`, `msgs_per_page`, `allow_change_interface_settings`, `allow_change_account_settings`, `allow_users_add_acounts`, `allow_new_users_register`, `allow_open_pgp`, `layout`, `xlist`, `use_threads`, `allow_contacts`, `contacts_per_page`, `global_addr_book`, `allow_calendar`, `cal_show_weekends`, `cal_workday_starts`, `cal_workday_ends`, `cal_show_workday`, `cal_week_starts_on`, `cal_default_tab`, `allow_files`, `allow_helpdesk`, `default_tab` FROM awm_domains WHERE `url` = 'webmail.jgid.loc'
[10:21:21.57][3974d877] HOOK > CSocialAuthPlugin->PluginApiAppData
[10:21:21.58][3974d877] DB[2] > SELECT `id_domain`, `id_tenant`, `disabled`, `name`, `url`, `override_settings`, `is_internal`, `is_default_for_tenant`, `site_name`, `lang`, `def_user_timezone`, `def_user_timeformat`, `def_user_dateformat`, `allow_registration`, `allow_pass_reset`, `allow_webmail`, `mail_protocol`, `mail_inc_host`, `mail_inc_port`, `mail_inc_ssl`, `mail_out_host`, `mail_out_port`, `mail_out_auth`, `mail_out_login`, `mail_out_pass`, `mail_out_ssl`, `mail_out_method`, `check_interval`, `skin`, `msgs_per_page`, `allow_change_interface_settings`, `allow_change_account_settings`, `allow_users_add_acounts`, `allow_new_users_register`, `allow_open_pgp`, `layout`, `xlist`, `use_threads`, `allow_contacts`, `contacts_per_page`, `global_addr_book`, `allow_calendar`, `cal_show_weekends`, `cal_workday_starts`, `cal_workday_ends`, `cal_show_workday`, `cal_week_starts_on`, `cal_default_tab`, `allow_files`, `allow_helpdesk`, `default_tab` FROM awm_domains WHERE `url` = 'webmail.jgid.loc'
[10:21:21.59][3974d877] DB : disconnect from webmail_5@localhost
Back to Top View joerg.giencke's Profile Search for other posts by joerg.giencke Visit joerg.giencke's Homepage
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 03 April 2015 at 4:41am | IP Logged Quote Alex

Still no clue.. I think the issue on the client side (most likely JS error). In all tests it's working, have no idea what's so specific with your browser/installation. Try to debug JS part, it may show where it crashes on the client.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
joerg.giencke
Newbie
Newbie
Avatar

Joined: 28 February 2015
Location: Germany
Online Status: Offline
Posts: 12
Posted: 03 April 2015 at 1:47pm | IP Logged Quote joerg.giencke

plugin.php, line 554:
Code:

error_reporting(E_ALL); // ADDED TO GET DEBUG INFO
call_user_func_array($mHookCallbak, is_array($aArg) ? $aArg : array());

Fatal error: Using $this when not in object context in [...]webmail.jgid.de\httpdocs\data\plugins\social-auth\index.php on line 64:
Code:

$this->aConnectors[] = $sKey;

So, there is where it crashes, $sKey being 'dropbox' at that time.

And, btw, that code there never ever worked because the (pretty much useless) *closure* refers to $this - $this is, of course, undefined within the closure's scope. Anyway, this works
Code:

foreach ($aSocials as $sKey => $oSocial) {
     if ($oSocial->SocialAllow && $oSocial->IssetScope('auth')) {
          $this->aConnectors[] = $sKey;
     }
}

But that doesn't make the plugin work. It just avoids crashing and adds a cryptic link 'PLUGIN_SOCIAL_AUTH/GOOGLE_LOGIN' to the login screen. No 'Dropbox' in the compose screen.

And since 'Edit in new window' doesn't work properly either (Chrome 41: Okay, Firefox 37: blank screen unless one presses F5) I'd like to have 7.4 back. Are there any links to older versions?

Back to Top View joerg.giencke's Profile Search for other posts by joerg.giencke Visit joerg.giencke's Homepage
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 06 April 2015 at 10:31am | IP Logged Quote Alex

The previous version is no longer available. Sorry for all the trouble with Dropbox integration, it depends on some third-party development, we're trying to make it less dependent on it now. The next version will become in a week or so.

As for Firefox "can't open in a new window", it's Firefox bug (appeared in FF37). But it's easy to get worked around with

'labs.cache-ctrl' => false,

in config.php

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
joerg.giencke
Newbie
Newbie
Avatar

Joined: 28 February 2015
Location: Germany
Online Status: Offline
Posts: 12
Posted: 06 April 2015 at 10:58am | IP Logged Quote joerg.giencke

Hi Alex,

thanks for your reply.

There's one thing I do not understand: In an earlier post you wrote "In all tests it's working ...". Well, I showed that - at least in the published version - it can never work due to poor programming (referencing $this in a closure). And that, by the way, is AfterLogic code, not third-party.

So, how come you say it's all working when it's impossible?

Regards,
Jörg
Back to Top View joerg.giencke's Profile Search for other posts by joerg.giencke Visit joerg.giencke's Homepage
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 06 April 2015 at 12:28pm | IP Logged Quote Alex

Perhaps the zip package version was built in another way. Version for testing and resulting zip are assembled a bit differently and maybe older version of some files ended up in the package (while they were ok in the version for testing). Not sure if it's was exactly so or not, just my guess. The package building process is being heavily updated now due to significant portions of third-party code to be incorporated and the entire process of seems not perfect yet. We're optimizing it now.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 06 April 2015 at 1:04pm | IP Logged Quote Alex

Jörg,

Quote:
$this - $this is, of course, undefined within the closure's scope.


I got explanation from the developer of this code, I was wrong. This thing ($this in closures) is rather new for PHP.

PHP 5.3 (which we still support) indeed does not have it, it was added later. The PHP version on testing server is newer and that's why it behaves differently there.

We'll make sure to have this working for PHP 5.3. Thanks!

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide