Profile picture cropping modal issue
-
Here's the link target for build/public/src/modules/cropper.js
/node_modules/cropperjs/dist/cropper.min.js
And build/public/src/modules/Chart.js:
node_modules/chart.js/dist/Chart.min.js
And build/public/src/modules/mousetrap.js:
node_modules/mousetrap/mousetrap.min.js
-
Are those the exact readouts from
readlink
?I get different results.
-
Exact readouts:
/Users/seanmiller/Documents/nodebb/NodeBB/node_modules/cropperjs/dist/cropper.min.js
/Users/seanmiller/Documents/nodebb/NodeBB/node_modules/chart.js/dist/Chart.min.js
/Users/seanmiller/Documents/nodebb/NodeBB/node_modules/mousetrap/mousetrap.min.jsThese look pretty absolute, yes?
-
Ok so the issue is indeed because the links are absolute. I'll see if I can get a fix. In the meantime, you should be able to use this command on those files:
cp --remove-destination `readlink cropper.js` cropper.js
-
Hey @PitaJ,
I think I found another absolute symlink:
readlink /build/public/plugins/nodebb-plugin-markdown/styles
gives:
/Users/seanmiller/Documents/nodebb/NodeBB/node_modules/nodebb-plugin-markdown/public/styles
In that same directory, readlink js yields:
/Users/seanmiller/Documents/nodebb/NodeBB/node_modules/nodebb-plugin-markdown/public/js
It may be that all the symlinks are absolute in this build.
Missing a railscasts.css causes this:
404 Not Found
Route Count
/plugins/nodebb-plugin-markdown/styles/railscasts.css 59 -
Yep those should be fixed as well
-
Hi @PitaJ
I replaced those absolute folder symlinks in the plugins directories with the actual folders and their contents. I'm still getting these errors in my console logs when I load pages, though:
404 Not Found
Route Count
/plugins/nodebb-plugin-markdown/styles/railscasts.css 96
/assets/uploads/profile/1-profileavatar.png 9The odd thing is that it's only happening in Chrome, not Firefox:
forum.driversbydesign.com/:35 GET http://forum.driversbydesign.com/plugins/nodebb-plugin-markdown/styles/railscasts.css net::ERR_ABORTED
(index):322 GET http://forum.driversbydesign.com/assets/uploads/profile/1-profileavatar.png 404 (Not Found) -
Try clearing your cache.
-
Do you mean the browser cache?
Did that. Now both Firefox and Chrome are spitting out the following errors in the console log:
Firefox:
GET http://forum.driversbydesign.com/plugins/nodebb-plugin-markdown/styles/railscasts.css [HTTP/1.1 404 Not Found 92ms]Chrome:
Failed to load resource: the server responded /plugins/nodebb-plugin-markdown/styles/railscasts.css
1-profileavatar.png Failed to load resource: the server responded with a status of 404 (Not Found)
railscasts.css Failed to load resource: the server responded with a status of 404 (Not Found) -
Hi @PitaJ,
I'm still having an issue with NodeBB not being about to find a profile picture I set up on my (admin) profile. It happens on Firefox or Chrome. It's hard to discern a pattern--why some actions cause the browser not to be able to load the image, while the other still can.
Any other suggestions?
Sean