12 January 2009, 19:38
I'm able to upload images via My Portfolio > My Files and they are listed there after upload, but in the My Portfolio > My Views > Edit this View, when I add An Image block, I'm unable to browse or search for the available images in the My Files area (beneath the Browse and Search tabs I have "Sorry, no artefacts to choose from"). Adding an Embedded Media block does allow us to browse/search for available movies in the My Files area.
tail on the access and error logs is inconclusive (no errors) - I see it call it view/blocks.json.php on the first load of the An Image block when I click the gear icon, then view/artefactchooser.json.php with a query string if I click the search tab in the An Image block.
In addition, attempting to add a profile icon (a jpg that fits the memory restrictions and size requirements) will not work (upper left corner shows Loading..., and the Submit button constantly says Processing... with the connection to the web server still going - page never refreshes to say the profile icon was uploaded) - on subseqent trys to upload a profile icon to this page provides the following error:
There was an error with submitting this form. Please check the marked fields and try again.
followed by
[Choose File buttton] no file selected
The file you uploaded is not valid image. It must be a PNG, JPEG or GIF file.
Again, nothing "bad" appears in the access or error logs (POST /mahara/artefact/internal/profileicons.json.php), and despite the error messages the image was selected and was a jpg.
The best I can figure out is a) the json calls are not working as expected on OS X 10.5.6, b) the database (MySQL) isn't getting updated appropriately (is there a table I should check? or mysql logs to view), c) a change to OS 10.5 (a recent update/patch) broke some functionality, or some combination of these three.
We are fairly certain the image block worked on an earlier version of 10.5 (probably 10.5.3 or 10.5.4) and Mahara (1.0.4), but have upgraded the OS since that time (last working for sure in June/July 08) and updated mahara to 1.0.8 (recently) in preparation for the semester. I would also mention, we're using this in conjunction with Moodle (ye olde mahoodle implmentation).
For fun, I went back to an older verion of Mahara (as far back as 1.0.4), and the file browse problem still exists on the current version of our OS. For extra fun, I tried the 1.1 b3 release and am able to upload image to the My Files area, and then add An Image block, and select from the available images I've uploaded to My Files. But, in the beta version, I still cannot upload a profile icon (forever Loading.../Processing...)
Our specs:
OS X 10.5.6 Server (aka Darwin 9.6.0)
php 5.2.6
added GD 2.0.34 (OS X Server doesn't ship with GD)
MySQL 5.0.45
Apache 2
Already fixed the file -Ib issue for Darwin in lib/file.php
php ini:
no disabled functions (ie exec)
upload limit: 50 MB
magic quotes gpc: off
all other php requirements should be met
Thanks for any thoughts and suggestions.