Chefkeks / osTicket-Addons

osTicket Addons
7 stars 3 forks source link

Access level to Net_LDAP2_RootDSE::__construct() must be public (as in class PEAR) #7

Open J1mbo opened 7 years ago

J1mbo commented 7 years ago

Thank you for writing this utility.

New install - Ubuntu 16.04, osTicket 1.10, MySQL 5.7.17, PHP 5.6.29-1. LDAP Authentication and Lookup plugin enabled OK.

However the initial population fails. Appears to be a couple of issues. Apache2 error logs:

[Fri Jan 20 14:44:25.413588 2017] [:error] [pid 32607] [client 192.168.1.10:55494] PHP Notice: Use of undefined constant SQLITE3_OPEN_READONLY - assumed 'SQLITE3_OPEN_READONLY' in /var/www/tickets/ldap_user_info/config_ui.php on line 13 [Fri Jan 20 14:44:25.413644 2017] [:error] [pid 32607] [client 192.168.1.10:55494] PHP Stack trace: [Fri Jan 20 14:44:25.413655 2017] [:error] [pid 32607] [client 192.168.1.10:55494] PHP 1. {main}() /var/www/tickets/ldap_user_info/config_ui.php:0 [Fri Jan 20 14:44:33.337756 2017] [:error] [pid 1466] [client 192.168.1.10:55493] PHP Notice: Use of undefined constant SQLITE3_OPEN_READONLY - assumed 'SQLITE3_OPEN_READONLY' in /var/www/tickets/ldap_user_info/config_ui.php on line 13, referer: http://192.168.1.11/tickets/ldap_user_info/config_ui.php [Fri Jan 20 14:44:33.337788 2017] [:error] [pid 1466] [client 192.168.1.10:55493] PHP Stack trace:, referer: http://192.168.1.11/tickets/ldap_user_info/config_ui.php [Fri Jan 20 14:44:33.337795 2017] [:error] [pid 1466] [client 192.168.1.10:55493] PHP 1. {main}() /var/www/tickets/ldap_user_info/config_ui.php:0, referer: http://192.168.1.11/tickets/ldap_user_info/config_ui.php PHP Fatal error: Access level to Net_LDAP2_RootDSE::__construct() must be public (as in class PEAR) in /var/www/tickets/ldap_user_info/Net/LDAP2/RootDSE.php on line 238 PHP Stack trace: PHP 1. {main}() /var/www/tickets/ldap_user_info/update_user_info.php:0 PHP 2. require_once() /var/www/tickets/ldap_user_info/update_user_info.php:11 PHP Warning: file_get_contents(ost_last_exec_user_info.log): failed to open stream: No such file or directory in /var/www/tickets/ldap_user_info/smtp.php on line 20 PHP Stack trace: PHP 1. {main}() /var/www/tickets/ldap_user_info/smtp.php:0 PHP 2. file_get_contents() /var/www/tickets/ldap_user_info/smtp.php:20

Venice-89 commented 6 years ago

Same problem on my fresh system. Ubuntu 16.04 but with PHP 7