Menu

#595 MRBS not working

open
nobody
None
1
2015-09-26
2014-09-05
Anonymous
No

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

Discussion

  • Campbell Morrison

    Are you sure you have set the $timezone properly in your config file? What does that line say in your file?

     
  • Virendra Pandya

    Virendra Pandya - 2014-09-17

    Dear Campbell,

    Sorry for late response.. Config file have $timezone = "Asia/Kolkata"; as timezone.

    regards

    Virendra

     
  • Campbell Morrison

    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.

     
  • John Beranek

    John Beranek - 2014-09-17

    Just another point: you really don't want to be changing internalconfig.inc.php yourself...

     
  • Virendra Pandya

    Virendra Pandya - 2014-09-19

    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.

     
  • Campbell Morrison

    Anything in the PHP error log?

     
  • Holger Schletz

    Holger Schletz - 2014-11-14

    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.

     
  • Campbell Morrison

    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.

     
  • Campbell Morrison

    Have you tried inserting

    ini_set('display_errors', '1');
    error_reporting(-1);
    

    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.

     
  • Anonymous

    Anonymous - 2015-09-26

    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.

     
MongoDB Logo MongoDB