Comment 12 for bug 1399246

Revision history for this message
Aaron Wells (u-aaronw) wrote :

For the record, here's how to replicate this issue, if you're too lazy to set up wildcard DNS.

1. In your config.php, set "cfg->cleanurls" and "$cfg->cleanurlusersubdomains" to true.

2. Add a subdomain to your /etc/hosts file for the username "user1". For example, for a local Mahara site at the domain "mahara.test" I would put this line in /etc/hosts: "127.0.0.1 mahara.test user1.mahara.test"

3. Do a clean Mahara install.

4. Create a user with username "user1"

5. Log in as user1, create a page, put a PDF block in that page, then make the page visible to the public.

6. View the page in display mode. It will be shown with a URL like "user1.mahara.test/pagename"

Expected result: You should see the PDF content displayed in the PDF block.

Actual result: The PDF block title shows up, but you do not see the PDF content.