聯(lián)系官方銷售客服
1835022288
028-61286886
POSCMS后臺(tái)一鍵上傳素材到微信素材庫(kù)報(bào)錯(cuò)
報(bào)錯(cuò)信息
A PHP Error was encountered
Severity: 8192
Message: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead
Filename: helpers/function_helper.php
Line Number: 3189
Backtrace:
File: /www/diy/dayrui/helpers/function_helper.php
Line: 3189
Function: curl_setoptFile: /www/diy/dayrui/controllers/admin/Wmaterial.php
Line: 1263
Function: dr_post_dataFile: /www/diy/dayrui/controllers/admin/Wmaterial.php
Line: 598
Function: _thumb_media_idFile: /www/diy/Init.php
Line: 172
Function: requireFile: /www/index.php
Line: 44
Function: requireFile: /www/admin.php
Line: 8
Function: require
沒有開始curl
【蘇先生】1樓 phpinfo 顯示 curl已經(jīng)開啟啊
百度了好久 ,仍然沒解決 是不是和PHP版本有關(guān) 我的環(huán)境是Nginx 、PHP5.5.38 、MySql5.5.54
【甄曉鑫】4樓
什么?
我設(shè)置了POSCMS使用騰訊COS遠(yuǎn)程附件
我取消使用騰訊COS遠(yuǎn)程附件,使用本地儲(chǔ)存
然后重新編輯圖文素材,點(diǎn)擊 一鍵上傳到微信素材庫(kù)
就正常
難道是使用遠(yuǎn)程附件的功能遠(yuǎn)程圖片無(wú)法通過(guò)POSCMS上傳到微信??
從代碼可以看出是超時(shí)了。你遠(yuǎn)程附件cms會(huì)下載到本地再上傳到微信,多了一個(gè)下載過(guò)程,網(wǎng)絡(luò)不好的情況下容易超時(shí)導(dǎo)致上傳失敗,我這樣分析不知道對(duì)不對(duì)

用的騰訊云COS 同時(shí)通過(guò)CDN加速,CDN加速域名配置了HTTPS,但是設(shè)置的跟隨協(xié)議, 圖片獲取速度也沒有問(wèn)題的
不清楚問(wèn)題出在哪
切換PHP5.4
【徐樹】9樓 暈,不是說(shuō)POSCMS連PHP7都支持嗎,咋隨便遇到個(gè)問(wèn)題就要換PHP版本...