VirtualBox

Opened 7 years ago

#17971 new defect

Protocol error when using PHP rename over shared folders.

Reported by: reynierpm Owned by:
Component: shared folders Version: VirtualBox 5.2.18
Keywords: Cc:
Guest type: Windows Host type: Linux

Description

I am trying to rename/move a file that is living in a directory and I am giving a new name to the file and a new directory as well. Below is an snippet of such code:

rename($currentFilePath, $newname);

For some reason rename() is returning an error like the following:

Protocol error var/www/html/editor/application/models/forms_model.php 455

I am trying now executing the command mv directly into the VM and this is the result:

$ mv /var/www/html/epa_editor/public/epa_forms/archive/Clone_16621_SamplePDFFile_5mb.pdf "/var/www/html/epa _editor/public/epa_forms/stage/testing (Clone of Form #: 15615).pdf"
    mv: cannot move `/var/www/html/epa_editor/public/epa_forms/archive/Clone_16621_SamplePDFFile_5mb.pdf' to `/var/www/html/epa_editor/public/epa_forms/stage/testing (Clone of Form #: 15615).pdf': Protocol error

So apparently is a VBox issue with shared folders that has not been fixed.

Related issues closed as "fixed":

The original issue was reported at SO (https://stackoverflow.com/questions/52209856/php-5-3-3-rename-function-fails-with-protocol-error) looking for help but it's not a PHP error but VBox.

[1]: http://php.net/manual/en/function.rename.php [2]: https://stackoverflow.com/questions/19139434/php-move-a-file-into-a-different-folder-on-the-server [3]: https://www.virtualbox.org/ticket/1393

Change History (0)

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette