We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Help needed with file upload on Local WAMP site --they disappear when I edit the channel entry (index.json?).

News and General

JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

Hey, folks… I have an issue that is probably limited to my local WAMP installation, but I’m unfortunately unable to test it on my remote site.

I have three file upload fields (images only) in my channel. When I upload a new file, it obviously doesn’t really do it correctly –the upload screen never goes away, and it prompts me to save index.json (which I’ve done in several locations with no avail, and I’m actually assuming that this file is supposed to add info to another one).

Even though the upload screen never goes away, the image did actually go to the folder. I am able to then select the picture if I click the upload button again. However, of course, since it’s not really working for me here, when I go back to edit the page for any reason, the image thumbnails are shown still on the “Edit Entry” form, but they will disappear from the rendered page after I hit “publish”. No more pictures!

So, I’ve been trying to find the workaround for this. I’m assuming it’s some sort of permission issue (or something like that). I have the paths set correctly (the images do get uploaded), and I have it set to accept uploads from the channel’s category group, etc.

Is it not possible to use the uploader on a WAMP installation? …Am I supposed to set some other sort of writing permissions?

Thanks for your help!!!

-John

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Hi John,

Which browser are you using when testing locally on your WAMP install?

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

Hey, Seth!

At the risk of public scorn: Internet Explorer 11 running on Windows 8.1.

I know this is an invitation to check it on another browser, but unfortunately I can’t do that until later on this evening -but if you have any ideas, please let me know in the meantime!

FYI -when I uploaded the category picture, it still prompted me to save the index.json and “hung” on the screen (even though the picture was in the directory), but when I reopen to edit that category and re-save it, the picture DOES NOT disappear. So, a little different circumstance there.

Thanks! -John

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

No scorn! 😊

I suspect you are running into this problem where IE is not sure what to do with the application/json header ExpressionEngine is sending when we output JSON data, as is happening here. From what I can gather, this can happen when IE is running in compatibility mode. By chance is that the case?

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

So, the “display intranet sites in compatibility mode” box was indeed checked, but unckecking it does not fix it. I saw that second link you posted said it did, but I verified and re-verified, restarted more than once, and it still does the same thing.

Unfortunately, with the first link you gave me, I have no idea where to do any of those modifications (and they are talking about ie8, so I’d be afraid that it was outdated).

It does work fine in Chrome, of course. At least that could be a temp fix -but I’d rather have it working in IE!

Thanks for your help so far!!!

-John

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

I found another potential solution. I’m attaching a patched version of themes/ee/asset/javascript/src/cp/files/picker.js. Please backup the original and give this one a try and let me know if it fixes the issue.

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

Unfortunately, this didn’t work for that category image uploads. [I’m unable to easily test the channel field upload right now –I have to recreate the fields this evening.]

If it makes a difference, that file was located in themes\ee\asset\javascript\compressed\cp\files – “compressed” vs. “src”. I didn’t have a “src” folder.

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Did you get a chance to try a channel field?

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

Seth, I apologize –I can’t get to this yet! I’m in the “home stretch” for everything else, and I need to finish up another problem first (and I’m about to post a thread on that). Sorry to leave you hanging, but I’ll test it out soon.

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

No worries! Just let me know when you get a chance to test. 😊

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

Hey, Seth –Happy Easter!

I got a chance to test this. Unfortunately, it didn’t work. Still the same problem. As I mentioned before, my picker.js file was in a slightly different location (…compressed/cp/files vs src/cp/files), but I don’t know if that matters!

-John

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Sorry about the path mismatch. You did put it in the right place.

At this point it would be good to isolate the issue to either the browser or the WAMP setup. Can you test this in Chrome or Firefox on your WAMP and see if you get the same behavior?

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

Hey, Seth! It works fine in Chrome and firefox, so I think this is probably just a browser specific problem with ie11 –and I blame them. 😊

In the meantime, I’m just going to use relative paths to the pictures in a text field. So, I’d love for this to work in ie, but if this isn’t easily done, then I can move on and wait (unless you have some other ideas!).

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Hi John,

If you are willing to try one more thing, open system/ee/EllisLab/ExpressionEngine/View/_shared/header.php and at around line 5 add

<meta http-equiv="X-UA-Compatible" content="IE=edge">

and see if that has an effect on IE11.

       
JohnChristianJr's avatar
JohnChristianJr
103 posts
9 years ago
JohnChristianJr's avatar JohnChristianJr

Just tried it, and unfortunately, it didn’t solve the problem!

Thanks for your help, though –I wish it’d work because it’d make things easier, but at least by using links I can hotlink a picture if I ever find the need (which I don’t think I’ll have the need, but I’m just trying to make myself feel better! 😊 ).

Thanks again! -John

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.