Javascript working on one host but not the other - php

I have recently uploaded a site I'm working on to a clients server. Unfortunately they are only running PHP 4.3, so a few things aren't working but some of my Javascript isn't working which is strange. Can anyone give me any insight into this? Here is the site that is functioning (PHP5+): http://involutionstudios.net/earthrover
And here is the site that isn't:
http://earthtest.monpjc.com/ (PHP 4.3)
As you will be able to see once you compare the two site the Javascript for the centre console isn't working correctly and the images are failing to display.
There is no errors using F12 on Chrome, from F12 I can also see that the images are loading, so it's not a problem with incorrect directory paths.
The Twitter feed not loading isn't the problem as that's to do with PHP.
Any help would be great :)
Thanks

The images are loaded on second, but they are not visible because you are missing twitter div there, putting even empty <div id="twitter"></div> before slider will shift slider div to correct place as it does on first site

Related

Unable to hit .html page with Selenium?

I am using behat/mink, selenium 2 driver, chrome driver in php.
I am having trouble getting to a dummy html page. We have a site and we are adding a chat bot to the landing page, the chat bot is an iframe that gets loaded onto the bottom of the page. I want to say, we did was because we had a third party team using heroku that deved this and I thought it was probably a redirect issue but they couldn't figure it out so we spun up this little dummy page to see if it would help.
We spin up a dummy .html page and put the chatbot in so I can build automation around it. Well, I am getting 404 error when it tries to find the page. The thing is, I can get to it either manually or by using postman no problem. I am at a loss as I have never seen this before, the only thing I can think of is maybe because it's an HTML page with no-js? Any help is appreciated!
As stated above we have tried to spin up a dummy site (as well as another to see if it was caching).
We were able to solve this, the issue was the index.html not being populated.

Web preview from backend VS ordinary link

I have this problem that my website is good looking when I preview it from Wordpress backend and has no errors. You can check it here - Clean version However when I preview it by simply typing my website address into the bar, it is a little mess. Kindly check it here - Crappy version
I tried clearing the cache, updating the browser, tried few different browsers but no luck. One another weird thing is that on my colleage's computer the website shows perfectly.

Brackets Live Preview not working after moving to wwwroot

I'm using Brackets to dev a static, simple site. The Live Preview capability is fantastic. all was going well until...
I wanted to start using some php in my site so i downloaded php and tested it in my inetpub/wwwroot. I then figured that i best move my static site (html and css files) to the wwwroot folder.
This caused a set of issues i partly resolved. My Live preview started asking for base URL so i put the new local url: http://localhost/myprojectfolder/. HTML and PHP files now showing but...
The Live preview needs me to hit save and restart the preview (defeats the purpose of Live Preview). It also doesn't highlight sections of the page as you scroll through the code.
How can i get PHP working on my site and the Live Preview working, i've messed something up.
Edit: Im using IIS with my PHP hence moving my static site to wwwroot
Brackets has a known issue whereby the Live Preview requires saving of code and refreshing of live preview chrome screen in order to see change. You can also not see the element highlighting once moving to your own web server eg iis.

Website keep on loading on external server

I have made a demo agency website. It works fine on my localhost with Wamp. But when I upload it to a webserver and tried to head to my url, the only thing I can see is a loading spinning wheel. Though the title for the homepage is loaded (as I can see it in the tab bar).
I have googled for the problem, but most of them were suggestions to reduce the size of site including minified js, reducing http requests, compressed images, etc. So, I tried applying it and now I am also using cloudflare's cdn. Still, I cannot solve the problem. I am really fed up now. Any suggestions..?
NOTE: site's url is http://crazyrabbit.in and its built upon codeigniter framework.

Facebook Open Graph images not displaying in Chrome; Displaying in Firefox fine

After wrestling with Facebook's new Open Graph/SDK, I've noticed the images I retrieve with no problem in Firefox are not displaying at all in Chrome.
Example:
When the following tag is rendered on a webpage
<img src="http://graph.facebook.com/angrybirds/picture">
Firefox displays it with no problem while Chrome displays nothing.
Is this a scripting error on my end or is this something that I need to work around to accommodate for Chrome?
PHP 5
Firefox 7.0.1
Google Chrome 14.0.835.202
This seems to be a local caching problem, the link is working wonderful for me in chrome.
Please provide us a little more of you code if still got problems like this after clearing your cache.
Are you sure it is not a cache problem?

Categories