https:// is not displaying properly on chrome and firefox - php

I am new to wordpress website development technology. I have created my website http://www.jhamobi.com. For this website I am using pagelines theme (http://wordpress.org/themes/pagelines). So far so good. But when I am opening https://www.jhamobi.com (secure website) , I am getting display error. Though, http://www.jhamobi.com is displaying properly. I am getting this error on chrome and firefox. It is coming properly on safari. Let me guide where I am going wrong. I have cleared cache on chrome. Do I need to change theme? Do I need any wordpress plugin.

The issue is occurring because you are including non-secure files on a secure page. Looking at Firefox's Error Console, you can see a list of the files that are being blocked.
Timestamp: 9/13/2013 6:01:10 PM
Error: Blocked loading mixed active content "http://www.jhamobi.com/wp-content/uploads/pagelines/compiled-css-1379114912.css"
Source File: https://www.jhamobi.com/
Line: 0
It looks like compiled-css-1379114912.css is the file associate with the layout styles and that's why the site is showing up all over the place. To fix this issue just remove all protocol/domain information and leave only the absolute path:
Example:
Instead of
'http://www.jhamobi.com/wp-content/uploads/pagelines/compiled-css-1379114912.css'
Use
'/wp-content/uploads/pagelines/compiled-css-1379114912.css'
* This will be done in the templates header file (for css and some js) and the footer for the js. The file name will probably look something like /compiled-css-".time().".css

Related

Wordpress site failes to load js and css

I have this weird problem with my Wordpress Website. I worked on localhost and afterwards I tied to get my site online but i modified some configuration files and i don't know witch one is the fault. I am using XAMPP. The website right now is seems to not load js and css. Also on console log it gives 404 error for not fiinding the files it needs.
Landing page:enter image description here
Another Page:enter image description here
do you use gzip compression or such as it? if yes try to disable it, and make sure you have the right path
First, check that the file permissions are correct.
Also, if you have changed anything on your .htaccess files, overwrite them with the default ones: https://github.com/WordPress/WordPress
Also it's always a good idea to go to the permalinks page (/wp-admin/options-permalink.php) to update the links of all dependencies to the new URL.

Wordpress admin "don't have permission" due to incorrect URL structure

I have a Wordpress install which has a problem in previewing drafts.
Sorry, you are not allowed to preview drafts.
Browsing the website, the url is
http://example.com
The Wordpress files are actually stored in http://example.com/wordpress
So the Wordpress address url in settings is http://example.com/wordpress and the site url is http://example.com/ as it should be.
In wp-admin though, it redirects to
http://example.com/wordpress/wp-admin
An issue arises when you want to preview a post or page, and it says you are not allowed to view drafts.
The error shows up and the url looks like,
http://example.com/hello-world/?preview_id=1&preview_nonce=cf457b8a3e&post_format=standard&_thumbnail_id=-1&preview=true
But if you manually go to http://example.com/wordpress/hello-world/?preview_id=1&preview_nonce=cf457b8a3e&post_format=standard&_thumbnail_id=-1&preview=true
Then, everything works as intended. Stumped.
More details:
There are no plugin conflicts, nor theme conflicts.
This is not the typical Wordpress imlementation, because there is something that is pointing to calling the Wordpress index as it is not always called by the app.
It calls require_once $path . '/wordpress/index.php'; why it does so is another story.
But, this is never even called, because wp-load decides to throw the error before then. Additionally, browsing the site with the urls, does not show the admin bar. Only when you manually add the directory.
I suppose it's possible this is somehow related to the __() added to Wordpress 4.7.

opencart corrupted menu in xampp

I copied my files for opencart store from my host and the db to work localy using xampp, but iam experiencing a little problem, the menu in the front end is broken it doesn't look structured.
The links works perfectly fine, i did change the config files to point to the correct folder, rewrite_module is on, changed #RewriteBase / so the links works fine.
I did even update opencart to make sure all files is there, but nothing i have tried is working.
Can someone please help me fix this problem? Have tried everything i can think of.
Iam using Opencart 1.5.6.4
you can see on the following image how the menus look bazaargadgets.com/corrupted menus.jpg
The CSS file isn't being loaded properly (or not at all).
Check to see If it does exist and not corrupted. Re-download anyway just to make sure.
If that doesn't solve your problem, look at the http headers to see exactly what's going on (press F12 in your browser to see dev tools - IE, FF & Chrome)
you may switch to default theme first,
if working fine, the image link might be broken of your current theme
check the image link

Calendar loading or javascript error

I got a calendar that load fine here : http://studioteknik.info/testinfo/salle-1/ and I got the real site (a copy) where the calendar dont work (or dont load) : http://stada.ca/salle-1/
The problem is firebug, google webdev tool, html validator, removing all plugin, installing removing, changind theme.. i have DONE all that many times...
now i dont have any more tools/idea how to find the bug and what is the problem...
can anyone have and idea whay the calendar is loading fine on first (test) site and NOT loading on the REAL wordking site ....
if it's a jquery error... i have remove all jquery and add only one... it does not help !..
i am LOST !
If I look in the chrome devtools console I get the following error:
Uncaught SyntaxError: Unexpected token <
If I then check where that error is coming from, it seems a json.Parse is failing. Why? I pasted the data the page recieves down below
"{"2013-11-26":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"100","promo":"","status":"available"},"2013-11-27":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"100","promo":"","status":"available"},"2013-11-28":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"100","promo":"","status":"available"},"2013-11-29":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"100","promo":"","status":"available"},"2013-11-30":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"100","promo":"","status":"available"},"2013-12-11":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-12":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-13":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-14":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-15":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-16":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-17":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-18":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-19":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-20":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-21":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-22":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-23":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-24":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"},"2013-12-25":{"available":"1","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"50","promo":"","status":"available"}}<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->"
If you scroll to the end you'll see:
<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->
So, there's something wrong with your wordpress installation and not the webpage.

dreamweaver automatically creating a new folder

Ok I didn't see this anywhere and Google isn't helping it keeps directing me how to create a folder.
So my issue is this, I have a login page that I'm trying to test. When I hit f12 to show the page in a browser (on my localhost) some how dreamweaver is creating a new folder within a folder and placing the file I just saved in a completely different folder in there and renaming the file with random characters.
so in effect it is doing this :
file name is login.php, folder location is admin, so my page should show as this in the url
admin/login.php
but instead it is showing this
Mysite/Mysite/admin/KOyilwoe.php
is is actually creating these folders as well so it is showing in my dreamweaver folder structure as
Mysite/Mysite/Mysite/admin/KOyilwoe.php
Of course when it does this it breaks all links to images and any connections I'm trying to make to the database.
I am using Dreamweaver CS4 does anyone know why it would do this? I have tested many sites before on my localhost and never had this issue until this website. Is this possibly a setting in dreamweaver itself or would a javascript be causing it? I did try removing the javascript and it was still creating the new folders.
So I posted a similar question on Adobe's forums and they responded with this and yes it does fix the issue.
Dreamweaver creates a temporary page. It's created specifically for previewing.
You "should" be able to turn it off in the preferences...
Edit > Preferences >select Preview In Browser > uncheck the "Preview using temporary file" checkbox
EDIT: OOps, forgot the Preview In Browser selection.

Categories