When I switch log-in into the SwissCenter from my SC200 to my laptop I get the following error message in the config screen:
Fatal error: Cannot redeclare get_player_type() (previously declared in /volume1/web/svr/swisscenter/base/capabilities.php:22) in /volume1/Web/svr/swisscenter/base/capabilities.php on line 67
The result is that I get the error message through the config screen, and the entire config screen is blocked.
It’s quite annoying, I have to turn down the internet connection of the DS I’ve installed the SwissCenter on, shut down all hardware, starting up, enabling the internet connection and restart Apache.
Is there a more simple way to handle this and prevent this fatal error to happen?
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: fatal error in capabilities - 2008/01/27 08:42I've no idea what could be causing this but since it used to work then you must've changed something.
I've looked at capabilities.php and there is nothing on line 67 that could cause your error. Have you changed this file yourself? Could you post your capabilities.php for me to check.Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: fatal error in capabilities - 2008/01/27 14:57Hi Pernod,
Here it is. The problem is related to the "function get_player_type" and occurs when I log in the SwissCenter with my SC200 and laptop at the same time. I didn't make any adjustments in the capabilities-file.
Well, Ihope you find something as I cannot get in the config screen anymore. many thanks in advance & regards, Klaas
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: fatal error in capabilities - 2008/01/27 19:58Your capabilities.php is not the same as what is installed with 1.19.2 but it looks okay. Have you modified any other files recently?Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: fatal error in capabilities - 2008/01/28 00:03Hi Pernod,
I did a couple of small changes in some files; I'll check tonight which changes in which files.
I also got the suggestion that there might be conflict of IPs. Is it correct that SwissCenter stores all IPs and associated hardware in the DB?
Is so, does it make sense to remove them? Again if so, how to do this as I cannot access the DB through the config screen?
thanks for your help, it's highly appreciated, Klaas ------------------- SwissCenter 1.19.2 Apache 2 / PHP 5.2.0 Linux Synology 2.6.15 Synology DS107+ (128) Pinnacle SC200
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: fatal error in capabilities - 2008/01/28 14:36Well, I put back all original SwissCenter php-files, the error message related to the capability-file was still there.
Then, with the help of "mysql_send.php" I could connect to the SwissCenter database and I found in table "client" all IP numbers that have been connected to the SwissCenter. I deleted all entries and tried to get in the config-screen again. Unfortunately, bad luck, the error message is persistent.
So, now I'll reinstall SwissCenter completely with a new DB; I'm sure this will help (before that I'll have to back-up my media-files, which will take a couple of hours)
This exercise unfortunately won't solve the problem, although I know now that it can be prevented by not logging in the SwissCenter with two machines at the same time. I'm not sure, but maybe the problem is related to this issue:
To make this work for other users, they had to create a folder "temp" in the root of swisscenter.
the quick part: only 3 lines need to be inserted. the dirty part: you cannot access more than one file of each type simultaneously. Only 1 client at one given time is supported. But it shouldn't be difficult to develop a decent solution for this. source
hope you can help, Klaas ------------------- SwissCenter 1.19.2 Apache 2 / PHP 5.2.0 Linux Synology 2.6.15 Synology DS107+ (128) Pinnacle SC200
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: fatal error in capabilities - 2008/01/28 18:37I've deleted everything related to the SwissCenter and reinstalled the whole bunch in a fresh folder. Before creating the SwissCenter DB I get this error message:
Fatal error: Cannot redeclare run_background() (previously declared in /volume1/web/server/swisscenter/base/sched.php:15) in /volume1/Web/server/swisscenter/base/sched.php on line 52
I'm going rapidly luna, what else can I do except formatting the disk?
| | The administrator has disabled public write access.
Pernod
Admin
Posts: 2783
Re: fatal error in capabilities - 2008/01/28 20:25I think I'd be going loopy too if I had this problem , but I'd say your SwissCenter files are probably fine.
Have you changed anything with your PHP or Apache installation recently?
I'd guess that Apache or PHP has multiple instances which are conflicting, never used Apache so I can't advise. Have you tried Simese as a temporary workaround to at least try to pinpoint the cause?Players : Netgear EVA700 | Popcorn A-100 (091202) | Popcorn A-200 (100208) Webserver : Simese v2.6.4 | Apache 2.2.14 | PHP v5.2.12 | MySQL v5.1.32 Server : Windows 7 Home Premium 64bit Spec : Intel C2Q Q6600 - 4GB RAM - 3TB HDD AV : Pioneer VSX-915 | Samsung LE40C650
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: fatal error in capabilities - 2008/01/29 00:04Hi Pernod,
Just before formatting the hard disk, I tried the trick mentioned at the start of the thread: blocking internet traffic to the DS and open the config screen. To my surprise and joy, all error messages dissappeared and I could get the SwissCenter back to work.
I suppose you're right and it has something to do with the pre-installed version of either apache or PHP (or both) on the DS. Hope you or someone else has a indea what causes this so the problem could be solved with Synology.
anyway many thanks for your support, regards, Klaas ------------------- SwissCenter 1.19.2 Apache 2 / PHP 5.2.0 Linux Synology 2.6.15 Synology DS107+ (128) Pinnacle SC200
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: fatal error in capabilities - 2008/02/15 15:23The same error message returned. What I've done so far to repair: reinstalled Apache, PHP, MySQL and SwissCenter. The result is that I can create a DB, but still cannot get into the config screen.
In order to post the settings of SwissCenter in the DB, I use mysql_send.php and fill the tables manually. Although it works, it's quite annoying.
What can I do to get the config-screen run again? regards, Klaas ------------------- SwissCenter 1.19.2 Apache 2 / PHP 5.2.0 Linux Synology 2.6.15 Synology DS107+ (128) Pinnacle SC200
| | The administrator has disabled public write access.
TrevorH
User
Posts: 25
Re: fatal error in capabilities - 2008/03/17 21:30I've just done some searching around and many products are reporting a similar problem. It's apparently a bug in PHP 5.2.0 itself which I believe is fixed in 5.2.2. The bug seems to be described in these two reports
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: fatal error in capabilities - 2008/03/18 16:03Hi TrevorH,
Thanks for your reply. I'm afraid my knowledge on PHP is too limited to understand the relation between the PHP-bugs reports and the "redeclare"-problem.
Could you elaborate a bit on this? regards, Klaas ------------------- SwissCenter 1.19.2 Apache 2 / PHP 5.2.0 Linux Synology 2.6.15 Synology DS107+ (128) Pinnacle SC200
| | The administrator has disabled public write access.
TrevorH
User
Posts: 25
Re: fatal error in capabilities - 2008/03/18 23:45If you look at the line numbers reported in your error messages, it is complaining about a redeclaration of the function on the line number that has the closing brace for the function it is complaining about! That is. there is no redeclaration, it's a bogus error message. If you search for +"php 5.2.0" +redeclare through google you will find lots of hits pointing the finger of blame at php 5.2.0 for similar errors in lots of other products. I tracked through some of those bugs and they led me to those two PHP bug reports.
Do you have any way to install a newer PHP version on your box?
| | The administrator has disabled public write access.