mkweb / pupnp

PHP UPnP MediaGUI
15 stars 5 forks source link

Call to undefined function at\mkweb\upnp\_() #6

Open medwyn opened 10 years ago

medwyn commented 10 years ago

Just installed this on MacBook Air running Apache/2.2.26 (Unix) DAV/2 PHP/5.4.24 mod_ssl/2.2.26 OpenSSL/0.9.8y

When I access the site at http://[myIPAaddress]/pupnp/ however, I get a PHP error:

Fatal error: Call to undefined function at\mkweb\upnp_() in /install-path/pupnp-master/pupnp/src/at/mkweb/upnp/Config.php on line 212

The code in this section is as per below. Any pointers as to what my issue could be?:

209: // Fill here because method calls (gettext) are not valid in property declaration 210: self::$values = array( 211: 'hostname' => (Object)array( 212: 'name' => ('Hostname'), 213: 'desc' => _('Hostname or IP'), 214: 'type' => self::TYPE_STR, 215: 'null' => true, 216: 'hidden' => true,

mkweb commented 10 years ago

Hi medwyn, this means your system is missing the PHP gettext extension for translations.

On linux systems this package is called "php5-intl". I don't know how on your mac but it should be similar.

medwyn commented 10 years ago

Thanks for the help with this - I finally managed to get this up and running.

So I ran cronjob.php (takes a few minutes to run it seems) then accessed the main web application.. however it only seems to pick up 1 of my devices.

I have two, sometimes 3 Twonky servers on my network as well as a Samsung TV and Cambridge Audio 752BD media renderers.

All of the other controller apps I have used seem to pick these up with out any problems.

Can you provide any assistance in identifying why this may be?

Thanks

Medwyn

On 31 May 2014 12:42, Mario Klug notifications@github.com wrote:

Hi medwyn, this means your system is missing the PHP gettext extension for translations.

On linux systems this package is called "php5-intl". I don't know how on your mac but it should be similar.

— Reply to this email directly or view it on GitHub https://github.com/mkweb/pupnp/issues/6#issuecomment-44746080.