ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


fsockopen error


  • 2008-07-19 01:26:59

    fsockopen error

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    Operating system ATutor is installed on -
    ATutor version -1.6.1
    ATutor theme name -
    PHP version -5.2.0
    MySQL version -5.0.32
    Webserver & version -apache2.2.3

    Hi
    I logged as an admin and got this warning in the first page.
    Warning: fsockopen() [function.fsockopen]: unable to connect to update.atutor.ca:80 (Network is unreachable)
    Also in the patcher tab I got the following error:
    Warning: fsockopen() [function.fsockopen]: unable to connect to update.atutor.ca:80 (Network is unreachable) in .../ATutor-Test/mods/_standard/patcher/index_admin.php on line 62
    Error: Cannot connect to patch server: update.atutor.ca

    I should notice that my server is behind the pound, and has an invalid IP. I've tested it on the server with valid IP address and there was no error message.
    How can I solve the problem? Any idea?

  • 2008-07-19 05:01:17

    Re: fsockopen error

    Yes, it's a problem for computers without direct Internet access. ATutor's dependency on the access to the atutor.ca site is growing in the latest versions, and that makes testing on such computers harder.

    You can comment out the lines that generate the errors (i.e. line 62 of mods/_standard/patcher/index_admin.php).

  • 2008-07-21 06:41:53

    Re: fsockopen error

    thanks IndieRect.you mean that I can't use this new feature just because of invalid IP address.using pound because of security reason is a network security policy and the obligation to use valid IP address don't seems rational.

  • 2008-08-02 04:08:03

    Re: fsockopen error

    Hi
    We at Ferdowsi university of Mashhad have done a lot of changes in ATutor for customization and always upgrade from older version to new one was troublesome.
    Using patcher feature can help us to upgrade our ATutor easier than before. But using an invalid IP address for our server is an obligation for us and it is a security policy. Now I want to ask whether it is possible to change patcher's code to work with invalid IP address. And if it is how can I do it?
    Any help will be appreciated.

  • 2008-08-02 09:30:10

    Re: fsockopen error

    As IndieRect suggests you can comment out the line that connects to the patch server. There is actually a patch that will get rid of the error message, though I suppose its not much good if you can't connect the retrieve the patch. The other option might be to apply the patch manually, by copying it from the server and applying it yourself. Its #0005 for 1.6.1


    I'm not sure how the patcher would behave with an invalid IP, or how we might test that.