register.php can generate incorrect HTML

I am trying to set up elgg 1.7.10 on Windows XP SP3, using Apache 2.2 and PHP 5.2.5.

I have change the .htaccess file to uncomment RewriteBase /elgg/

This is a smaple of the  code generated by register.php

<script type="text/javascript" src="http://127.0.0.1/E:/elgg-1.7.10/vendors/jquery/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="http://127.0.0.1/E:/elgg-1.7.10/vendors/jquery/jquery-ui-1.7.2.custom.min.js"></script>
	<script type="text/javascript" src="http://127.0.0.1/E:/elgg-1.7.10/vendors/jquery/jquery.form.js"></script>
	<script type="text/javascript" src="http://127.0.0.1/E:/elgg-1.7.10/_css/js.php?lastcache=1313312823&amp;js=initialise_elgg&amp;viewtype=default"></script>
	<!-- include the default css file -->
	<link rel="stylesheet" href="http://127.0.0.1/E:/elgg-1.7.10/_css/css.css?lastcache=1313312823&amp;viewtype=default" type="text/css" />

This leads to a permission failure message on the browser on clicking register and
access log e
127.0.0.1 - - [14/Aug/2011:12:51:27 +0100] "POST /E:/elgg-1.7.10/action/register HTTP/1.1" 403 232

and error log entries including
Sun Aug 14 12:51:27 2011] [error] [client 127.0.0.1] (20023)The given path was above the root path: Cannot map POST /E:/elgg-1.7.10/action/register HTTP/1.1 to file, referer: http://127.0.0.1/elgg/account/register.php

Thanks in advance
Barryb

  • The problem could srping from the automatically generated entries in the System Settings form.

    The line "The site URL"

    had the windows path name in it after http://127.0.0.1/

                                         BarryB

  • the path    127.0.0.1/E:/elgg-1.7.10/action/register
    is almost correct operationals
    reckon it should have said    127.0.0.1/elgg-1.7.10/action/register

    "Cannot map POST /E:/elgg-1.7.10/action/register "
    true -- reason as above

    "change the .htaccess file to uncomment RewriteBase /elgg/ "
    was most likely part of the situation/ correction

    "the automatically generated entries in the System Settings for "
    that would be using your input from intall-time, not exactly automatic

  • I had changed the .htaccess to uncomment RewriteBase /elgg/

    before reporting the error. I suspect that is due, in some way, to installing on my PC and using the 127.0.0.1 address, because when I had finished negotiating with the Hosting service and installed it live, it worked straightaway.

    I got it to work on my PC by manually editing the settings page.