Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ranksystem disconnects with PHP 7 #69

Closed
Newcomer1989 opened this issue Jul 26, 2016 · 3 comments
Closed

Ranksystem disconnects with PHP 7 #69

Newcomer1989 opened this issue Jul 26, 2016 · 3 comments
Labels
accepted (on ToDo) This feature request is accepted and is on our ToDo-list. Question

Comments

@Newcomer1989
Copy link
Owner

Newcomer1989 commented Jul 26, 2016

With PHP 7 is the package php7.0-xml required. Without this, the TS3 PHP Framework will not work correctly.

The Bot will start and bind short a connection to the teamspeak server. But it will directly disconnects.
The Ranksystem logfile will looks like this:

2016-07-26 22:45:42.444377   INFO      Connect to TS3 Server (Address: "your.domain" Voice-Port: "9987" Query-Port: "10011").
2016-07-26 22:45:42.444277   INFO        Ranksystem Version: 1.1.0
2016-07-26 22:45:42.443849   INFO        No newer version detected; Database check finished.
2016-07-26 22:45:42.443657   INFO      Check Ranksystem database for updates.
2016-07-26 22:45:42.435976   INFO      Initialize Bot...

Try to install this:
sudo apt-get install php7.0-xml

Its also possible you get this error message or found this in your webserver log:
PHP Fatal error: Uncaught Error: Call to undefined function utf8_encode() in /var/www/html/rs/ts3_lib/Helper/String.php:475

@mightyBroccoli
Copy link

I also had this error, or I could even be the one who reported it in the first place, not sure.

It is working with the latest php Version on my Debian maschine

Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie

PHP 7.0.11-1dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.11-1
dotdeb+8.1, Copyright (c) 1999-2016, by Zend Technologies

I have these additional packs installed.

php7.0 install
php7.0-cli install
php7.0-common install
php7.0-curl install
php7.0-intl install
php7.0-json install
php7.0-mbstring install
php7.0-mcrypt install
php7.0-mysql install
php7.0-opcache install
php7.0-readline install
php7.0-xml install
php7.0-zip install

It is possible that you need some more modules if your are not using fpm something like libapache2-mod-php7.0, but basically this should work. It works for me.

@Newcomer1989
Copy link
Owner Author

Newcomer1989 commented Oct 8, 2016

A check for this will come with release 1.1.2 (on install.php)

@Newcomer1989 Newcomer1989 added the accepted (on ToDo) This feature request is accepted and is on our ToDo-list. label Oct 8, 2016
@Newcomer1989
Copy link
Owner Author

release 1.1.2 is out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted (on ToDo) This feature request is accepted and is on our ToDo-list. Question
Projects
None yet
Development

No branches or pull requests

2 participants