Author |
|
sony3002 Newbie
Joined: 18 October 2012 Location: India
Online Status: Offline Posts: 2
|
Posted: 18 October 2012 at 6:30am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 19 October 2012 at 1:28am | IP Logged
|
|
|
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 |
|
|
sony3002 Newbie
Joined: 18 October 2012 Location: India
Online Status: Offline Posts: 2
|
Posted: 21 October 2012 at 10:55pm | IP Logged
|
|
|
thanks ,
problem fixed,
only that files permission was changed.
|
Back to Top |
|
|
gert.dekeyzer Newbie
Joined: 14 August 2013 Location: Belgium
Online Status: Offline Posts: 4
|
Posted: 04 September 2013 at 5:35am | IP Logged
|
|
|
I've the same problem.
How can I change the file permission?
Gert
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 04 September 2013 at 5:37am | IP Logged
|
|
|
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 |
|
|
arash Newbie
Joined: 09 September 2013 Location: Iran
Online Status: Offline Posts: 3
|
Posted: 09 September 2013 at 7:16am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 10 September 2013 at 3:03am | IP Logged
|
|
|
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 |
|
|
arash Newbie
Joined: 09 September 2013 Location: Iran
Online Status: Offline Posts: 3
|
Posted: 10 September 2013 at 3:52am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 10 September 2013 at 3:56am | IP Logged
|
|
|
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 |
|
|
arash Newbie
Joined: 09 September 2013 Location: Iran
Online Status: Offline Posts: 3
|
Posted: 14 September 2013 at 1:45am | IP Logged
|
|
|
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 |
|
|