简体   繁体   中英

Bug on installing plugin in opencart extension installer

On installing rest API in extension installer, got the warning as enable FTP.After enabling the FTP with necessary information, getting warning as

SyntaxError:Unexpected token < in JSON at position 0    
Ok    
<b>Warning</>:ftp_chdir();Failed to change directory. in <b>/var/www/html/admin/controller/extension/installer.php</b> on line<b>298</b>{"error":"Could not set root directory as"}

I have added FTP root as public_html/ and I have transferred the opencart upload folder to /var/www/html. Is FTP root is incorrect?

Well if your root folder is called just "html" why have you set it to "public_html"?

The FTP root is what appears in "Remote site:" when you log in with those FTP details in Filezilla for example:

在此处输入图片说明

So in your case, it may be "/html/" and notice that you should add the trailing slash (/).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM