My website shows up as a blank page on my desktop - html

I have been developing a wordpress theme on my laptop and all is well, however when I checked it on my desktop today all that loads is a blank page. I have asked a couple friends to see if it loads for them and they all say that it does.
I am really not sure how it will not load on this computer, I've cleared the cache/cookies and reset the ip, still blank. I need to figure out what is going on quickly before this is supposed to be done.
The website url is http://bbmthemes.com/themes/modular/, the top left logo should be broken, other than that everything should work.
Can you think of anything that would make one computer not display anything but a blank page or what I could try to fix this?
Thanks so much
EDIT It displays blank in all browsers (firefox, chrome, ie9) on this desktop, and works in all browsers on the laptop. Also, I had already enabled phpconfig and checked for php errors before I noticed this. I had removed all php errors about a week ago and they were only minor things anyway. Very confused. Does it work for you guys even?

Turn on the wordpress debugging in wp-config.php file and run again to check is there any fatal error or not:
define('WP_DEBUG', true);
And be sure that error reporting is On
Maybe you are not in right path. I found this theme on your host refer to modular theme: http://bbmthemes.com/themes/smart/

Very frequent, this kind of problems arise because of the environment differences. You should check whether in php.ini short_open_tag=On is on or not. That might cause the problem. Also if your desktop machine is on the Linux machine php5-mysql package comes separately from php5 package.
Also as already mention you have to check log file.
In Ubuntu the location is - /var/log/apache2
On windows - the same directory where apache2 is installed.

Related

PhpStorm won't start - flashes logo then goes away

After restarting my PC and clicking the PhpStorm icon to launch it, the splash screen loads, then nothing does. PhpStorm will not open.
Three Step Solution
From this post (copied below in case the URL ever dies):
I had the same problem on the same day so perhaps it relates to a Windows update. (Edit - ignore that, my problem happened on January 17th, 2017 not 2016).
I renamed C:\Users\USERNAME.PhpStorm2016.3 to something else and it then started and allowed me to import my settings, which seems to have worked. I hope this helps others as this is much easier than rebuilding my Windows profile.
NOTE: On older versions of PhpStorm the path is C:\Users\USERNAME\.WebIde100
Upon restarting Windows after renaming my PhpStorm directory I tried to import the settings from my renamed C:\Users\USERNAME\OLD.WebIde100\config but got an error that settings.jar could not be found.
I closed PhpStorm and renamed my new .WebIde100 to NEW.WebIde100 and my OLD.WebIde100 back to .WebIde100. I did not have to restart my computer; launching PhpStorm again brought back my old settings.
I'm not sure why all this was needed, but it worked for me so I thought I'd share.

firefox copies html files in /tmp/mozilla

I set up apache2 for training myself to write php and javascript files.
It functioned fine for a while.
Then the browser (Firefox) started asking me whether I wanted to open or download the files I was working on.
Even if I say "open", it first saves a copy of the file in
file:///tmp/mozilla_name0/index.html
and then it renders it in a new window.
I open the file with
http://localhost/index.html
I tried replacing localhost with 127.0.0.1
-> no effect
I tried "sudo chmod 000 mozilla_name0
-> it started using mozilla_name1 instead
I looked in about:preferences / Application but there is no option to tell Firefox what to do with html files. Probably because it should know!
I looked in about:config but I didn't see what I should change in there.
I looked online but I couldn't find this issue. I even searched in bugzilla.org
I don't know if this an apache issue, or what.
I don't think this is a browser issue because I installed opera, tried to make it execute my html file and it downloaded it instead.
Please help.

chrome extension reload on file change

I've been searching for-ever!
I`m working on windows and ubuntu, mostly on windows.
I searched the web for lot's of external libraries such as opn, open etc' but none of these could open this URL:
chrome://extensions
I want to put in the the script tag inside package.json
or in my build.js script
so that every time after I run "npm run build"
the chrome://extensions page will reload and also the additional page I`m testing on.
I once was able to do that exactly, but I lost that solution.
part of the problem is that I can't open chrome:
the ':' symbol is not recognized in the OS as valid protocol or something and it is escaped from chrome address bar if executed from command line.
I have tried many solutions.
I am not happy with the different resolutions proposed in the research I've made in Stack.O.
reloader as an extension is out of the question I want a script.
your kind help.
Assaf.
Clerc - for Chrome Live Extension Reloading Client
I built Clerc for exactly this purpose. npm run build won't be enough though. You need to hook up a LiveReload compatible server to watch for file changes, and clerc will listen for the reload messages.
Edit: Oh sorry. I missed the part where you said "reloader is out of the question". I still think this is your best option though.

Loading HTML and CSS file on local browser

I'm very new to coding and web development. I'm working with HTML and CSS at the moment. The trouble is, I can't see what I'm coding.
How do you load a HTML and CSS file onto a local host so that you can see what you are doing?
Really appreciate it if you could give your input. :)
I've had this question as well, haha. But you'll learn.
So there are two solutions here; one using a localhost and one just simply viewing the file.
I'm not sure what device you're on, but to view your file, just simply double click it as you would do to open any other file. Then you will be able to see your code and what you're programming.
The second solution is the use of a localhost; it's basically a test environment for your website to view it during development.
To set up a localhost on a Macintosh device, you simply go to the Finder and search for Terminal, later open it and write; python -m SimpleHTTPServer.
If you have a folder for your files as well (which is recommended for future reference), just use cd and type where it is. The easiest method would be placing it on the Desktop, and then write in the Terminal; cd Desktop -> cd the-folder-you-have-your-code-in and then write python -m SimpleHTTPServer.
To access this server, just type localhost in the search bar where you'd search for items on the web.
Hope this helps you, and welcome to the developing society!
For future reference, when you become a full-fledged developer, don't use Homestead/Laravel, it's a pain in the ass when you don't understand it. Use WAMP, MAMP, or XAMPP based on what device you're on.
Just open the html file with your browser. On Windows, in Windows Explorer right click on the file and choose open with, then choose your browser.
file:///[complete path to your file] does the trick in Chrome, Firefox and IE, but as #Atrix said, right click + open in [your favourite browser] works too.
You might want to install a full-fledged webserver one day or another though, like Apache or nginx. You also have full stacks servers available (usually coming with a PHP interpreter and a database server), like WAMP (on Windows), or XAMPP (on Windows, Linux and MacOS)
You can do the following:
On a Window machine at the prompt type start the-HTML-file-name
Here is an efficient alternative:
Go to W3Schools Tryit Editor. Wait for the page to fully load. Then enter the following line in the browser's console and press Enter:
document.getElementById('textareawrapper').setAttribute("onkeup","submitTryit(1)")
Now start typing your code in the text area. This is far better than working with a text editor as it shows the output directly as you type.

Blank page on OpenShift-hosted site

I have site hosted on OpenShift with two pages. The main page works fine- loads right up. The second page, however, comes up totally blank. All of the sources are missing when I use Chrome's Inspect Element tool. The html file is blank and the additional subdirectories (js, css, etc) are just gone.
I'm not getting any errors in the log beyond a "js-bson: Failed to load c++ bson extension, using pure JS version" that I can't figure out but doesn't appear relevant.
The page worked fine for a while but started occurring today when I tried to change the content.
Why would this happen?
It sounds like you haven't committed the latest version of your files to your OpenShift git repository. You need to make sure to perform a git commit before doing a git push
If that isn't the problem, use the rhc ssh command detailed here to log into your application gear and see what files exist there. That may give you some clue as to what the problem is.