You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MultiSite pull logic does not handle attachments correctly. The attached file is not copied and the resulting URL is wrong. This can lead to a 500 internal error
e.g.
After copying from woocommerce.wp.a2z into blocks.wp.a2z the URL for the WooCommerce icon was set to
oik_clone_attachment_file() needs to create the directory for the target file otherwise you get a strange message from PHP.
Warning: copy(
C:\apache\htdocs\wp-a2z/wp-content/uploads/sites/10/2016/07/wordpress-core-icon-256x256.jpg):
failed to open stream:
No such file or directory in
C:\apache\htdocs\wordpress\wp-content\plugins\oik-clone\tests\test-php-copy.php on line 9
It's not at all obvious since the file name given in the message is the target file name.
If there was a problem with the source file you'd see the same message but with the invalid source file name.
Solution: mkdir( dirname( $target )) before the copy().
but you also need to check that the folder doesn't already exist.
The MultiSite pull logic does not handle attachments correctly. The attached file is not copied and the resulting URL is wrong. This can lead to a 500 internal error
e.g.
After copying from woocommerce.wp.a2z into blocks.wp.a2z the URL for the WooCommerce icon was set to
but the file did not exist.
Copying the file manually didn't seem to resolve the problem.
Probably due to
_wp_attachment_metadata
being wrong/missing.The text was updated successfully, but these errors were encountered: