So I did the full cutover to R2, rcloned my wasabi (s3 bucket) to cloudflare.
BTW, really amazing work here @digitalpoint, congrats on this addon.
Mostly went ok, noticing a few errors this morning:
One particular attachment is generating this on the front end:
- Error: Call to a member function getExistingAbstractedDataPath() on null
- src/addons/DigitalPoint/Cloudflare/XF/ControllerPlugin/Attachment.php:9
- Generated by: Unknown account
- Sep 17, 2023 at 5:56 AM
Stack trace
#0 src/XF/Pub/Controller/Attachment.php(45): DigitalPoint\Cloudflare\XF\ControllerPlugin\Attachment->displayAttachment(Object(XFMG\XF\Entity\Attachment))
#1 src/addons/Truonglv/Api/XF/Pub/Controller/Attachment.php(32): XF\Pub\Controller\Attachment->actionIndex(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(352): Truonglv\Api\XF\Pub\Controller\Attachment->actionIndex(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Attachment', 'Index', Object(XF\Mvc\RouteMatch), Object(Truonglv\Api\XF\Pub\Controller\Attachment), Object(XF\Mvc\Reply\Reroute))
#4 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Truonglv\Api\XF\Pub\Controller\Attachment), Object(XF\Mvc\Reply\Reroute))
#5 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#7 src/XF.php(524): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
Request state
array(4) {
["url"] => string(59) "/media/c40c4fb8-bbc7-4830-9cfe-a3880a6129d1-jpeg.32889/full"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/media/c40c4fb8-bbc7-4830-9cfe-a3880a6129d1-jpeg_32889/full"] => string(0) ""
}
["_POST"] => array(0) {
}
}
Also getting a healthy amt of the below, these look like legacy media.
- ErrorException: [E_WARNING] fopen(/home/nginx/domains/mysite.com/public/internal_data/image_cache/153/153829-e61d08ca32fba9005fd255213f7be8fc.data): Failed to open stream: Permission denied
- src/vendor/league/flysystem/src/Adapter/Local.php:157
- Generated by: Unknown account
- Sep 17, 2023 at 1:13 AM
Stack trace
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fop...', '/home/nginx/dom...', 157)
#1 src/vendor/league/flysystem/src/Adapter/Local.php(157): fopen('/home/nginx/dom...', 'w+b')
#2 src/vendor/league/flysystem/src/Filesystem.php(122): League\Flysystem\Adapter\Local->writeStream('image_cache/153...', Resource id #13, Object(League\Flysystem\Config))
#3 [internal function]: League\Flysystem\Filesystem->putStream('image_cache/153...', Resource id #13, Object(League\Flysystem\Config))
#4 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(431): call_user_func_array('League\\Flysyste...', Array)
#5 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(395): League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod('putStream', Array)
#6 src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php(71): League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall('putStream', Array)
#7 src/vendor/league/flysystem/src/MountManager.php(615): League\Flysystem\EventableFilesystem\EventableFilesystem->putStream('image_cache/153...', Resource id #13, Array)
#8 src/XF/Util/File.php(204): League\Flysystem\MountManager->putStream('image_cache/153...', Resource id #13, Array)
#9 src/XF/Service/ImageProxy.php(258): XF\Util\File::copyFileToAbstractedPath('/home/nginx/dom...', 'internal-data:/...')
#10 src/addons/ThemeHouse/ImageOptimizer/XF/Service/ImageProxy.php(20): XF\Service\ImageProxy->finalizeFromFetchResults(Object(ThemeHouse\ImageOptimizer\XF\Entity\ImageProxy), Array)
#11 src/XF/Service/ImageProxy.php(105): ThemeHouse\ImageOptimizer\XF\Service\ImageProxy->finalizeFromFetchResults(Object(ThemeHouse\ImageOptimizer\XF\Entity\ImageProxy), Array)
#12 src/XF/Service/ImageProxy.php(39): XF\Service\ImageProxy->refetchImage(Object(ThemeHouse\ImageOptimizer\XF\Entity\ImageProxy))
#13 src/XF/Proxy/Controller.php(122): XF\Service\ImageProxy->getImage('
http://i223.pho...')
#14 proxy.php(34): XF\Proxy\Controller->outputImage('
http://i223.pho...', '7e5f6c7b2e9182d...')
#15 {main}
Request state
array(4) {
["url"] => string(169) "/proxy.php?image=http%3A%2F%2Fi223.photobucket.com%2Falbums%2Fdd55%2Fmarkfulton%2FMosport%2520ALMS%2520July%25202012%2FP1060176.jpg&hash=7e5f6c7b2e9182d8b6491bede5e78d35"
["referrer"] => string(60) "
https://www.mysite.com/threads/mosport.3025/"
["_GET"] => array(2) {
["image"] => string(92) "
http://i223.photobucket.com/albums/dd55/markfulton/Mosport ALMS July 2012/P1060176.jpg"
["hash"] => string(32) "7e5f6c7b2e9182d8b6491bede5e78d35"
}
["_POST"] => array(0) {
}
}