Home > Technical & Creative Skills > Programming, Servers & Scripts

Amazon S3 problems (11)


06-29-2017 02:15 AM #1 paras57 (AMC Alumnus)
Amazon S3 problems

Hello Stackers

I have some tech issues that I would like to fix. I have been using the Amazon S3 service for some of my landing pages.

At first and for about a year all my lps had this as a URL >> https://s3-us-west-2.amazonaws.com/mydomain.com/lpname .

In the last week I have had to append /index.html to the url to make the LP display properly.

Its not a big deal as I can still use the landing pages.

My problem is that, all the pages i have to tried to upload in the last few days wont render properly. No css is being executed

and no images appear. This message appears...." This XML file does not appear to have any style information associated with it. The document tree is shown below "

I dont think it's my browser as I have tried this on 4 different devices with the same results. Anyone got any ideas as to what I can do ?

Thanks


06-29-2017 04:40 AM #2 gameandwatch (Member)

Hi paras57,

I just tried uploading a new lander to S3 and everything is working ok with me. The only time that usually displayed for me was when I mistakenly changed something in the url.

The folder that you upload your files to. When you click on you .html file. You should see a link. When you click on that link does it also display this message?

Have you changed any bucket settings recently?

If all else fails. I would say there may be something going on with your bucket. Create another bucket and copy everything over to that one.


06-29-2017 01:14 PM #3 caurmen (Administrator)

Have you set the pages you've uploaded recently, and their CSS and images, to be public? That's the usual gotcha that gets me, although admittedly it usually throws a different error message.


06-29-2017 01:48 PM #4 paras57 (AMC Alumnus)

Hi gameandwatch.

Yes, when I click on the link after clicking on .html file, it shows the same error. I have not changed any settings ever since I created the bucket . I will make a new bucket and see what happens.

Thanks


06-29-2017 05:51 PM #5 paras57 (AMC Alumnus)

Hi Caurman.

I did just try that and no difference, but I noticed something else I didn't see before. It seems that only the files that I have from adobe muse will not work. The ripped landers from adplexity do load up.

Any thoughts on that?

Thanks


06-29-2017 07:47 PM #6 gameandwatch (Member)

Quote Originally Posted by paras57 View Post
Hi Caurman.

I did just try that and no difference, but I noticed something else I didn't see before. It seems that only the files that I have from adobe muse will not work. The ripped landers from adplexity do load up.

Any thoughts on that?

Thanks
If the ripped landers from adplexity loads but not the ones you made. That tells me there is something wrong with your code and not the bucket. You're creating these from scratch on adobe so now you have to make sure your code and tags are working correctly. Compare your landers side by side to the ripped ones to see if you can spot any differences. Make sure the tags that adobe is using is correct. Cross reference to a ripped lander that works. Make sure the html doc has the proper doctype declaration <!DOCTYPE html><html> at the very beginning and </html> at the end.


06-29-2017 08:02 PM #7 matalla (Member)

Hi paras57,

Are you sure the files permissions set correctly ? I think this cause the problem.
on the other hand, since you scraped the LP from another source, try to change the path CSS/JS paths to the complete path format such as
https://s3-us-west-2.amazonaws.com/mydomain.com/my-css-file.css (inside the html page)


06-29-2017 11:30 PM #8 paras57 (AMC Alumnus)

The adobe muse pages do work on my regular website but not on S3. I loaded them b4 i did any modifications and they worked ,and also after I modified they worked, except on S3.

Matalla, The permissions seem to be ok. I did try to put the css into the html page in between style tags . It actually show some styling on the page but not the images.


06-30-2017 09:50 AM #9 caurmen (Administrator)

OK, obvious questions, which you're probably going to go "of course, duh" to, but we need to eliminate:

- Are the images and CSS in the bucket in the same directories that they are in on your regular site, relative to the root of the site? In other words, if they're in www.yoursite.com/images/ are they in the /images/folder inside your bucket?
- What's the exact format that Muse has written the image tags in? Can you copy-paste a complete image tag from the code for us?
- Are there any capitalisation changes between what the img/css tags are expecting and what you've got in your S3 bucket?

If none of those apply, must be something else, but we need to eliminate those first.


06-30-2017 04:55 PM #10 paras57 (AMC Alumnus)

Hey Caurman

The images, javascript and css are all in folders but I have to open the folders and upload them seperately .

Here are the image tags:

<img class="block" id="u169_img" src="images/av%20stripes%20res2.jpg?crc=3777969215" alt="" data-image-width="370" data-image-height="100"/>

<img class="block" id="u160_img" src="images/icon.gif?crc=4051029962" alt="" data-image-width="89" data-image-height="88"/>

As for the capitols , if you are asking if the original css text has different capitols than the css text in S3 .The answer is no.

Thanks


07-01-2017 10:32 AM #11 matalla (Member)

I am web developer, I can help you diagnose the problem if you want add me to skype: eng.matalla


Home > Technical & Creative Skills > Programming, Servers & Scripts