无法标准化 file.png 的图像参数 - MediaWiki

发布于 2025-01-19 10:39:19 字数 635 浏览 5 评论 0原文

我正在使用:

MediaWiki 1.37.1 PHP 7.4.3(FPM-FCGI) Elasticsearch 5.6.16 Visualeditor 0.1.2

当我转到页面并单击edit>时, 插入>图像和媒体;当我开始搜索文件时,它可以很好地工作,除非有PDF文件,否则查询返回错误消息。 这仅发生在PDF文件中。

我到处搜索此代码错误,找不到解决方案。

这是请求url:

/pi.php?action = query& format=json& generator = allimages& gaisort = timestamp = timestamp&gaidir = descending&iiiurlheight = 200& amp; = imageInfo& gaiuser = admin& iiurlwidth = 300& gailimit = 15

i当我从查询中删除'prop = imageInfo'时注意到,它无问题。

任何想法,建议和解决方案都非常感谢。

I'm using:

MediaWiki 1.37.1
PHP 7.4.3 (fpm-fcgi)
Elasticsearch 5.6.16
VisualEditor 0.1.2

When I go to a page and click on Edit > Insert > Images and media; And when I start searching for files it works great, unless there's a PDF file, then the query returns an error message.
This only happens with PDF files.

I searched everywhere for this code error and I couldn't find a solution.

This is the request url:

/api.php?action=query&format=json&generator=allimages&gaisort=timestamp&gaidir=descending&iiurlheight=200&iiprop=dimensions%7Curl%7Cmediatype%7Cextmetadata%7Ctimestamp%7Cuser&prop=imageinfo&gaiuser=Admin&iiurlwidth=300&gailimit=15

I noticed when I remove the 'prop=imageinfo' from the query, it works with no problems.

Any ideas, suggestions and solutions are very appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柳若烟 2025-01-26 10:39:19

我删除了 PdfHandler 并且工作正常。

I removed PdfHandler and it worked fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文