bwssytems / domuslink

web-based frontend for Heyu
http://domus.link.co.pt/
1 stars 1 forks source link

HTTP error 500 after starting heyu #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. display home screen
2. start heyu with domuslink
3. error HTTP 500

What is the expected output? What do you see instead?

[Tue Dec 25 11:31:19 2012] [error] [client 192.168.0.7] PHP Fatal error:  Call 
to a member function getModuleImage() on a non-object in 
/var/www/domuslink/lib/classes/location.class.php on line 139, referer: 
http://192.168.0.2/domuslink/index.php?page=domus_home_page
[Tue Dec 25 11:36:14 2012] [error] [client 192.168.0.7] PHP Fatal error:  Call 
to a member function getModuleImage() on a non-object in 
/var/www/domuslink/lib/classes/location.class.php on line 139

What version of Heyu and domus.Link are you using? On what operating
system?

Linux raspberrypi 3.2.27+ #307 PREEMPT Mon Nov 26 23:22:29 GMT 2012 armv6l 
GNU/Linux

PHP 5.4.4-10 (cli) (built: Nov 24 2012 16:50:20) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

Please provide any additional information below.

after stopping heyu, display re-works

pi@raspberrypi ~ $ heyu -c /etc/heyu/x10.conf stop
I could not kill heyu.relay.ttyUSB0 (pid = 8722)
pi@raspberrypi ~ $ sudo heyu -c /etc/heyu/x10.conf stop
pi@raspberrypi ~ $ ls -lrth /dev/ttyUSB0
crw-rw-rwT 1 root dialout 188, 0 déc.  25 11:27 /dev/ttyUSB0
pi@raspberrypi ~ $

Original issue reported on code.google.com by smaucourt on 25 Dec 2012 at 10:43

GoogleCodeExporter commented 9 years ago
after this manual "stop", i refreshed my domuslink home page.. re-click on 
"start" and it's working now.

Original comment by smaucourt on 25 Dec 2012 at 10:45

GoogleCodeExporter commented 9 years ago
Just  to make sure, do you have a modules file in the domus.link/db directory? 

Brad

Original comment by bwsamuels@gmail.com on 25 Dec 2012 at 2:27

GoogleCodeExporter commented 9 years ago
pi@raspberrypi /var/www/domuslink/db $ ls -lrth
total 12K
-rwxrwxr-x 1 www-data www-data    0 déc.  24 14:58 userdb
-rw-r--r-- 1 www-data www-data 2,9K déc.  24 18:15 urlMap.cache
-rw-r--r-- 1 www-data www-data 1,6K déc.  25 12:54 moduletypes
-rw-r--r-- 1 www-data www-data 1,5K déc.  25 12:54 groups
pi@raspberrypi /var/www/domuslink/db $ 

Original comment by smaucourt on 25 Dec 2012 at 7:33

GoogleCodeExporter commented 9 years ago
I see there is no aliasmap file. Did you create any aliases for your lights?

Brad

Original comment by bwsamuels@gmail.com on 25 Dec 2012 at 7:41

GoogleCodeExporter commented 9 years ago
yes, my x10.conf file contains:

alias freebox A1
alias tv A2
alias home_cinema A1,2

Original comment by smaucourt on 26 Dec 2012 at 12:23

GoogleCodeExporter commented 9 years ago
Is there an aliasmap file in the domus.link/db directory now? There should be 
if you have aliases.

Brad

Original comment by bwsamuels@gmail.com on 26 Dec 2012 at 2:02

GoogleCodeExporter commented 9 years ago
drwxrwxr-x 2 www-data www-data 4,0K déc.  24 18:15 db
pi@raspberrypi /var/www/domuslink $ cd db
pi@raspberrypi /var/www/domuslink/db $ ls
groups  moduletypes  urlMap.cache  userdb
pi@raspberrypi /var/www/domuslink/db $ ls -lrth
total 12K
-rwxrwxr-x 1 www-data www-data    0 déc.  24 14:58 userdb
-rw-r--r-- 1 www-data www-data 2,9K déc.  24 18:15 urlMap.cache
-rw-r--r-- 1 www-data www-data 1,8K déc.  27 00:33 moduletypes
-rw-r--r-- 1 www-data www-data 1,6K déc.  27 00:33 groups
pi@raspberrypi /var/www/domuslink/db $ 

Original comment by smaucourt on 27 Dec 2012 at 11:44

GoogleCodeExporter commented 9 years ago
i'm trying with chmod 777 to db folder

Original comment by smaucourt on 27 Dec 2012 at 11:44

GoogleCodeExporter commented 9 years ago
[Thu Dec 27 12:45:52 2012] [error] [client 192.168.0.7] PHP Fatal error:  Call 
to a member function getModuleImage() on a non-object in 
/var/www/domuslink/lib/classes/location.class.php on line 139, referer: 
http://192.168.0.2/domuslink/index.php?page=domus_status_page&daemon=start

Original comment by smaucourt on 27 Dec 2012 at 11:47

GoogleCodeExporter commented 9 years ago
There is no aliasmap created in that directory and there should be. Are there 
any other errors in your web server log before the error you display?

Brad

Original comment by bwsamuels@gmail.com on 27 Dec 2012 at 2:42

GoogleCodeExporter commented 9 years ago
sorry it's the only line i have in my error.log file :-/

Original comment by smaucourt on 27 Dec 2012 at 4:43

GoogleCodeExporter commented 9 years ago
Hmmm, it's not creating the aliasmap file. That should be done automatically 
when it starts if it is not there. I'll have to take a look at the code.

Brad

Original comment by bwsamuels@gmail.com on 29 Dec 2012 at 3:37