MySource Warning SYS0089

Hi,


** Warning: possible annoying newbie question



While trying to allow all users to see an image I uploaded, I changed the Media Folder's status to Live. After doing so, I receive the above warning message for any URI below _media. I've changed the status back to Under Construction but to no avail. How can I get rid of this warning?



Cheers

NJ

Where exactly are you getting this error? Also, have you granted Public Read permission to the Media folder?

[quote]Where exactly are you getting this error? Also, have you granted Public Read permission to the Media folder?
[right][post=“9803”]<{POST_SNAPBACK}>[/post][/right][/quote]



The URI I’m using is: http://matrixtest/_media/test.png



Both the media folder and test.png have public read permission enabled, both have Live status



This morning I discovered how to increase verbosity and the full error I get is:



–BEGIN–

MySource Warning

File: [SYSTEM_ROOT]/core/include/asset.inc Line: 684

Message: Asset #5 is not a site [SYS0089]

Backtrace: Show





PHP Warning

File: [SYSTEM_ROOT]/core/include/mysource.inc Line: 398

Message: Cannot modify header information - headers already sent by (output started at [SYSTEM_ROOT]/core/include/general.inc:174)

Backtrace: Show





MySource Notice

File: [SYSTEM_ROOT]/core/include/mysource.inc Line: 400

Message: URL “matrix.bacteria/_media/test.png” not found [SYS0218]

–END–



Cheers,

NJ

Yes, indeed. :slight_smile: Once the image goes live with Public Read, the URL changes. Check the Web Paths screen of the Image, and you'll see the new image URL. It'll probably be something like this:

    http://matrix.bacteria/__data/assets/image/5/test.png


This is to allow Apache to serve the image directly, instead of Matrix processing the request. If you want to retain the friendlier URL, you can uncheck the "Allow Unrestricted" option on the Details screen of the Image, but this will incur a processing penalty each time the image is viewed.

aaaah! I'm now that bit closer to getting my head around my source. Thanks! :smiley: