Welcome Guest, Not a member yet? Register   Sign In
Can't get any image to display on any page -- please help
#1

[eluser]JPrieto[/eluser]
hey guys & gals -- happy weekend !!

Can you help me?


i uploaded a small image -- called offer.jpg -- in ...


http://localhost/codeigniter/

but when i browse to

http://localhost/codeigniter/offer.jpg

I get this error

Code:
Not Found
The requested URL /codeigniter/offer.jpg was not found on this server.

why is that?

I can't get any image to display on any page

please advise
#2

[eluser]Colin Williams[/eluser]
It's likely that your .htaccess mod_rewrite rules are the culprit. Disable the mod_rewrite rules and see if you can load the image then.
#3

[eluser]JPrieto[/eluser]
UPDATE

only the .gif images show -- but the jpg or jpeg do not

any advice?

thanks
#4

[eluser]wiredesignz[/eluser]
How is this related to CodeIgniter beyond the advice already given by Colin?
#5

[eluser]JPrieto[/eluser]
[quote author="wiredesignz" date="1244984025"]How is this related to CodeIgniter ...?[/quote]

Well, I am learning CI -- I'm very new to it,
just started getting into it about 1-2 weeks ago

So in my current ignorance
I thought perhaps there was a config in CI where images types were declared.
Thus my reason for posting thread.

[quote author="wiredesignz" date="1244984025"]...beyond the advice already given by Colin?[/quote]

Well, I am using my pc to learn CI -- got wamp installed in it.
So I dont' have a .htaccess
nor am I familiar with mod rewrite on a pc.

Therefore ....

hope you are not upset at my posting the UPDATE --
no harm in asking what perhaps does have to do with CI.

I did asked very politely, in a friendly spirit.

But if you're still bothered with my "update" -- well...
#6

[eluser]wiredesignz[/eluser]
Maybe you should be asking in the wamp server forums.

If you are not using htaccess, and the image type is valid, and the URL is correct, and your browser is not damaged, then nothing in CI will prevent you viewing it.

You are making an HTTP request directly to the server. CI is not involved.
#7

[eluser]John_Betong[/eluser]
 
Hi JPrieto,
 
I agree with the comments from Colin Williams and wiredesignz but must add that I find changing .htaccess is like a black art since the script is very cryptic, no debugging tools and information is limited. I would like to learn all about Apache, etc and maybe when I finish this overdue project I will allocate some time.

You mentioned that you "uploaded a small image...". Is the uploaded image the same file size and dimensions? Can you download the image to your computer and see if it views OK?

If your problem is with .htaccess then when you have resolved the issue I would be grateful if you could post your solution.
 
 
 
#8

[eluser]JPrieto[/eluser]
well...

i simply downloaded a fresh copy of CI and all is well now

perhaps, and this is a humble guess, the area where ci resided in my hd was corrupted

i did had to upload outside the system directory -- a reason i will soon discover why

but in reference to the subject of the thread -- once i downloaded a fresh copy of CI ... all was well

i do not use a .htaccess -- i installed a wamp on my pc which i use as a server to test my php scripts




Theme © iAndrew 2016 - Forum software by © MyBB