-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[4.0] Upload & update Joomla via FTP #28029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@richard67, if the selected file cannot be uploaded because it is larger than the maximum upload size, we have to use the FTP upload method, but I cannot make it work. |
|
@wilsonge It seems we need a decision about FTP, if to keep it or if to drop it. |
|
We're keeping it. |
|
I can't make it work with Joomla! 3.x too. |
|
As I understand it, we only use FTP to update (write) files on the server but not to upload the selected file. |
Not as far as my understanding went (admittedly I've never tested FTP Modes). We use JFile::write https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_joomlaupdate/models/default.php#L443 (downloads) and JFile::upload when uploading a zip https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_joomlaupdate/models/default.php#L995 anything using JFile should respect the global configuration settings for FTP - that's the entire point of the JFile class to have the FTP wrapper |
Use FTP options from the configuration. Fix the connect function.
|
Tested locally with XAMPP on Windows 10.
|
administrator/components/com_joomlaupdate/src/View/Joomlaupdate/HtmlView.php
Show resolved
Hide resolved
@Quy , which FTP server are you using in Windows 10 (XAMPP is just a web server) ? For example, with the Filezilla server, you must grant privileges to your FTP user. |
in AKPostprocHybrid class
|
I have tested this item 🔴 unsuccessfully on 0447602 After I applied the patch and executed the command npm install this issues was not fixed and the same happened as like I didnt apply the patch. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28029. |
|
Tested the patch by following the instructions. Selecting "Write files directly" causes the form fields always to disappear. Selecting second or third option will display the form fields. Is this the expected behaviour? Previously, the form fields did disappear once. But after selecting around, the form fields were always displayed. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28029. |
|
Since the FTP credentials were implemented as a workaround for the wwwrun problem on web servers, such a server is necessary for a reliable test. Windows with xampp is the wrong system for this. A Unix based system with Apache and PHP as mod_php/apache2handler is required to test the correct use of FTP credentials. Do we have testers with such a base here? |
Pull Request for Issue #27945 .
Summary of Changes
Provides the FTP configuration details, depending on the installation method.
Fix the FTP connection.
Testing Instructions
System -> Global Configuration -> Server -> Enable FTP -> Yes
Save & Close
System -> Update - Joomla -> Upload & Update
Installation method -> Write files directly
It hides all FTP fields.
or -> Hybrid (use FTP only if needed)
Expected result
It displays the FTP fields (host, port, username, password, root).
Actual result
It hides the FTP fields (host, port, username, password, root).
Additional comment
You can push the test to the end by clicking on the "Upload & update" button, but you will need an update package containing these modifications, and of course an ftp configuration corresponding to your test server.