ATutor

Learning Management Tools







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


Cant connect to update server


  • 2009-04-20 21:25:35

    Cant connect to update server

    Hi all

    After a dig here in the foruns Ive only found a link to a patch that is already instaled so Id like to ask for help.

    I cant connect to update server to find patches, install modules or whatever action that needs this connection.

    Any tip on what is goig on?

    Thanks in advance,
    Wilson
    ===============================================
    Operating system ATutor is installed on - linux
    ATutor version - 1.6.2
    Patch #s applied - 1 to 20
    ATutor theme name - default
    PHP version -5.2.5
    MySQL version -5.0.67
    Webserver & version - Apache
    Copies of error messages - cant connect to update server
    Changes to default settings -
    Web browser being used - FF

  • 2009-04-21 09:28:35

    Re: Cant connect to update server

    If u have internet connection but cannot connect to update server, might because the firewall blocks the access.

    Can u open up a browser and access http://update.atutor.ca/. If u can access this page, atutor should be able to connect to update server.

  • 2009-04-22 10:26:07

    Re: Cant connect to update server

    Hi Cindy

    Thanks for your reply.

    And my answer is yes I can access update.atutor.ca via my browser.That was the way I did all the patches, however Im still facing the same problem inside de ATutor app.

    Wierd isnt it?

    maybe any additional php config or something else?

    Thanks in advance

  • 2009-04-24 15:16:29

    Re: Cant connect to update server

    Hi all

    that is just a little bump :-)

    Sorry to insist but as the last version is so "server dependant" i guess its important to get that feature working right.

    Thank you all

  • 2009-04-25 05:18:20

    Re: Can't connect to update server

    hi
    I have the same problem on my server and as I found out, it is just because of using proxy for internet access.
    Do you have direct internet access or use proxies?

  • 2009-04-25 09:36:30

    Re: Can't connect to update server

    Hi Sam

    As far as I know I have direct access and on this PC I can access MSN, emule and few others apps like that.

    The Atutor installation is running at surpasshosting.com among many other sites of some clients, all of them using xoops and impresscms.

    As I told to Cindy, pointing my browser to update.atutor.ca/ everything goes fine.

    BTW Sam did you solve your problem on accessing the update server?

    Thanks for you interest.

  • 2009-04-28 10:27:26

    Re: Can't connect to update server

    Hi, "pointing browser to update.atutor.ca/ everything goes fine" does not mean u r not using proxy. Your browser could be configured to read proxy script to access outside. But ATutor scripts don't know how to do that.

  • 2009-05-01 12:27:32

    Re: Can't connect to update server

    It would seem to me that it is not the browsing computer setup that is at issue, rather it is the server setup since the PHP script is running on the server.

  • 2009-05-02 09:40:36

    Re: Can't connect to update server

    Hi

    Can you guys point me the file or the lines where the connection is done?

    Maybe a "forbidden" call or function is used and doing so I can ask the people at the host company.

    Thank you

  • 2009-05-02 14:32:13

    Re: Can't connect to update server

    You could try looking at install/upgrade.php which also includes_once the scripts install/include/ustep1.php to install/include/ustep7.php

  • 2009-05-04 09:14:04

    Re: Can't connect to update server

    Connecting to update server for installing patch is at

    mods/_standard/patcher/index_admin.php Line 81 - 93

  • 2009-06-12 05:32:26

    Re: Can't connect to update server

    So has anyone figured out the solution to this problem? I just installed Atutor and am having the same problem off of a GoDaddy server.

  • 2009-06-12 08:37:52

    Re: Can't connect to update server

    Ask your provider if they are blocking access to external servers. Perhaps there is a firewall preventing you from connecting.

  • 2009-10-21 02:27:16

    Re: Can't connect to update server

    Things to describe:
    Operating system ATutor is installed on -
    ATutor version - 1.6.3
    PHP version - 5.2.6
    MySQL version - 5.0.75
    Webserver & version - 2.2.11


    Hi
    As I mentioned before, because we use proxy server, ATutor patch didn't work properly so I added a few lines to the code to fix this. The following code was added :
    <?php
    /*************added by sam***************/
    $aContext = array(
    'http' => array(
    'proxy' => 'tcp://proxy_ip ',
    'request_fulluri' => true,
    ),
    );
    $cxContext = stream_context_create($aContext);
    /*******************************************/
    ?>
    And all @file_get_contents($connection_test_file) replaced by @file_get_contents($connection_test_file,False, $cxContext)
    By this changes, ATutor is now able to get the list of the patches and their xml files from http://update.atutor.ca, But installing a patch makes server to generate "Intertal Server Error". I debug the mods/_standard/ patches/index_admin.php and understood that this line cause the problem:
    if ($patch_xml === FALSE)
    I put "echo var_dump($patch_xml);" befor that line and the result was:

    string(8165)
    " 08 1.6.3 Fixes a security hole introduced from patch 06. 06 alter vitals.inc.php include/ replace function my_add_null_slashes( $string ) { $string = replaceTags($string); return mysql_real_escape_string(stripslashes($string)); } function my_mysql_real_escape_string( $string ) { return replaceTags($string); } function my_null_slashes($string) { return $string; } if ( get_magic_quotes_gpc() == 1 ) { $addslashes = 'my_add_null_slashes'; $stripslashes = 'stripslashes'; } else { $addslashes = 'my_mysql_real_escape_string'; $stripslashes = 'my_null_slashes'; } //bug #3924, for now, take out the sensitive tags. Not the most briliant way of doing it, //but should be the quickest and easiest way to deal with the hole, yet allow //the mathematical expression to work still. function replaceTags($input){ return preg_replace('/\<\s*meta/', '', $input); } function my_add_null_slashes( $string ) { return mysql_real_escape_string(stripslashes($string)); } function my_null_slashes($string) { return $string; } if ( get_magic_quotes_gpc() == 1 ) { $addslashes = 'my_add_null_slashes'; $stripslashes = 'stripslashes'; } else { $addslashes = 'mysql_real_escape_string'; $stripslashes = 'my_null_slashes'; } alter header.inc.php include/ replace $section_title = validate_length($_SESSION['course_title'], 45, VALIDATE_LENGTH_FOR_DISPLAY); $session_course_title = htmlentities($_SESSION['course_title'], ENT_QUOTES, 'UTF-8'); $section_title = validate_length($session_course_title, 45, VALIDATE_LENGTH_FOR_DISPLAY); alter header.inc.php include/ replace $nav_courses[$row['course_id']] = validate_length($system_courses[$row['course_id']]['title'], 45, VALIDATE_LENGTH_FOR_DISPLAY); $system_courses[$row['course_id']]['title'] = htmlentities($system_courses[$row['course_id']]['title'], ENT_QUOTES, 'UTF-8'); $nav_courses[$row['course_id']] = validate_length($system_courses[$row['course_id']]['title'], 45, VALIDATE_LENGTH_FOR_DISPLAY); alter index.tmpl.php themes/default/users/ replace <img src="images/clr.gif" class="icon" border="0" width="79" height="79" alt="<?php echo $row['title']; ?>" /> <img src="images/clr.gif" class="icon" border="0" width="79" height="79" alt="<?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?>" /> alter index.tmpl.php themes/default/users/ replace <img src="<?php echo $dir; ?>" class="icon" border="0" alt="<?php echo $row['title']; ?>" /> <?php echo $link2; ?> <?php endif; ?> <strong><?php echo $link.$row['title'].$link2; ?></strong> <img src="<?php echo $dir; ?>" class="icon" border="0" alt="<?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?>" /> <?php echo $link2; ?> <?php endif; ?> <strong><?php echo $link.htmlentities($row['title'], ENT_QUOTES, 'UTF-8').$link2; ?></strong> alter index.php replace $savant->assign('banner', AT_print($row['banner'], 'courses.banner')); $savant->assign('banner', AT_print(htmlentities($row['banner'], ENT_QUOTES, 'UTF-8'), 'courses.banner')); alter copyright.inc.php include/html/ replace echo '<small>' . AT_print($system_courses[$_SESSION['course_id']]['copyright'], 'courses.copyright') . '</small><br />'; $system_courses[$_SESSION['course_id']]['copyright'] = htmlentities($system_courses[$_SESSION['course_id']]['copyright'], ENT_QUOTES, 'UTF-8'); echo '<small>' . AT_print($system_courses[$_SESSION['course_id']]['copyright'], 'courses.copyright') . '</small><br />'; alter browse.tmpl.php themes/default/users/ replace <a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><img src="<?php echo $course_icon; ?>" class="headicon" alt="<?php echo $row['title']; ?>" /> </a> <?php } ?> </dt> <dd><h3 <?php echo $style_for_title; ?>><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo $row['title']; ?></a></h3></dd> <?php if ($row['description']): ?> <dt><?php echo _AT('description'); ?></dt> <dd><?php echo nl2br($row['description']); ?> </dd> <a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><img src="<?php echo $course_icon; ?>" class="headicon" alt="<?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?>" /> </a> <?php } ?> </dt> <dd><h3 <?php echo $style_for_title; ?>><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?></a></h3></dd> <?php if ($row['description']): ?> <dt><?php echo _AT('description'); ?></dt> <dd><?php echo nl2br(htmlentities($row['description'], ENT_QUOTES, 'UTF-8')); ?> </dd> "

    It seems that $patch_xml is not a Boolean variable!! I change the condition to "if(strcmp($patch_xml,'')==0)" but it still produce the same error!!!!
    Would you please help me to know why this error happens??
    Thanks a lot
    [red] [/red] [red] [/red]