shurco / litecart

🛒 litecart - shopping cart in 1 file with card and cryptocurrency payment support
MIT License
172 stars 33 forks source link

🐛 [Bug]: ERROR:failed to render: render: template index does not exist #67

Closed jiaotiliu closed 8 months ago

jiaotiliu commented 9 months ago

Bug Description

image

I can access Admin UI,but when I setted up,I cant access Cart UI

How to Reproduce

I build it with docker error log 2023/11/22 10:31:54 | stdout | {"level":"error","latency":"332.804µs","status":500,"method":"GET","url":"/","error":"failed to render: render: template index does not exist","time":"2023-11-22T02:31:54Z","message":"Server error"}

Expected Behavior

Cant access Cart UI

litecart Version

v0.1.5

Code Snippet (optional)

No response

Checklist:

shurco commented 9 months ago

Have you updated or is this the first installation?

jiaotiliu commented 9 months ago

Have you updated or is this the first installation?

This is my first installation

jiaotiliu commented 9 months ago

Have you updated or is this the first installation?

I reinstall litecart(v0.1.6),the UI is work.but Spectrocoin pay method still not work.This is the docker log:

date stream content
2023/11/23 10:52:50 stdout {"level":"warn","latency":"987.676µs","status":400,"method":"POST","url":"/cart/payment","time":"2023-11-23T02:52:50Z","message":"Client error"}
2023/11/23 10:52:41 stdout {"level":"info","latency":"568.16µs","status":200,"method":"GET","url":"/api/_/settings/spectrocoin","time":"2023-11-23T02:52:41Z","message":"Success"}
shurco commented 9 months ago

Did you do everything according to the instructions? All fields with settings are required to be filled out!

jiaotiliu commented 9 months ago

Yes,I have setted up it image

jiaotiliu commented 9 months ago

May be only Stripe and Spectrocoin payment method all setted,the Payment system can work?

shurco commented 9 months ago

May be only Stripe and Spectrocoin payment method all setted,the Payment system can work?

This doesn't depend on it. You apparently have an internal error. I tried to deploy a new project, created a new merchant in Spectrocoin and everything worked for me. I'll think about how to catch your error.

jiaotiliu commented 9 months ago

May be only Stripe and Spectrocoin payment method all setted,the Payment system can work?

This doesn't depend on it. You apparently have an internal error. I tried to deploy a new project, created a new merchant in Spectrocoin and everything worked for me. I'll think about how to catch your error.

Is it possible that the reason behind my utilization of Docker to deploy LiteCart on Synology's DiskStation and accessing the website via Cloudflare Tunnel?

jiaotiliu commented 9 months ago

May be only Stripe and Spectrocoin payment method all setted,the Payment system can work?

This doesn't depend on it. You apparently have an internal error. I tried to deploy a new project, created a new merchant in Spectrocoin and everything worked for me. I'll think about how to catch your error.

I deploy litecart on linux(manjaro),and created a new merchant in Spectrocoin,the same error image

{"level":"info","latency":"218.09µs","status":200,"method":"GET","url":"/api/cart/payment","time":"2023-11-29T21:43:37+08:00","message":"Success"}
{"level":"warn","latency":"1.521689ms","status":400,"method":"POST","url":"/cart/payment","time":"2023-11-29T21:43:38+08:00","message":"Client error"}
{"level":"info","latency":"346.462µs","status":200,"method":"GET","url":"/api/_/settings/spectrocoin","time":"2023-11-29T21:49:53+08:00","message":"Success"}
{"level":"warn","latency":"1.552585ms","status":400,"method":"POST","url":"/cart/payment","time":"2023-11-29T21:57:00+08:00","message":"Client error"}
shurco commented 9 months ago

Spectrocoin usually returns an error if it doesn't like the parameters, I'll try to add error output to the browser console. Maybe this will help. I recently released a new version, maybe it will help.

jiaotiliu commented 9 months ago

Spectrocoin usually returns an error if it doesn't like the parameters, I'll try to add error output to the browser console. Maybe this will help. I recently released a new version, maybe it will help.

I set the test products price up to $2 instead of $1,its work!(v1.0.7)

shurco commented 9 months ago

Spectrocoin usually returns an error if it doesn't like the parameters, I'll try to add error output to the browser console. Maybe this will help. I recently released a new version, maybe it will help.

I set the test products price up to $2 instead of $1,its work!(v1.0.7)

Strange. I tried to add a product costing 1 dollar and pay with crypto - everything works for me.

jiaotiliu commented 9 months ago

Spectrocoin usually returns an error if it doesn't like the parameters, I'll try to add error output to the browser console. Maybe this will help. I recently released a new version, maybe it will help.

I set the test products price up to $2 instead of $1,its work!(v1.0.7)

Strange. I tried to add a product costing 1 dollar and pay with crypto - everything works for me.

In my place, occasional work, not always work,When I change the price, he will start working