# Mixed Content Error

**URL:** <https://www.phphelp.com/t/mixed-content-error/36259>\
**Category:** General PHP Help\
**Created:** [August 27, 2024, 8:14pm UTC](https://www.phphelp.com/t/mixed-content-error/36259 "2024-08-27T20:14:34Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 27, 2024, 8:14pm UTC](https://www.phphelp.com/t/mixed-content-error/36259/1 "2024-08-27T20:14:34Z")

</div>

Hello

I recently forced HTTPS on my website, and the pages are now not rendering properly. When running a scan from Why No Padlock, it gave the following error:

A script with an insecure url of “[http://www.luxurybeach.com/admin/js/source/jquery-ui/development-bundle/slides.min.jquery.js](http://www.luxurybeach.com/admin/js/source/jquery-ui/development-bundle/slides.min.jquery.js)” was loaded on line: 129 of the landing page  
This URL will need to be updated to use a secure URL for your padlock to return.

This file is full of PHP code but cannot understand it. Can anyone help?

I tried to post the code here but was told I cannot send 2 links. There was not 2 links!

Thanks

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 30, 2024, 1:27am UTC](https://www.phphelp.com/t/mixed-content-error/36259/2 "2024-08-30T01:27:06Z")

</div>

No one can help? I am guessing this is a small community as only 1 person has viewed my post

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [August 30, 2024, 1:41am UTC](https://www.phphelp.com/t/mixed-content-error/36259/3 "2024-08-30T01:41:59Z")

</div>

> [@Larry](#):
>
> This URL will need to be updated to use a secure URL for your padlock to return.

You just need to do what the message stated. Change the http to http **s** in that url in the markup on the page.

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 30, 2024, 2:03am UTC](https://www.phphelp.com/t/mixed-content-error/36259/4 "2024-08-30T02:03:54Z")

</div>

The URL cannot be located, because it appears to be dynamically generated. The URL is a .js file and is just code.

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [August 30, 2024, 2:09am UTC](https://www.phphelp.com/t/mixed-content-error/36259/5 "2024-08-30T02:09:13Z")

</div>

Without seeing the code that’s producing the markup for that page, no one on a programming forum can do anything to help.

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 30, 2024, 2:42am UTC](https://www.phphelp.com/t/mixed-content-error/36259/6 "2024-08-30T02:42:29Z")

</div>

I can’t paste the code because there is a ridiculous restriction about having 2 links in the post. What relevance is that? In fact it is just code, and there are no links.

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [August 30, 2024, 2:59am UTC](https://www.phphelp.com/t/mixed-content-error/36259/7 "2024-08-30T02:59:17Z")

</div>

You should be able to post the code between bbcode `[code][/code]` tags. Otherwise, post it on [pastebin.com](http://pastebin.com) or similar and post the link to the code here.

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 30, 2024, 3:05am UTC](https://www.phphelp.com/t/mixed-content-error/36259/8 "2024-08-30T03:05:28Z")

</div>

(function(A){A.fn.slides=function(B){B=A.extend({},A.fn.slides.option,B);return this.each(function(){A("."+B.container,A(this)).children().wrapAll(’

’);var V=A(this),J=A(".slides\_control",V),Z=J.children().size(),Q=J.children().outerWidth(),M=J.children().outerHeight(),D=B.start-1,L=B.effect.indexOf(",")\<0?B.effect:B.effect.replace(" “,”").split(",")[0],S=B.effect.indexOf(",")\<0?L:B.effect.replace(" “,”").split(",")[1],O=0,N=0,C=0,P=0,U,H,I,X,W,T,K,F;function E(c,b,a){if(!H&&U){H=true;B.animationStart(P+1);switch(c){case"next":N=P;O=P+1;O=Z===O?0:O;X=Q_2;c=-Q_2;P=O;break;case"prev":N=P;O=P-1;O=O===-1?Z-1:O;X=0;c=0;P=O;break;case"pagination":O=parseInt(a,10);N=A("."+B.paginationClass+" li."+B.currentClass+" a",V).attr(“href”).match("[^#/]+$");if(O\>N){X=Q_2;c=-Q_2;}else{X=0;c=0;}P=O;break;}if(b===“fade”){if(B.crossfade){J.children(":eq("+O+")",V).css({zIndex:10}).fadeIn(B.fadeSpeed,B.fad

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 30, 2024, 3:07am UTC](https://www.phphelp.com/t/mixed-content-error/36259/9 "2024-08-30T03:07:13Z")

</div>

This is just part of the code because this site won´t accept all of it.

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [August 30, 2024, 3:55am UTC](https://www.phphelp.com/t/mixed-content-error/36259/10 "2024-08-30T03:55:13Z")

</div>

The URL in question is part of a src=’…’ attribute inside a \<script …\> tag loading a jquery extension.

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 30, 2024, 6:59pm UTC](https://www.phphelp.com/t/mixed-content-error/36259/11 "2024-08-30T18:59:54Z")

</div>

Can you see the code from Paste Bin?

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 30, 2024, 7:11pm UTC](https://www.phphelp.com/t/mixed-content-error/36259/12 "2024-08-30T19:11:48Z")

</div>

“[http://www.luxurybeach.com/admin/js/source/jquery-ui/development-bundle/slides.min.jquery.js”](http://www.luxurybeach.com/admin/js/source/jquery-ui/development-bundle/slides.min.jquery.js%E2%80%9D)

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 31, 2024, 2:29am UTC](https://www.phphelp.com/t/mixed-content-error/36259/13 "2024-08-31T02:29:54Z")

</div>

Can anyone help? I need to find what file has this URL so I can change it to HTTPS.

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [August 31, 2024, 6:33am UTC](https://www.phphelp.com/t/mixed-content-error/36259/14 "2024-08-31T06:33:00Z")

</div>

OK guess I need to try another site

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [August 31, 2024, 6:51am UTC](https://www.phphelp.com/t/mixed-content-error/36259/15 "2024-08-31T06:51:21Z")

</div>

What URL did you enter in the Why No Padlock page? The problem is on line 129 at that URL.

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [September 1, 2024, 12:41am UTC](https://www.phphelp.com/t/mixed-content-error/36259/16 "2024-09-01T00:41:39Z")

</div>

[https://luxurybeach.com](https://luxurybeach.com)

---

<div class="post-metadata">

**Author:** ![phdr](https://www.phphelp.com/letter_avatar_proxy/v4/letter/p/91b2a8/32.png) [@phdr](https://www.phphelp.com/u/phdr)\
**Post date:** [September 1, 2024, 4:38am UTC](https://www.phphelp.com/t/mixed-content-error/36259/17 "2024-09-01T04:38:24Z")

</div>

Yep. Line 129 in the markup on that page - `<script type="text/javascript" src="http://www.luxurybeach.com/admin/js/source/jquery-ui/development-bundle/slides.min.jquery.js"></script>` tries to load some javascript using a http url.

If this is your web site, you should know what the default document file(s) can be. It is probably one of - index.htm, index.html, or index.php

Edit: through trial and error, index.php produces that page - `https://www.luxurybeach.com/index.php`

Edit2: I recommend that you validate the resulting web pages at [validator.w3.org](http://validator.w3.org) That page is outdated and has 161 Errors, 19 warnings.

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [September 2, 2024, 2:17am UTC](https://www.phphelp.com/t/mixed-content-error/36259/18 "2024-09-02T02:17:43Z")

</div>

Thanks for the reply. Yes I see the 161 errors at [w3.org](http://w3.org). Where do I find the file that is loading an http URL?

---

<div class="post-metadata">

**Author:** ![Larry](https://www.phphelp.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@Larry](https://www.phphelp.com/u/Larry)\
**Post date:** [September 11, 2024, 6:53pm UTC](https://www.phphelp.com/t/mixed-content-error/36259/19 "2024-09-11T18:53:37Z")

</div>

Hi again. Still trying to find where to change the URL. Can you help?
