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

A couple of JS issues #104

Closed
AstonDavies opened this issue Jan 14, 2017 · 5 comments
Closed

A couple of JS issues #104

AstonDavies opened this issue Jan 14, 2017 · 5 comments

Comments

@AstonDavies
Copy link

Hi @hacdias

I have now got my go environment setup so I can build from source. A couple of new issues now arise:

  1. When trying to save the config.toml JS throws:
PUT http://domain.com/admin/webdav/config.toml 500 (Internal Server Error)
Promise @ common.js:173
webdav.put @ common.js:157
saveContent @ editor.js:224
document.querySelector.addEventListener.event @ editor.js:238
editor.js:231 Internal Server Error
  1. When using the delete key to edit a field, the next character is deleted and then a dialog is shown asking if I really want to "delete 1 file(s)"

Thanks

@hacdias
Copy link
Member

hacdias commented Jan 14, 2017

Sorry but I don't receive any error here @AstonDavies :/ Can you show me your config.toml so I can try to reproduce the error?

@AstonDavies
Copy link
Author

Here it is:

SectionPagesMenu = "main"
baseurl = "http://dev.astondavies.co.uk/simonchurch/"
content = ""
languageCode = "en-gb"
publishDir = "/www/mmfc/public"
title = "Simon Church Electrical Contractors, Wiltshire and the South West"

[menu]

  [[menu.main]]
    identifier = "partp"
    name = "Part P"
    url = "/partp/"
    weight = 80.0

  [[menu.main]]
    identifier = "buildingprojects"
    name = "Building Projects"
    url = "/buildingprojects/"
    weight = 70.0

@AstonDavies
Copy link
Author

I ran it locally and got this from Caddy:

14/Jan/2017:14:25:51 +0000 [PANIC /admin/webdav/config.toml] /home/jeremy/Source/gocode/src/github.com/pelletier/go-toml/tomltree_conversions.go:90 - unsupported value type map[string]interface {}: map[weight:80 identifier:partp name:Part P url:/partp/]

This is when trying to save the config.toml file

@hacdias
Copy link
Member

hacdias commented Jan 14, 2017

Hey @AstonDavies, I'll solve it as soon as I can. In the meanwhile, can you transfer this issue to https://github.com/hacdias/caddy-filemanager/issues? This issue is related with File Manager code. 👍

@AstonDavies
Copy link
Author

Ok @hacdias I will close this here and create a new issue in filemanager.

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