meeting-room-booking-system / mrbs-code

MRBS application code
Other
108 stars 56 forks source link

Unable to make changes that count in config.inc.php #1773

Open jberanek opened 7 years ago

jberanek commented 7 years ago

Hi,

I have set up MRBS however when I add changes to the config.inc.php, they don't seem to come into effect. Only when I edit the likes of the systemdefaults.inc.php do they take effect. I am aware the file should stay untouched for upgrade purposes, but can seem to work out how to get the config file to work.

Any help is much appreciated!

Stephen

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1052

jberanek commented 7 years ago

Very strange!

Some things to check:

  1. Are you absolutely sure that the modified version of the config file has been uploaded to the web server (obvious question, I know)?
  2. Does the config file have read file permissions?
  3. Are you getting any eror messages in the error log?
  4. Try adding the following lines at the beginning of defaultincludes.inc:
ini_set('display_errors', '1');
error_reporting(-1)

These will send error messages to the browser. Remove them when you have found the problem.

  1. Try deleting the config file from the web server and see if that produces some errors.

If you still haven't found the problem after all this:

(Answers to these three questions are on the Help page).

Original comment by: campbell-m

jberanek commented 7 years ago
  1. 100%

  2. How can I make sure it has this?

  3. Where is the error log stored?

  4. As soon as I put that code in, it brought up this with a blank chrome page "Parse error: syntax error, unexpected end of file in /home/larneswi/public_html/mrbs/web/config.inc.php on line 76"

  5. I got this error after removing it "Fatal error: require_once(): Failed opening required 'config.inc.php' (include_path='.:/usr/local/php54/pear') in /home/larneswi/public_html/mrbs/web/defaultincludes.inc on line 13"

Thanks for the quick response!

Original comment by: *anonymous

jberanek commented 7 years ago

Opps.. Think I may have found the problem, I didn't comment the code in systemdefaults after I pasted into the config. Would this sound right?

Also, how do I change/remove the "Meeting Room Booking System" text & link that appears at the top left below my logo?

Thanks!

Original comment by: *anonymous

jberanek commented 7 years ago

No, I don't think the commenting of the code in systemdefaults was the problem. You shouldn't need to change systemdefaults at all. All you need to do is to copy into the config file the lines from systemdefaults that you want to change.

From the error messages above it looks like the problem was that the original file transfer of the config file didn't complete properly. So although it looked to you as though it was there, it was badly formed or incomplete, which is why you got the "unexpected end of file" message Having deleted it and then, presumably, re-uploaded it everything was fine.

For instructions on how to change the "Meeting Room Booking System" message see the section "Vocab overrides" in systemdefaults.

Original comment by: campbell-m