Forums | Mahara Community

Support /
Windows installation with PHP 5.3


anonymous profile picture
Deleted user
Posts: 2

29 October 2009, 7:13 PM

Hello everyone.
I installed Mahara version 1.2.0beta4 (2009101500) on Windows with Apache and PHP 5.3 with LDAP (that works well).
- The function " strptime () " does not work in windows, but I have solve  that by creating a substitute function.
- Add:  "$cfg-> insecuredataroot = true;"  in the "config.php" to solve the problem of preview images and download files in views.

Presently I have one problem in " \ view \ access.php".
- These lines do not work  "  redirect('/view/'); ",  it should do the redirect to "/ view /" but do not, causing this error "ERROR - something bad happened after headers have been sent. Check the error log for more information.".
So far i still not solve, does anyone know how?
Thanks
anonymous profile picture
Deleted user
Posts: 1643

01 November 2009, 3:38 PM

Hi - well your first step is to check the apache error log, to see the message in there. There should be a nice big backtrace and error message that you can paste here, which will give us a clue as to what might be wrong Smile
anonymous profile picture
Deleted user
Posts: 14

17 November 2009, 9:14 AM

System: Mahara 1.2.0 on XAMPP - Windows Server

When you try to set date for access to view (Public, Logged in users etc.) the following error apears:

Fatal error: Call to undefined function strptime() in C:\xampp\htdocs\mahara\view\access.php on line 249

"Overriding Start/Stop Dates" section seems to work OK.  

 To overcome this issue you can replace in view\access.php:

line 249 -strptime($item['startdate'], get_string('strftimedatetimeshort')) --> strftime(get_string('strftimedatetimeshort'), $item['startdate'])

line 256 -strptime($item['stopdate'], get_string('strftimedatetimeshort'))  --> strftime(get_string('strftimedatetimeshort'), $item['stopdate'])

I don't how whether the replacement is OK but system seems to work OK.

anonymous profile picture
Deleted user
Posts: 1643

17 November 2009, 6:20 PM

The functions strptime and strftime do different things, so we'll have to check whether the fix does the same job as the old code.

From http://php.net/strptime :  Note: This function is not implemented on Windows platforms.

Whoops Wink. I'll file a bug about that. 

4 results