MRBS not working
Brought to you by:
jberanek
Hi,
I have install the MRBS 1.4.11 on Ubuntu Linux 14.04 64bit edition with MySQL version 5.5.38 and PHP5.
I have followed the installation instruction step by step. But when i try to open the index.php it gives following error.
"Notice: Undefined variable: timezone in /var/www/mrbs/web/internalconfig.inc.php on line 331"
If i comment the line timezone then it show blank page.
I have already maintain the setting in config.inc.php file regarding the timezone, db host, db name, db user and db password.
I can access the db with the given userid and password.
I have test the PHP function in Apache with the test.php file and in that it runs properly.
Kindly please help to solve this problem.
Thanks
Virendra
Are you sure you have set the $timezone properly in your config file? What does that line say in your file?
Dear Campbell,
Sorry for late response.. Config file have $timezone = "Asia/Kolkata"; as timezone.
regards
Virendra
I suspect you may have accidentally made a typo while editing config.inc.php. If you go back and comment out your timezone line, have a look in the PHP error log file when you get a blank page: that may give you some clues. Otherwise start afresh and create a new config file from the standard one in the 1.4.11 distribution.
Just another point: you really don't want to be changing internalconfig.inc.php yourself...
Hi,
Done the change as i have install the IIS7 on Wn2k8 R2 server and enable the PHP support in it and run the site from that IIS server and it works. ( The MySql server is still on the the linux server which i first install )
I copied the config.inc.php file to linux server and try it but still an blank page.
I have check the PHP error log but it is still blank. :(
I have given the rights to root, and www-data user on the mrbs dir in linux as 777 (full) but still no luck. Every time i made any changes i have try with both apply changes and restart the services.
Anything in the PHP error log?
I'm getting the same warning. I think the reason is my nonstandard setup with multiple MRBS instances. To avoid multiple code trees and to simplify upgrading, there is only 1 source tree. The instances are directories with symlinks to every object in the "web" subdirectory except config.inc.php, which is a regular file with instance-specific content. Apart from the warning, this setup works fine.
It looks like this file is loaded after internalconfig.inc.php so that the $timezone line has not been executed at this point. There is also the distributed version of the file in the source directory where this line is commented out which might already have been executed at this point. It wouldn't matter with a regular setup where there is only 1 version of the file, but the symlink trick seems to confuse the include mechanism.
Is there a better way to implement multiple instances without duplicating the source code? If not, that's not a big problem for me - I can live with hardcoding the timezone manually in the source file.
Slightly OT: I think the requirement for application-level timezone configuration is a bad approach. This should really be configured globally (php.ini and/or webserver config) as it affects any application using date/time functions, and individual configuration for every application is neither available nor desirable.
Just a quick comment on your OT comment. MRBS allows you to set different timezones for different areas, to cater for organisations operating over multiple timezones. I'll have a think about your comment - maybe MRBS should restore the global timezone when it has finished.
Have you tried inserting
at the beginning of the internalconfig file to see what's causing the blank page? I had similar symptoms once and it turned out that the problem was that my PHP session directory wasn't writeable.
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Support Requests"
I tried put
ini_set('display_errors', '1');
error_reporting(-1);
at the begining of the internlconfig file. But I also don't see anything.
View and moderate all "support-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "DO NOT USE - Support Requests"
I get the same error: When I go to the website mrbs, it just the white page (It does not have content)