• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Windows server upload image error

Status
Not open for further replies.

liona

Chevereto Member
尊敬的用户,请注意技术支持是免费的,但请注意:



检查⚠️修复第一
⏳如果您需要及时响应购买额外支持,票务响应时间在 7 个工作日内
🇨🇱在CLST工作时间提供支持
🚧 技术支持 只相机软件问题
▶ 复制步骤

1. windows server 2012 and php 7.4.3 and mysql 5.7 with apache
2. change php.ini max_file_size and post_max_size to 10000M
3. upload image

others

if make app/lib/classes/class.upload.php

if (isset($this->source_image_exif)) {
$this->source_image_exif['FileName'] = $this->source_filename;
if (isset($this->source_image_exif['Orientation'])) {
ImageManagerStatic::make($this->downstream)->orientate()->save();
}
}

to comment will work, but, the watermark will not work.




😢 不用的结果



错误报告

20211102205604.jpg - 出了点问题:⚠ errorId #634c15ca6601ff4a

由于 debug_level=2 启用打印调试



不支持编码格式 (tmp)。



#0 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\vendor\intervention\image\src\Intervention\Image\AbstractDriver.php(79): Intervention\Image\AbstractEncoder->process(Object(Intervention) \Image\Image), 'tmp', NULL)

#1 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\vendor\intervention\image\src\Intervention\Image\Image.php(121): Intervention\Image\AbstractDriver->encode(Object(Intervention) \Image\Image), 'tmp', NULL)

#2 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\vendor\intervention\image\src\Intervention\Image\Image.php(146): Intervention\Image\Image->encode('tmp' , 空值)

#3 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\lib\classes\class.upload.php(169): Intervention\Image\Image->save()

#4 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\lib\classes\class.image.php(504): CHV\Upload->exec()

#5 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\lib\classes\class.image.php(646): CHV\Image::upload(Array, 'C:/phpstudy_pro...' , NULL, 数组, NULL, 真)

#6 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\routes\route.json.php(90): CHV\Image::uploadToWebsite(Array, Array, Array)

#7 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\lib\G\classes\class.handler.php(230): G\Handler->{closure}(Object(G\Handler))

#8 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\lib\G\classes\class.handler.php(130): G\Handler->processRequest()

#9 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\web.php(410): G\Handler->__construct(Array)

#10 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\app\loader.php(233): require_once('C:\\phpstudy_pro...')

#11 C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\index.php(20): include_once('C:\\phpstudy_pro...')

#12 {主要}





📃 错误日志信息



[09-Nov-2021 08:26:36 Asia/Shanghai] PHP Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting variable (T_VARIABLE) in C:\phpstudy_pro\WWW\tuku.ccsfu.edu.cn\installer.php on line 385

[09-Nov-2021 00:24:56 America/Santiago]

Aw, snap! Internal Server Error [debug @ error_log] - https://chv.to/v3debug



** errorId #4dbdeb664f11a4c9 **

> Intervention\Image\Exception\NotSupportedException [0]: Encoding format (tmp) is not supported.

At /app/vendor/intervention/image/src/Intervention/Image/AbstractEncoder.php:199



Stack trace:

#0 /app/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(79): Intervention\Image\AbstractEncoder->process(Intervention\Image\Image, 'tmp', NULL)

#1 /app/vendor/intervention/image/src/Intervention/Image/Image.php(121): Intervention\Image\AbstractDriver->encode(Intervention\Image\Image, 'tmp', NULL)

#2 /app/vendor/intervention/image/src/Intervention/Image/Image.php(146): Intervention\Image\Image->encode('tmp', NULL)

#3 /app/lib/classes/class.upload.php(169): Intervention\Image\Image->save()

#4 /app/lib/classes/class.image.php(504): CHV\Upload->exec()

#5 /app/lib/classes/class.image.php(646): CHV\Image::upload(Array, '/images/2021/11/09/', NULL, Array, NULL, true)

#6 /app/routes/route.json.php(90): CHV\Image::uploadToWebsite(Array, Array, Array)

#7 /lib/G/classes/class.handler.php(230): G\Handler->{closure}(G\Handler)

#8 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()

#9 /app/web.php(410): G\Handler->__construct(Array)

#10 /app/loader.php(233): require_once('/app/web.php')

#11 /index.php(20): include_once('/app/loader.php')



[2021 年 11 月 9 日 00:25:19 美洲/圣地亚哥]

啊,啪!内部服务器错误 [debug @ error_log] - https://chv.to/v3debug



** 错误编号 #d94fbd4bbb1a9deb **

> Intervention\Image\Exception\NotSupportedException [0]: 不支持编码格式 (tmp)。

在/app/vendor/intervention/image/src/Intervention/Image/AbstractEncoder.php:199



堆栈跟踪:

#0 /app/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(79): Intervention\Image\AbstractEncoder->process(Intervention\Image\Image, 'tmp', NULL)

#1 /app/vendor/intervention/image/src/Intervention/Image/Image.php(121): Intervention\Image\AbstractDriver->encode(Intervention\Image\Image, 'tmp', NULL)

#2 /app/vendor/intervention/image/src/Intervention/Image/Image.php(146): Intervention\Image\Image->encode('tmp', NULL)

#3 /app/lib/classes/class.upload.php(169): Intervention\Image\Image->save()

#4 /app/lib/classes/class.image.php(504): CHV\Upload->exec()

#5 /app/lib/classes/class.image.php(646): CHV\Image::upload(Array, '/images/2021/11/09/', NULL, Array, NULL, true)

#6 /app/routes/route.json.php(90): CHV\Image::uploadToWebsite(Array, Array, Array)

#7 /lib/G/classes/class.handler.php(230): G\Handler->{closure}(G\Handler)

#8 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()

#9 /app/web.php(410): G\Handler->__construct(Array)

#10 /app/loader.php(233): require_once('/app/web.php')

#11 /index.php(20): include_once('/app/loader.php')



[2021 年 11 月 9 日 00:25:34 美洲/圣地亚哥]

啊,啪!内部服务器错误 [debug @ error_log] - https://chv.to/v3debug



** 错误 ID #a00d0d3aea7df66e **

> Intervention\Image\Exception\NotSupportedException [0]: 不支持编码格式 (tmp)。

在/app/vendor/intervention/image/src/Intervention/Image/AbstractEncoder.php:199



堆栈跟踪:

#0 /app/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(79): Intervention\Image\AbstractEncoder->process(Intervention\Image\Image, 'tmp', NULL)

#1 /app/vendor/intervention/image/src/Intervention/Image/Image.php(121): Intervention\Image\AbstractDriver->encode(Intervention\Image\Image, 'tmp', NULL)

#2 /app/vendor/intervention/image/src/Intervention/Image/Image.php(146): Intervention\Image\Image->encode('tmp', NULL)

#3 /app/lib/classes/class.upload.php(169): Intervention\Image\Image->save()

#4 /app/lib/classes/class.image.php(504): CHV\Upload->exec()

#5 /app/lib/classes/class.image.php(646): CHV\Image::upload(Array, '/images/2021/11/09/', NULL, Array, NULL, true)

#6 /app/routes/route.json.php(90): CHV\Image::uploadToWebsite(Array, Array, Array)

#7 /lib/G/classes/class.handler.php(230): G\Handler->{closure}(G\Handler)

#8 /lib/G/classes/class.handler.php(130): G\Handler->processRequest()

#9 /app/web.php(410): G\Handler->__construct(Array)

#10 /app/loader.php(233): require_once('/app/web.php')

#11 /index.php(20): include_once('/app/loader.php')



[09-Nov-2021 05:38:57 UTC] PHP 警告:PHP 启动:无法加载动态库 'imagick'(尝试:C:\phpstudy_pro\Extensions\php\php7.4.3nts\ext\imagick(找不到指定的模块。), C:\phpstudy_pro\Extensions\php\php7.4.3nts\ext\php_imagick.dll (%1 不是有效的 Win32 应用程序。)) in Unknown on line 0

[09-Nov-2021 05:44:27 UTC] PHP 警告:PHP 启动:无法加载动态库 'imagick'(尝试:C:\phpstudy_pro\Extensions\php\php7.4.3nts\ext\imagick(找不到指定的模块。), C:\phpstudy_pro\Extensions\php\php7.4.3nts\ext\php_imagick.dll (%1 不是有效的 Win32 应用程序。)) in Unknown on line 0
 
Hi,

Kindly note that Chevereto has been made to be installed in Unix-like systems and we don't encourage neither recommend to install it under Windows-based servers.

Having said that, the issue that you are experiencing is because Chevereto can't write to the temp folder on that server. You need to enable PHP to write in the temp dir.

Hope it helps,
Rodolfo.
 
Hi again, before closing this topic for lack of activity you should be aware of the donate your infra initiative, which aims to get Chevereto supported in more platforms.

💖 If you want Windows support you can helps us by donating servers running that.
 
Dear @liona,

Unfortunately, this ticket has more than 14 days without a reply or feedback from you. We will now consider this ticket abandoned and its status is now closed.

Please, don't hesitate to create a new ticket if this matter is still causing you trouble. If this is already solved you can ignore this message.
 
Status
Not open for further replies.
Back
Top