Giter VIP home page Giter VIP logo

Comments (6)

chekun avatar chekun commented on September 28, 2024

上传图片出错?是模型自带的上传图片功能出错,还是用的上传字段?
另外,可以看一下报错信息,前端的可打开chrome的开发者工具看网络请求,后端的话可以看一下nginx的error日志,然后贴出来,我们一起研究下 😃

from dilicms.

carl-G avatar carl-G commented on September 28, 2024

应该不是代码的问题。在apache里一切正常的,上传到了nginx就出了问题,您有过在nginx方面的配置经验吗?

from dilicms.

carl-G avatar carl-G commented on September 28, 2024

点击上传之后会报如下:
Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

UPDATE web_attachments SET model = '2', from = 0, content = '12' WHERE aid in (0,)

Filename: /xxx/admin/controllers/content.php

Line Number: 358

from dilicms.

chekun avatar chekun commented on September 28, 2024

我一直都是使用nginx的。
嗯,是个BUG,好像是传递附件的🆔没有正确被提交到服务器造成的。
PS:你用的那个版本的DiliCMS,因为我看最新版本的358行已经不是这个了。

from dilicms.

carl-G avatar carl-G commented on September 28, 2024

谢谢啦,我这边问题解决了,我这边用的是被改过的2.4版本。原因是因为放在别人的服务器那里,他没有给我权限。。。所以无法提交服务器,我改变路径就发现可以,然后就发现原因了。现在已经调整好了。谢谢您的指点!

from dilicms.

chekun avatar chekun commented on September 28, 2024

Good 👍

from dilicms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.