Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work at all - seems to be an issue with absolute paths #1

Open
ahupowerdns opened this issue Nov 27, 2011 · 5 comments
Open

Comments

@ahupowerdns
Copy link

Hi,

html-writr appears to be exactly what I need, but I can't get it to work with either lighttpd or apache2. The issue appears to be that writr passes along 'file=/index.html' and that at least my PHP interprets that as /index.html relative to the filesystem, and not relative to the PHP directory or the HTML root.

This means that the checks for is_file fails, and editing doesn't work.

Any ideas on how to fix this? I know little of PHP, I suspect I need to tell PHP to work from the html root instead of the fs root..

Thanks!

@jacklightbody
Copy link
Owner

hey,
the last known working version was as off https://github.com/html-writr/Html-Writr/tree/74f88b1f739655f6490b8d48e7cad9659a5a4641 Beyond that, its untested. Can you try the previous version?

@ahupowerdns
Copy link
Author

Hi Jack,

Sorry to bother you with this, I am trying to do a clone at that specific
cs, any idea how I do that?

Again, sorry to bother you with basic git questions..

Bert

On Sun, Nov 27, 2011 at 11:52:50AM -0800, jack wrote:

hey,
the last known working version was as off https://github.com/html-writr/Html-Writr/tree/74f88b1f739655f6490b8d48e7cad9659a5a4641 Beyond that, its untested. Can you try the previous version?


Reply to this email directly or view it on GitHub:
https://github.com/html-writr/Html-Writr/issues/1#issuecomment-2889644

@jacklightbody
Copy link
Owner

@ahupowerdns
Copy link
Author

Thanks for your help Jack! This works better! However, when I 'save' a file
I edited, it gets replaced by a 0 byte file.

I do get this error:

[Mon Nov 28 08:01:38 2011] [error] [client 127.0.0.1] PHP Notice: Undefined
variable: dir in /var/www/Html-Writr/writr.php on line 60, referer:
http://127.0.0.1/Html-Writr/writr_edit.php?file=test.html

Permissions are all set to 'allow everything'.

Any idea?

Bert

On Sun, Nov 27, 2011 at 11:52:50AM -0800, jack wrote:

hey,
the last known working version was as off https://github.com/html-writr/Html-Writr/tree/74f88b1f739655f6490b8d48e7cad9659a5a4641 Beyond that, its untested. Can you try the previous version?


Reply to this email directly or view it on GitHub:
https://github.com/html-writr/Html-Writr/issues/1#issuecomment-2889644

@jacklightbody
Copy link
Owner

no idea. Unfortunately, html writr isn't being actively developed by me any more, and I haven't experienced these problems myself, so I have no idea or time to fix it.
On Nov 28, 2011, at 2:04 AM, ahupowerdns wrote:

Thanks for your help Jack! This works better! However, when I 'save' a file
I edited, it gets replaced by a 0 byte file.

I do get this error:

[Mon Nov 28 08:01:38 2011] [error] [client 127.0.0.1] PHP Notice: Undefined
variable: dir in /var/www/Html-Writr/writr.php on line 60, referer:
http://127.0.0.1/Html-Writr/writr_edit.php?file=test.html

Permissions are all set to 'allow everything'.

Any idea?

Bert

On Sun, Nov 27, 2011 at 11:52:50AM -0800, jack wrote:

hey,
the last known working version was as off https://github.com/html-writr/Html-Writr/tree/74f88b1f739655f6490b8d48e7cad9659a5a4641 Beyond that, its untested. Can you try the previous version?


Reply to this email directly or view it on GitHub:
https://github.com/html-writr/Html-Writr/issues/1#issuecomment-2889644


Reply to this email directly or view it on GitHub:
https://github.com/html-writr/Html-Writr/issues/1#issuecomment-2893657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants