Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Data transfer has failed, probably due to Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sony3002
Newbie
Newbie


Joined: 18 October 2012
Location: India
Online Status: Offline
Posts: 2
Posted: 18 October 2012 at 6:30am | IP Logged Quote sony3002

i take a new mail for sending mail, type the message and press the send button,
on top it gives me a visual error
"Data transfer has failed, probably due to server error. Please contact system administrator."

but the mail is already send to the email id, but the message window is still there , it does not close

when i look in to the apache error log file, i see this exception printing ...

Code:

[Thu Oct 18 16:36:48 2012] [error] [client 122.166.228.48] PHP Fatal error:  Uncaught exception 'ErrorException' with message 'include(/var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/Auth/Backend/Helper.php): failed to open stream: Permission denied' in /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php:15\nStack trace:\n#0 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php(15): exception_error_handler(2, 'include(/var/ww...', '/var/www/webuse...', 15, Array)\n#1 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php(15): Libraries_autoload()\n#2 [internal function]: Libraries_autoload('afterlogic_DAV_...')\n#3 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/common/managers/contacts/storages/sabredav/storage.php(116): spl_autoload_call('afterlogic_DAV_...')\n#4 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/common/managers/contacts/storages/sabredav/storage.php(1114): CApiContactsSab in /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php on line 15, referer: http://mytechnologies.com/webmail/webmail.php

[Thu Oct 18 16:40:29 2012] [error] [client 122.166.228.48] PHP Fatal error:  Uncaught exception 'ErrorException' with message 'include(/var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/Auth/Backend/Helper.php): failed to open stream: Permission denied' in /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php:15\nStack trace:\n#0 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php(15): exception_error_handler(2, 'include(/var/ww...', '/var/www/webuse...', 15, Array)\n#1 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php(15): Libraries_autoload()\n#2 [internal function]: Libraries_autoload('afterlogic_DAV_...')\n#3 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/common/managers/contacts/storages/sabredav/storage.php(116): spl_autoload_call('afterlogic_DAV_...')\n#4 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/common/managers/contacts/storages/sabredav/storage.php(762): CApiContactsSabr in /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php on line 15, referer: https://mytechnologies.com/webmail/webmail.php

[Thu Oct 18 16:41:15 2012] [error] [client 122.166.228.48] PHP Fatal error:  Uncaught exception 'ErrorException' with message 'include(/var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/Auth/Backend/Helper.php): failed to open stream: Permission denied' in /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php:15\nStack trace:\n#0 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php(15): exception_error_handler(2, 'include(/var/ww...', '/var/www/webuse...', 15, Array)\n#1 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php(15): Libraries_autoload()\n#2 [internal function]: Libraries_autoload('afterlogic_DAV_...')\n#3 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/common/managers/contacts/storages/sabredav/storage.php(116): spl_autoload_call('afterlogic_DAV_...')\n#4 /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/common/managers/contacts/storages/sabredav/storage.php(1114): CApiContactsSab in /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/autoload.php on line 15, referer: https://mytechnologies.com/webmail/webmail.php



please help
regards

Sony
Back to Top View sony3002's Profile Search for other posts by sony3002
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 19 October 2012 at 1:28am | IP Logged Quote Igor

You need to confirm that the file /var/www/webuser/data/www/mytechnologies.com/webmail/libraries/afterlogic/DAV/Auth/Backend/Helper.php is indeed in place, and that it has sufficient permission for accessing it by web server.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
sony3002
Newbie
Newbie


Joined: 18 October 2012
Location: India
Online Status: Offline
Posts: 2
Posted: 21 October 2012 at 10:55pm | IP Logged Quote sony3002

thanks ,
problem fixed,
only that files permission was changed.
Back to Top View sony3002's Profile Search for other posts by sony3002
 
gert.dekeyzer
Newbie
Newbie


Joined: 14 August 2013
Location: Belgium
Online Status: Offline
Posts: 4
Posted: 04 September 2013 at 5:35am | IP Logged Quote gert.dekeyzer

I've the same problem.
How can I change the file permission?

Gert
Back to Top View gert.dekeyzer's Profile Search for other posts by gert.dekeyzer
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 04 September 2013 at 5:37am | IP Logged Quote Igor

That depends on what kind of filesystem access you have. If there's SSH access, you're going to use chmod command; or chown if you'd like to change file ownership according to webserver user. With FTP access, FTP clients usually allow for setting file access permissions.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
arash
Newbie
Newbie
Avatar

Joined: 09 September 2013
Location: Iran
Online Status: Offline
Posts: 3
Posted: 09 September 2013 at 7:16am | IP Logged Quote arash

Hi,
I've got same issue but this time it's not about permission.
please look at following apache LOG.There is something about passing boolean parameter instead of PDO reference variable :

[Mon Sep 09 18:14:52 2013] [error] [client xx.xx.xx.xx] PHP Catchable fatal error: Argument 1 passed to afterlogic\\DAV\\Auth\\Backend\\Helper::__construct() must be an instance of PDO, boolean given, called in /opt/webmail/libraries/afterlogic/common/managers/maincontacts/storages/sabredav/storage.php on line 114 and defined in /opt/webmail/libraries/afterlogic/DAV/Auth/Backend/Helper.php on line 9, referer: http://webmail.x.com/

Other info : OS Fedora 14 X64 / postfix mailserver with dovecot imap/pop3 layer / SSL/TLS auth on port 993/25

Back to Top View arash's Profile Search for other posts by arash
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 September 2013 at 3:03am | IP Logged Quote Igor

Did you use the built-in installer, the one available at http://yourhost/webmail/install/ ? It should be used to setup the product and ensure the environment meets the requirements. In your case, PDO extension for PHP is probably not found, and the installer would warn of that.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
arash
Newbie
Newbie
Avatar

Joined: 09 September 2013
Location: Iran
Online Status: Offline
Posts: 3
Posted: 10 September 2013 at 3:52am | IP Logged Quote arash

Hi,
Thanx for reply.And I'm sure I've got the pdo extension for 2 reason
1) Yes,I tried and copy back the install directory and it gives me green OK about mysql-pdo extension
2) I used yum install php-pdo to install it or upgrade it just in case and it said that I've got the final release.

So,something may happends here which I'd like you help me with,please.I just customized the mysql storage and socket location in my OS.
I configure php.ini to use new socket address.In some project on my server for using PDO I have to add this to PDO connection string in order to make it work :
mysql:unix_socket= new mysql socket location

please let me know where should I add it in your files

Thanx,
Arash
Back to Top View arash's Profile Search for other posts by arash
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 10 September 2013 at 3:56am | IP Logged Quote Igor

You can try putting that in host field, it should be able to work with sockets as well as with hosts. Apart from that, no other ideas here.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
arash
Newbie
Newbie
Avatar

Joined: 09 September 2013
Location: Iran
Online Status: Offline
Posts: 3
Posted: 14 September 2013 at 1:45am | IP Logged Quote arash

Hi,
As you mentioned I tried to use host field.Base on line 245 as I understand the socket should be separate from host by '/' .But unfortunately it didn't work.

So,I tried and add some lines to your code like this :
$sDbSocket = "/opt/db/mysql.sock"; //my customized socket path
$oPdo = false;
if (class_exists('PDO'))
{
try
{
$sUnixSocket = "mysql:unix_socket=".$sDbSocket.";";
$oPdo = new PDO($sUnixSocket . 'mysql:dbname='.$sDbName.';host='.$sDbHost, $sDbLogin, $sDbPassword);
...

Even after that the connection became OK,but some error still remains.I tried to understand the problem using your log system and apache error log,which non of them show any errors.After that using firebug I notice the problem is in PDO selecting and using the database.Therefore I add this line to above code and everything become OK now :
$oPdo->exec('USE '.$sDbName);
Back to Top View arash's Profile Search for other posts by arash
 

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