I guess any extension using the FTPClient class is broken with J3.8.0.
I have an example one, but it needs an FTP account on the german DWD server. Unfortunately they don't give them out anymore since the service is going to shut down soon
Works
White page of death due to missing wrapper for "buffer"
J3.8.0
The failing code line is https://github.com/joomla/joomla-cms/blob/staging/libraries/src/Client/FtpClient.php#L858:
$tmp = fopen('buffer://tmp', 'br+');
Since J3.8.0 it returns false.
The responsible PR is #16934 which renamed JBuffer.
Thus pinging @laoneo
According to Michael it worked before due to the way JLoader loads the classes into memory. With the namespaced classes and its autoloader, that is no longer the case and we need to somehow register the wrapper in a better way.
Adding stream_wrapper_register('buffer', '\\Joomla\\CMS\\Utility\\BufferStreamHandler');
to the constructor of FtpClient did get it back to work, but I got a warning "stream_wrapper_register(): Protocol buffer:// is already defined." so that's not right.
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Priority | Medium | ⇒ | Urgent |
Status | New | ⇒ | Confirmed |
Didn't try yet. I was to tired to look further
@jpreville You can add the line new JBuffer;
to your code and it will work. Looks like a hack to me though.
@Bakual Thank you for the reply. Exactly where do i try placing the
stream_wrapper_register('buffer', '\Joomla\CMS\Utility\BufferStreamHandler');
in the FtpClient.php file?
In the constructor or before the line I referenced in the issue description.
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-22 08:49:13 |
Closed_By | ⇒ | franz-wohlkoenig |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/18024
closed as having Pull Request #18060
I can verify that i'm also getting the same error. On a couple plugins on my site. Is there a easy solution?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18024.