art1c0 / mooha

Automatically exported from code.google.com/p/mooha
0 stars 0 forks source link

Error on sync #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I'm trying to use Mooha on a FreeBSD Server with PHP5.3, MySQL 5.1 and
Lighttpd 1.4.26.

Installation is easy and so far there were no problems. But when I try to
sync my addressbook from thunderbird through Funambol-Addon with Mooha I'm
getting PHP-Errors.

It says:

PHP Warning:  file_put_contents(): Filename cannot be empty in
/path/to/weberserver/sync/inc/WbxmlHelper.php on line 164
PHP Warning:  unlink(): No such file or directory in
/path/to/weberserver/sync/inc/WbxmlHelper.php on line 169
PHP Fatal error:  SyncmlException: Request is empty in
/path/to/weberserversync/inc/MoohaServer.php on line 306
 in /path/to/weberserver/sync/config.php on line 58

Any ideas?

Original issue reported on code.google.com by osikt...@googlemail.com on 18 Apr 2010 at 1:39

GoogleCodeExporter commented 9 years ago
It seems that your http-server configuration does not allow to create a 
temporary file.
This is required by command-line WBXML decoder.
Maybe your "tmp" directory is not writable or there is some permissions 
misconfiguration.
At line 163 in WbxmlHelper.php you can see "$file = tempnam('tmp', 'sml');"
PHP documentation says that tempnam function does following:
Creates a file with a unique filename, with access permission set to 0600, in 
the specified directory. If the 
directory does not exist, tempnam() may generate a file in the system's 
temporary directory, and return the 
name of that.

Original comment by artico.b...@gmail.com on 21 May 2010 at 6:54

GoogleCodeExporter commented 9 years ago
Hi

thank you for your help. I got it working now. Time to shutdown my Funambol 
server
which was just to big for me. ;)

You were right. /tmp was not writable by user www.

Best regards

Osik

Original comment by osikt...@googlemail.com on 24 May 2010 at 3:15