mkweb / pupnp

PHP UPnP MediaGUI
15 stars 5 forks source link

[error] PHP Fatal error: Call to undefined function pr() #2

Open laplasz opened 10 years ago

laplasz commented 10 years ago

[error] PHP Fatal error: Call to undefined function pr() in /var/www/pupnp/src/at/mkweb/upnp/backend/UPnP.php on line 104 [error] PHP Fatal error: Call to undefined function pr() in /var/www/pupnp/src/at/mkweb/upnp/backend/UPnP.php on line 149

it seems that these lines should be commented out. Thanks, Balazs

mkweb commented 10 years ago

Thanks Balaszs, it's a strange one, this function is defined in https://github.com/mkweb/pupnp/blob/master/src/at/mkweb/upnp/init.php#L20 and I've never seen this error before.

Can you please tell some more information about the system you're using, webserver version, php version, etc...?

And sure, you can savely comment them out, they're just here to print debug output starting the cronjob.php in the browser.

Thanks in advance Mario

laplasz commented 10 years ago

Hi Mario!

PHP Version 5.4.4-14+deb7u9 Server version: Apache/2.2.22 (Debian)

I am not familiar with php but if I define the namespace for pr() like \at\mkweb\upnp\pr() - it works. What do you think?

Thanks, Balazs

mkweb commented 10 years ago

Just wanted to let you know that I've not forgotten about your issues. Unfortunately I'm very busy at the moment and I'll try to check them over this weekend.

arthurlutz commented 10 years ago

same error here

mkweb commented 10 years ago

Took the easy way and removed the function. It's written quickly when needed and useless for the application.

Should work now.