Error in customization & Information regarding admin accounts


#1


I started using writefreely 0.7 and everything seems to work fine but I am not able to customize any blog and it shows ‘server error’ when I click on customize.

Also, during setup I didn’t create the admin account but when I signed up on the local server, the first account I created seems to have defaulted to admin account. Is it normal?


#2

Can you share the application logs around when that error comes up?

Yes, the first account on the server is always the admin account.


#3

@matt here can I find the application logs?


#4

The application will output them directly to the terminal when you run writefreely


#5


@matt It did. Here is the log


#7

Looks like it can’t find the template file. From the directory where you’re running the writefreely command, does this path exist? templates/user/collection.tmpl


#8

Yes. It exists


#9

And if you run:

writefreely --debug

It shows these lines somewhere in the logs while starting up?

Loading user pages...
[...]
  user/collection.tmpl

#10

image
Yes, it does.


#11

Ah, it’s the slash.

The path is hard-coded for Unix-like operating systems (user/collection.tmpl), not Windows (user\collection.tmpl), so when you try to load the page it can’t find the template. I’ll fix this in the next release.

Thanks for your help debugging this!


#12

Haha. But everything else works pretty fine! Any temporary fix to the problem?


#13

If you’re comfortable compiling the application, you could change account.go, line 799 (the one shown in the previous error) to use a backslash instead of a forward-slash – as well as any other place where you see if err := userPages["user/

The next release should be out soon, though. There were quite a few bugs that have been brought up.


#14

Nah. I am not so much into technicality. :wink: I will patiently wait for your next release.
Also, you might wanna know, I made a blog post about blogging in 2019 where I have highlighted write.as, and I will continue popularising writefreely & write.as :slight_smile:


#15

That’s awesome, I really appreciate that! Do you mind sharing the article here, or emailing it to me?


#16

Yes, why not!


#17

Great article! Really appreciate the mention :slightly_smiling_face:

By the way, v0.7.1 is out now, which should fix the original issue you mentioned in this thread. But let me know if you still notice any issues!