Function ldap_sort() is deprecated And Notification Mails

Ask all your questions regarding OC 8.2 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
cuhbe
Newbie
Posts: 6
Joined: Wed Oct 15, 2014 4:45 pm
ownCloud version: 8.2.5
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.7

Function ldap_sort() is deprecated And Notification Mails

Postby cuhbe » Thu Jun 23, 2016 10:11 am

Hi all,
I have an issue after upgrading from OC 8.0.1 to 8.2.5.
The only thing not working is email notification after a public download.
Email notification when I share something works perfectly.

In OC logs I can read this :
Function ldap_sort() is deprecated at /usr/share/webapps/owncloud/apps/user_ldap/lib/ldap.php

I have replaced <IfModule mod_php5.c> with <IfModule mod_php7.c> in /usr/share/webapps/owncloud/.htaccess
but nothing is better.
I don't know if the error I can read in logs is linked to my notificatiosn emails problem but I am too noob actually to know what else to check to help resolving this issue.


Server configuration
Operating system: Archlinux
Web server: nginx
Database: mysql (Mariadb)
PHP version: 7.0.7
ownCloud version (see ownCloud admin page): 8.2.5
Updated from an older ownCloud or fresh install: update from 8.0.1 (respecting upgrade process)
ownCloud log (data/owncloud.log): Function ldap_sort() is deprecated at /usr/share/webapps/owncloud/apps/user_ldap/lib/ldap.php

Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): Nothing



If someone can help me, it would be very appreciated.

Thank you in advance.

cuhbe
Newbie
Posts: 6
Joined: Wed Oct 15, 2014 4:45 pm
ownCloud version: 8.2.5
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.7

Re: Function ldap_sort() is deprecated And Notification Mails

Postby cuhbe » Thu Jun 23, 2016 11:20 am

Just see that I also have this message in owncloud.log :


{"reqId":"xkyK2P43MzWO7V+sohw\/","remoteAddr":"","app":"core","message":"Error while running background job (class: OCA\\Activity\\BackgroundJob\\EmailNotificat ion, arguments: ): {\"Exception\":\"OC\\\\ServerNotAvailableException\",\"Message\":\"Connection to LDAP server could not be established\",\"Code\":0,\"Trace\": \"#0 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/apps\\\/user_ldap\\\/lib\\\/access.php(154): OCA\\\\user_ldap\\\\lib\\\\Connection->getConnectionResource()\\n#1 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php(217): OCA\\\\user_ldap\\\\lib\\\\Access->readAttribute('cn=username...', '')\ \n#2 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/apps\\\/user_ldap\\\/user_ldap.php(268): OCA\\\\user_ldap\\\\USER_LDAP->userExistsOnLDAP(Object(OCA\\\\user_ldap \\\\lib\\\\user\\\\User))\\n#3 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/lib\\\/private\\\/user\\\/manager.php(133): OCA\\\\user_ldap\\\\USER_LDAP->userExists( 'USERNAME')\\n#4 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/apps\\\/activity\\\/lib\\\/mailqueuehandler.php(209): OC\\\\User\\\\Manager->get('USERNAME') \\n#5 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/apps\\\/activity\\\/lib\\\/backgroundjob\\\/emailnotification.php(135): OCA\\\\Activity\\\\MailQueueHandler->se ndEmailToUser('MY USERNAME, My@mail...', 'fr', 'Europe\\\/Berlin', 1466673479)\\n#6 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/apps\\\/activity\\\/li b\\\/backgroundjob\\\/emailnotification.php(95): OCA\\\\Activity\\\\BackgroundJob\\\\EmailNotification->runStep(500, 1466673479)\\n#7 \\\/usr\\\/share\\\/webapp s\\\/owncloud\\\/lib\\\/private\\\/backgroundjob\\\/job.php(52): OCA\\\\Activity\\\\BackgroundJob\\\\EmailNotification->run(NULL)\\n#8 \\\/usr\\\/share\\\/webap ps\\\/owncloud\\\/lib\\\/private\\\/backgroundjob\\\/timedjob.php(53): OC\\\\BackgroundJob\\\\Job->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\\\\ Log))\\n#9 \\\/usr\\\/share\\\/webapps\\\/owncloud\\\/cron.php(145): OC\\\\BackgroundJob\\\\TimedJob->execute(Object(OC\\\\BackgroundJob\\\\JobList), Object(OC\ \\\Log))\\n#10 {main}\",\"File\":\"\\\/usr\\\/share\\\/webapps\\\/owncloud\\\/apps\\\/user_ldap\\\/lib\\\/connection.php\",\"Line\":170}","level":3,"time":"2016 -06-23T09:18:00+00:00"}
{"reqId":"xkyK2P43MzWO7V+sohw\/","remoteAddr":"","app":"PHP","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/modules\/mysql.so' - \/usr \/lib\/php\/modules\/mysql.so: cannot open shared object file: No such file or directory at Unknown#0","level":3,"time":"2016-06-23T09:18:00+00:00"



Seem to really be an issue with ldap and php but how to resolv it ?

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Function ldap_sort() is deprecated And Notification Mails

Postby RealRancor » Thu Jun 23, 2016 1:23 pm

The "function ldap_sort() is deprecated" message is fixed in oC 9.0.2:

https://github.com/owncloud/core/pull/23086
*gone*

cuhbe
Newbie
Posts: 6
Joined: Wed Oct 15, 2014 4:45 pm
ownCloud version: 8.2.5
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.7

Re: Function ldap_sort() is deprecated And Notification Mails

Postby cuhbe » Thu Jun 23, 2016 3:45 pm

I just upgraded to 8.2.5 to 9.0.2 and now I can't share any file.
When I clic on share button, the share panel open but load infinitly.
And nothing in owncloud.log.

I had a look here : https://github.com/owncloud/documentation/issues/2014
but don't know what to do with so much information ...

cuhbe
Newbie
Posts: 6
Joined: Wed Oct 15, 2014 4:45 pm
ownCloud version: 8.2.5
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.7

Re: Function ldap_sort() is deprecated And Notification Mails

Postby cuhbe » Thu Jun 23, 2016 3:50 pm

I have now this message in logs :


PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: cannot open shared object file: No such file or directory at Unknown#0


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.2”

Who is online

Users browsing this forum: No registered users and 1 guest