Menu

#685 Setting the refresh page

open
None
1
2015-02-25
2015-02-16
Anonymous
No

home page not refresh
I set the "$refresh_rate = 60;" in config.inc.php. is there some other setting to be set?
Thank You.

Discussion

1 2 > >> (Page 1 of 2)
  • Campbell Morrison

    No, that's all you need to set. Which page do you mean by the home page?

     
  • Campbell Morrison

    Do you mean day.php? Are you sure it's not refreshing? You won't see it refresh because the refresh is done using an Ajax call. Try opening another browser and making a booking and see if that new booking appears in the other browser after a minute.

     
  • Campbell Morrison

    I can't see your site because the 192.168 network is a local network, so I'm not sure what's happening.

    Can you tell me what version of PHP you are running (the information will be on the Help page) and what browser and version you are using?

    Don't worry about the room=17 in the query string - that's OK.

     
  • Anonymous

    Anonymous - 2015-02-17

    I opened an access to internet.
    link: http://147.162.18.10/mrbscubo/day.php?year=2015&month=02&day=17&area=1&room=17
    You can try it and see the page.
    The PHP Version 5.4.16
    Browser tested IE, Mozilla Firefox and Chrome
    I viewed the page source code day.php, generated by MRBS 1.4.3 and 1.4.11 MRBS (attached). the string <meta http-equiv="refresh" content="60"> is present but is in different positions. is that correct?

     
  • Campbell Morrison

    Thanks. Yes, you're right - it's not refreshing. In 1.4.11 the refresh is done by an Ajax call, which is why the meta refresh is in a different position - it's in a <noscript> element so that it's only executed if JavaScript is disabled.</noscript>

    I can see that the Ajax requests are being issued by the client, but for some reason there's no response coming back from the server. I'll need to try and figure out why not.

     
  • Campbell Morrison

    Can you check your PHP error log to see if there are any error messages in there?

     
  • Anonymous

    Anonymous - 2015-02-18

    I have a problem. php does not write errors in the log file. I'm trying to solve
    I write here when I solved if I have some news
    bye

     
  • Anonymous

    Anonymous - 2015-02-19

    I have identified the problem.
    the page day.php regularly sends the command post for the refresh, every 60 seconds
    if a user has logged in, the page refreshes
    otherwise not.

     
  • Anonymous

    Anonymous - 2015-02-19

    I don't think that's the problem. There is something not right. The page should refresh even if the user is not logged in. Can you tell me whether it refreshes for an ordinary user (level 1) or just when an admin (level 2) is logged in?

     
  • Campbell Morrison

    Sorry - the last post was from me.

     
  • Anonymous

    Anonymous - 2015-02-19

    refresh both ordinary user (level 1) or admin (level 2) the result is the same. The page refreshes.
    only I have this problem? :-(
    I can send you the username and password for user and admin user by mail if you want to try the test.
    I do not know what else to try ....
    Forgive my English ... but I can not write well, I help with google translate ...;-)

     
  • Campbell Morrison

    I don't think the username and password will help thanks. I can see that it is failing when not logged in.

    Can you upload the two test files to your MRBS directory and run test.php and let me know the output please?

    Thanks

     
  • Anonymous

    Anonymous - 2015-02-20

    this is the result:
    $ PHP_SELF: string (18) "/mrbscubo/test.php"
    basename ($ PHP_SELF): string (8) "test.php"
    $ maxLevel: string (1) "2"

     
  • Campbell Morrison

    Thanks. That's the result I would expect if everything's working properly, so I still don't understand what's going on. Could you give me a user login please? Just an ordinary user - doesn't have to be an admin.

     

    Last edit: Campbell Morrison 2015-02-20
  • Campbell Morrison

    Thanks. I still don't understand what is going on. Can you tell me what authentication scheme you are using? In other words what is $auth['type'] set to in your config file?

    By the way, I have finished with the username now. You might want to delete it or change the password as it will otherwise be public.

     
  • Campbell Morrison

    Thanks. And what is $auth["session"]?

     
  • Campbell Morrison

    Sorry - what is it set to? Is it the default (ie 'php') or is it something else?

     
  • Campbell Morrison

    I still don't understand what is happening. Here is another test program for you to try. Could you let me know the output please?

    Thanks

     
1 2 > >> (Page 1 of 2)
MongoDB Logo MongoDB