Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images not displaying #133

Closed
markzsanantonio opened this issue Apr 23, 2016 · 2 comments
Closed

Images not displaying #133

markzsanantonio opened this issue Apr 23, 2016 · 2 comments

Comments

@markzsanantonio
Copy link

On my local server (xampp localhost), everything seems to work fine except for the images, it shows a broken image icon. I made them show by concatenating it with the Yii::getAlias('@web') to the pages which have images in it (e.g. Yii::getAlias('@web') . $this->image). I went back to the online demo and checked the image src, they're using the /uploads/thumbs/ path and it works, it displays the images. When I am using the local server it doesn't. Do I need to upload it online to make it work?

Any help on this matter would be greatly appreciated. Thank you :)

@mkrvevgn
Copy link

This problem because of your project must be in webroot folder (see reqiurements on site)
like so:
C:\xampp\htdocs\index.php
not like so:
C:\xampp\htdocs\easyii\index.php

Although, i prefer second variant.If you want images are displayed even project installed at C:\xampp\htdocs\easyii\index.php
you just need correct one row in "httpd.conf" file (opened through XAMPP Control Panel - Config - httpd.conf)

old row: #DocumentRoot "C:/xampp/htdocs"
new row: DocumentRoot "C:/xampp/htdocs/easyii"

Stop and Start again Apache through XAMPP Control Panel. That's all.

@markzsanantonio
Copy link
Author

It worked, thank you so much :)
On Apr 23, 2016 6:31 PM, "mkrvevgn" notifications@github.com wrote:

This problem because of your project must be in webroot folder (see
reqiurements on site)
like so:
C:\xampp\htdocs\index.php
not like so:
C:\xampp\htdocs\easyii\index.php

Although, i prefer second variant.If you want images are displayed even
project installed at C:\xampp\htdocs\easyii\index.php
you just need correct one row in "httpd.conf" file (opened through XAMPP
Control Panel - Config - httpd.conf)

old row: #DocumentRoot "C:/xampp/htdocs"
new row: DocumentRoot "C:/xampp/htdocs/easyii"

Stop and Start again Apache through XAMPP Control Panel. That's all.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#133 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants