J3 Issue ?
avatar BPBlueprint
BPBlueprint
13 Jun 2019

Steps to reproduce the issue

Try to create subdirectories and upload files (pictures) into (sub)directories multiple times.

Expected result

Subdirectory "my_subdirectory" is placed into directory "my_directory".
Uploaded picture is placed into directory /my_directory/my_subdirectory.

Actual result

Most of the times subdirectories and pictures are placed into media-root (/images).

System information (as much as possible)

Joomla 3.9.8

Additional comments

I think this bug came with Joomla 3.9.8, but I am not sure for 100%.
Sometimes the media-manager works correctly. Most of the time it doesn´t.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar BPBlueprint BPBlueprint - open - 13 Jun 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Jun 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Jun 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 13 Jun 2019
avatar Quy
Quy - comment - 13 Jun 2019

Please test PR ##25184

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Jun 2019

Closed as having Pull Request #25184

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Jun 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-06-13 14:03:45
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - close - 13 Jun 2019
avatar bayareajenn
bayareajenn - comment - 13 Jun 2019

This was happening before 3.9.8. I think perhaps it was after 3.9.6 that the issue began.

What happens is the first time you go to Content -> Media and navigate to a directory within /images (say /images/blog) and upload an image it will work and put it in the correct place. If you go to another place and upload an image, it saves to the root of /images.

If you leave Content -> Media and go to Articles or something and then go back to Media, it will work once. Then it saves to the root again.

Should I have put this in the PR? I'll go over there next and figure out how to test it.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25192.

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

@franz-wohlkoenig will you please open this issue back up? Issue 25184 is not a patch to resolve this bug. Issue 25814 is just different code for the Media Manager to work the same way with different code. It's not meant to resolve the bug - the contributor only mentioned that "maybe" it would solve the bug (which it doesn't). But people testing that patch need to not be thinking of the bug when testing.

The bug still needs a patch.

So will you please open this back up so that people can post here and coders can come up with a patch?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25192.

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Jun 2019
Status Closed New
Closed_Date 2019-06-13 14:03:45
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - reopen - 14 Jun 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Jun 2019
Status New Discussion
avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

Thanks you @franz-wohlkoenig :)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25192.

avatar HLeithner
HLeithner - comment - 14 Jun 2019

@BPBlueprint could you make a git animation because I'm not sure how to replicate the issue.

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

@HLeithner here's what you do (I don't know how to make a git animation)...

  1. login to the backend
  2. Go to Content -> Media
  3. Select a directory inside /images (so a subfolder - if you don't have one, create one)
  4. Upload an image to a subdirectory of /images
    It might work the first time. It does for me. Then...
  5. Navigate to a different directory inside /images
  6. Upload an image to that different directory and the image doesn't save there. It saves to the root of /images.

Now, sometimes if I do the first upload and then leave Media and go to say Content -> Articles and then go back to Content -> Media -> subdirectory, I can upload one and get it to stay in the proper directory. But if I do it again in the same or different subdirectory of /images, it saves the image in the root.

This is happening to me on sites hosted at Rochen (multiple sites) and Siteground (multiple sites) so I don't think it's a server configuration issue.

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

Here's a video but I had to zip it since the media type isn't supported by github.
media-upload-bug.zip

avatar HLeithner
HLeithner - comment - 14 Jun 2019

I'm sorry but I'm unable to reproduce this, I tested it on my own servers and on joomla.com test instance without problems...

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

Interesting. Do you think PHP version would affect it? What version of PHP
is joomla.com using? And your server? I'm on 7.2. But I'll test some other
sites on other versions and see if that brings anything to light.

On Fri, Jun 14, 2019, 12:02 PM Harald Leithner notifications@github.com
wrote:

I'm sorry but I'm unable to reproduce this, I tested it on my own servers
and on joomla.com test instance without problems...


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/joomla/joomla-cms/issues/25192?email_source=notifications&email_token=ABNNIU5TBVDQ3YWHZSD3QIDP2PFIRA5CNFSM4HXWNVF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXXMRMA#issuecomment-502188208,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABNNIU4PPYTTNZQRGYYJK73P2PFIRANCNFSM4HXWNVFQ
.

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

It's happening with all versions of PHP so that's not it. We're not alone...this thread people have it happening too. https://www.facebook.com/groups/joomlanospam/permalink/10156021610840997/

Can you suggest anything else I can check? I'm happy to do more testing but I'm not a coder. :(

avatar HLeithner
HLeithner - comment - 14 Jun 2019

could you try another browser?

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

@HLeithner nailed it! Working fine in MS Edge. I was in FF before - all the other times. Are you using Chrome?

So it appears to just not work in Firefox. @BPBlueprint what browser are you using?

I'm gonna ask on the FB thread too.

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

On the facebook thread, two more people said they were using FF. So that's the common denominator.

I tried disabling my add-ons one at a time and the problem persisted. So, is there any reason that this is our issue (meaning Joomla)? Or is it really a FF browser issue that should be taken up with them? (Lord knows how that will go.)

avatar brianteeman
brianteeman - comment - 14 Jun 2019

I used to see this a long time ago and forgot about it. Tried tonight to replicate it using both chrome and firefox on windows and could not

avatar bayareajenn
bayareajenn - comment - 14 Jun 2019

Thanks Brian. I have a feeling this might just resolve itself with the next
FF update. Maybe it's some intermittent thing with their updates. But I
don't even know how to post to their issue tracker and let them know about
it. Like what would I even say to them?

Do you have any thoughts or suggestions on it? I don't think it's our code
at all. Do you?

I'm debating whether this should be closed or or just left open so others
can discuss as details become known.

On Fri, Jun 14, 2019, 5:29 PM Brian Teeman notifications@github.com wrote:

I used to see this a long time ago and forgot about it. Tried tonight to
replicate it using both chrome and firefox on windows and could not


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/joomla/joomla-cms/issues/25192?email_source=notifications&email_token=ABNNIU6CYHRQJJOLTU3XCWLP2QLWPA5CNFSM4HXWNVF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXYHZFY#issuecomment-502299799,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABNNIU2ECPKXZGA2E6TDL63P2QLWPANCNFSM4HXWNVFQ
.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 15 Jun 2019

Issue stay open till Reason (Browser, Core, ...) is clear.

avatar BurtNL
BurtNL - comment - 15 Jun 2019

I'm experiencing the same problem here, Joomla 3.9.8, PHP 7.2.x. Uploading fails and clicking the buttons 'Thumbnail view' and 'Detail view' in the Media manager showing the following error in the console of Firefox: NS_ERROR_NOT_AVAILABLE:


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25192.

avatar HLeithner
HLeithner - comment - 16 Jun 2019

I replicated the issue and found the reason why the upload goes to the wrong folder. But my JS skill isn't good enough to fix it....

The problem is that aftern an upload the mediamanager javascript can't access the location of the iframe because it's empty.

https://github.com/joomla/joomla-cms/blob/staging/media/media/js/mediamanager.js#L107

maybe this is a sandbox problem or anything like that maybe @dgrammatiko has an idea why firefox behavior is different then chromes?

avatar BPBlueprint
BPBlueprint - comment - 17 Jun 2019

@HLeithner nailed it! Working fine in MS Edge. I was in FF before - all the other times. Are you using Chrome?

So it appears to just not work in Firefox. @BPBlueprint what browser are you using?

I'm gonna ask on the FB thread too.

I use Firefox!
And right -> I checked with Chrome and no problems!

avatar dgrammatiko
dgrammatiko - comment - 17 Jun 2019

@HLeithner the only thing that might cause this, I guess is

this.frame = window.frames.folderframe;

(Are frames discontinued in ff?)
Try to get the iframe through the id of the parent div and see if that solves the problem here

avatar HLeithner
HLeithner - comment - 17 Jun 2019

I tried the same code in the console and I got a location object including all urls.

Maybe it is related to the POST on the upload? Are there any restrictions?

avatar bayareajenn
bayareajenn - comment - 17 Jun 2019

(Are frames discontinued in ff?)

Came across this with an update date of 18 March 2019 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/frame but I am not educated enough to know if this has something to do with it. And this too https://developer.mozilla.org/en-US/docs/Tools/Working_with_iframes.

avatar HLeithner
HLeithner - comment - 17 Jun 2019

No both are unrelated.

avatar bayareajenn
bayareajenn - comment - 17 Jun 2019

No both are unrelated.

Got it. Worth a try. At least you know I care. Let me know where I can help (I'm not a coder, sadly). Thank you and everyone for the help on this! You're appreciated!

avatar Quy Quy - change - 21 Jun 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-06-21 02:34:39
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 21 Jun 2019
Closed_Date 2019-06-21 02:34:39 2019-06-21 02:34:40
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 21 Jun 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 21 Jun 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/25192

avatar Quy
Quy - comment - 21 Jun 2019

Please test PR #25184


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25192.

Add a Comment

Login with GitHub to post a comment