westlan-uk / mumbleServerView

A very small PHP/JSON app that shows a list of users connected to a Mumble server, based on MumPI.
GNU Lesser General Public License v3.0
3 stars 0 forks source link

Class 'Ice_InitializationData' not found #1

Open DNW-Donzi opened 10 years ago

DNW-Donzi commented 10 years ago

Hi :) we have an error:

PHP Fatal error:  Class 'Ice_InitializationData' not found in /home/xxx/public_html/viewer/classes/ServerInterface.php on line 45

Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u7 mod_ssl/2.2.22 OpenSSL/1.0.1e phpICE 3.4.2 murmur 1.2.4 and 1.2.4-snapshots

MumPI and phpMumbleAdmin are working great

regards :+1:

jamesread commented 10 years ago

Hi! Thanks for reporting the issue, looking into it right now.

jamesread commented 10 years ago

Hi. So the error message indictates that you have the Ice extension loaded, but either you are running an old version and the code is borking out (bug), or you are running a version that I have not seen before.

Please could you help me debug this problem by creatating a file called "versionTest.php" and adding this to the contents of the file;

<?php var_dump(Ice_intVersion()); ?>

This will either tell us what version of the Ice extension you have, or it will throw another error ;) Thanks for reporting the issue, please work with me to help fix it for you and future users ;)

DNW-Donzi commented 10 years ago

Its a default deb-wheezy installation :)

php.ini:

extension = /usr/lib/php5/20100525/IcePHP.so
include_path = ".:/usr/share/php:/usr/share/Ice-3.4.2/php/lib"
ice.slice = "-I/usr/share/slice /home/xxx/server/ice/Murmur.ice"

versionTest.php

int(30402)

dpkg -l http://my.despe.de/np/index.php?id=505a1ce66f

murmur have a extra installation, the mumble-server from debian (1.2.3) for fallbacks only

jamesread commented 10 years ago

hmm, I'm just looking at MumPi (from which this project is downstream - https://github.com/Kissaki/MumPI ) and their init code is identical. Their class contains quite a lot of rubbish which this project deleted, but I wonder if quite simply you need to include "Ice.php" to work on Debian Weezy (see: https://github.com/Kissaki/MumPI/blob/master/classes/ServerInterface.php )

I'll be embarrased if this is the case, but could you just add the line;

require_once 'Ice.php';

Into your settings.php file please? Meanwhile, I'm installing Debian Weezy to try to reproduce the problem - I don't use Debian that often (I use Fedora).

DNW-Donzi commented 10 years ago

added the Ice.php and a new error

PHP Fatal error:  Class 'Murmur_MetaPrxHelper' not found in /home/xxx/public_html/viewer/classes/ServerInterface.php on line 57

dont be hurry ;)

jamesread commented 10 years ago

Right! I at least found why this problem has not come up before - I've only tested with Ice version 3.3 and you are using Ice version 3.4! There is a whole branch of code that I need to check through. I'm sure I just missed something that has been fixed upstream, give me a few hours and I'll forward-port their changes.

Thanks again for reporting and commenting!