Comments (6)
上传图片出错?是模型自带的上传图片功能出错,还是用的上传字段?
另外,可以看一下报错信息,前端的可打开chrome的开发者工具看网络请求,后端的话可以看一下nginx的error日志,然后贴出来,我们一起研究下 😃
from dilicms.
应该不是代码的问题。在apache里一切正常的,上传到了nginx就出了问题,您有过在nginx方面的配置经验吗?
from dilicms.
点击上传之后会报如下:
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.
我一直都是使用nginx的。
嗯,是个BUG,好像是传递附件的🆔没有正确被提交到服务器造成的。
PS:你用的那个版本的DiliCMS,因为我看最新版本的358行已经不是这个了。
from dilicms.
谢谢啦,我这边问题解决了,我这边用的是被改过的2.4版本。原因是因为放在别人的服务器那里,他没有给我权限。。。所以无法提交服务器,我改变路径就发现可以,然后就发现原因了。现在已经调整好了。谢谢您的指点!
from dilicms.
Good 👍
from dilicms.
Related Issues (20)
- 新增数据库备份还原等功能
- 文件上传问题! HOT 6
- 分类模型超过3级就有bug
- v2.4.0计划
- 安装程序在windows apache php 环境下无法正常运行 HOT 2
- typo
- BUG
- database.php配置归一化 HOT 3
- setting()支持.操作,简化获取多维数组的某个key的value的操作
- setting()方法支持自动加载分类模型数据
- 支持CI3.0内核 HOT 3
- 插件Plugin_manager.php
- Stored-XSS Vulnerability Found in System setting -> site setting HOT 1
- There is a ulnerability that User credentials are sent in clear text(admin/index.php)
- XSS Vulnerability Found in DiliCMS 2.4.0 in tab=site_attachment HOT 1
- There is two CSRF vulnerability that can delete user or usergroup HOT 1
- Stored-XSS Vulnerability Found in System setting -> site setting-> POSTdata:site_name
- Stored-XSS Vulnerability Found in System setting -> site setting-> POSTdata:site_domain
- Stored-XSS Vulnerability Found in System setting -> site setting-> POSTdata:site_logo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dilicms.