View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003372 | Composr | core | public | 2017-11-24 01:36 | 2020-03-23 21:30 |
Reporter | Joe | Assigned To | Chris Graham | ||
Severity | Minor-bug | ||||
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Fixed in Version | |||||
Summary | 0003372: Upload issues on MSN's | ||||
Description | When uploading avatars through an MSN, the file is stored on the primary site regardless of where it was uploaded from. When viewing the primary site, everything displays fine, but the secondary site references its own base URL when it should reference the primary site URL. For example: User uploads avatar on secondary site (2nd.com), file gets stored on primary (1st.com) Viewing forum posts and profiles on the primary site (1st.com) appear to have the correct URL (this references avatars on 1st.com) However, when viewing forum posts or profiles on the secondary site (2nd.com), the avatar image is broken as it's trying to reference an image stored on 1st.com There may be a setting I'm missing somewhere, or it could be a bug. | ||||
Tags | No tags attached. | ||||
Time estimation (hours) | |||||
Sponsorship open | |||||
|
I have not tried uploading other types of files; only avatars. So the issue, if any, may not be isolated to avatars alone. |
|
Ah shoot, correction in my description post: "However, when viewing forum posts or profiles on the secondary site (2nd.com), the avatar image is broken as it's trying to reference an image stored on 2ND.com" |
|
Please confirm you have your board_prefix setting in _config.php correctly set. This is your forum base URL. If you can confirm it is correctly set, I'll reopen this issue - but a code review tells me that it should work okay. |
|
Chris, I have set the board_prefix for both sites (even though I'm not sure if this needed to be done on the primary site too). I was mistaken though, I misinformed you. Here's what's happening: Upload avatar on 2nd site, file gets stored on 2nd site (should get stored on 1st site) Profile view from 2nd site references 1st site Profile view from 1st site references 1st site It seems that both sites reference the correct URL, but if I upload through the 2nd site, it doesn't store itself on the 1st. However, if I upload the avatar through the 1st site, it displays correctly on both sites. |
|
To confirm, the correct value for board_prefix was already configured for the secondary site but not for the primary. So I went ahead and entered it for the primary, but the problem still persists. |
|
cns.php (74,803 bytes) |
|
Fixed sources/forum/cns.php attached. Uploads can only be stored on the site they are uploaded to, as there is no data-saving connection between the sites. However, it is supposed to use absolute URLs appropriately to workaround that and there were a couple of bugs. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-11-24 01:36 | Joe | New Issue | |
2017-11-24 01:37 | Joe | Note Added: 0005248 | |
2017-11-24 01:39 | Joe | Note Added: 0005249 | |
2017-11-27 16:52 | Chris Graham | Note Added: 0005272 | |
2017-11-27 16:52 | Chris Graham | Status | non-assigned => closed |
2017-11-27 16:52 | Chris Graham | Resolution | open => suspended |
2017-11-28 10:57 | Joe | Note Added: 0005280 | |
2017-11-28 10:59 | Joe | Note Added: 0005281 | |
2017-11-29 16:51 | Chris Graham | File Added: cns.php | |
2017-11-29 16:52 | Chris Graham | Note Added: 0005284 | |
2017-11-29 16:52 | Chris Graham | Assigned To | => Chris Graham |
2017-11-29 16:52 | Chris Graham | Status | closed => resolved |
2017-11-29 16:52 | Chris Graham | Resolution | suspended => fixed |
2020-03-23 21:30 | Chris Graham | Category | msn => core |