I am trying to use an image slider like anything slider. When I place all the contents on the same file it works without a glitch, but when I separate the code into the header include, footer include and then the file itself it no longer works.
I checked my file paths and all seems to be correct and I run into the same issue when I use other image sliders. Not sure how to resolve the issue.
Thanks for your help
Try a developper console to obtain some debug information (Press 'F12' on chrome or install the firebug extension on Firefox).
There should be a "Network" tab that shows what requests are made from the page.
And a "JS console" that may reveal some JS errors.
Maybe it will help you understand what is happening.
Don't hesitate to post results here, and a link to your page.
Related
I am having issues while running the live preview of some php files on LOCALHOST. Like I am working on Wordpress theme and while I am able to set the correct base URL and open the file on the browser through index.php, but I am not able to edit and view the other php files.
For example, I have to open index.php which is in http://localhost/test but suppose I want to edit the header.php file. I click on the header.php file and it opens a new page in Browser with URL, http://localhost/test/header.php, which returns a 404 error through wordpress(OOPS PAGE NOT FOUND!)
I have very little work with index.php and mostly with header, footer, functions and everything else. Although this isn't really a big issue, I can go with the traditional way but I really wanted to utilize this Brackets Feature. Hope there's something to get past this :)
This is not an issue this will never open in browser like single file, if you want to check this then header.php and footer.php files are also included into the index.php , you will check from that no need to run them to browser.
When I click "debugging"
in Firefox I get the result page in html, that I can inspect:
But in Chrome I just get PHP source code:
What is the problem?
Has anyone come across?
You're accessing the file directly on disk. Try accessing it through your webserver (in other words, serve the page as HTML).
I feel pretty stupid asking this... but I have a small php script that generates a image based on some GETs and output's it to the browser.
It works fine on my server, but I moved it over to the client's server and I get a 404 error instead of the image. Problem is I have no ideea how to see what is wrong.
Normaly I get an error in the browser so I know what is going on... but not beacase the output is an image I get nothing.
LE: I tried this, at the begining of the script:
error_reporting(E_ALL);
ini_set('display_errors', true);
but nothing.
If you get a 404, the PHP script is either not found or redirects to another resource (a generated and cached image file?) but the path to it is wrong (or the image file can't be generated because of right issues?).
As suggested, remove the header() if any (it's also probaly using a header if the script redirects to the real file after generation).
If the script is delivering the image directly without any redirect, then enabling errors won't help on a not found URL ;-)
I'm using a CMS called 'Nukeviet' and I installed it on my localhost. I'm facing a very strange problem, I've tried to search for the solution but nothing found.
I can see that css files are not working at all. When I use Firebug to find the problem, I switch to the tab 'CSS' and... all the required css files are there but it says... there're no rules! When I use the Developer tools of Google Chrome, in Resources tab, Chrome can see all the css files, but the contents of them are abnormal, like in this image:
.
I checked the encoding but it's normally ANSI. And, of course, the contents in all the css files are normal ANSI, no international text.
I tried copying the css files to a new place and write a new HTML for testing, those CSS works perfectly as usual without any problem.
So I can't understand why there're "ugly" question marks like that. Something... encrypted it?
Javascript files get the exact same problem, but image files are ok, all the others are ok, just problem with CSS and Javascript.
I think your javascript and css files are compressed for example with gzip-compression ...
Please check the configuration of your webserver if the gzip-comression is enabled.
If you're using Apache this can also be done in the .htaccess-files instead of the server-configuration - but I think that's stuff you know - don't you?
For further information:
http://developer.yahoo.com/performance/rules.html#gzip
At this page you can also check if some header-informations are missing in the response you get from your server if you request the css-file.
No matter what I change in this script, when I go to upload the file, the page is looking for the action do-nothing.htm. This is what the ACTION of the plugin is set to in the downloaded example, but I have changed it.
I have also changed some lines in the Javascript to see if I could get something working, but nothing. In fact I can't seem to find any reference to do-nothing.htm yet the console still gives me a 404 error do-nothing.htm not found. Any ideas?
the example works.