|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
AshlynnXD Smarty n00b
Joined: 27 Apr 2017 Posts: 3
|
Posted: Thu Apr 27, 2017 5:49 am Post subject: [SOLVED] Images on templates won't appear! |
|
|
I recently upgraded smart to smarty-3.1.30, and WampServer Version 3.0.6 64bit the latest version. Before i did this the images worked just fine, but now it is broken and i don't know why.
After upgrade.
Screenshot http://prntscr.com/f1booc
But in the editor are just fine.
http://prntscr.com/f1btkg
I tested the link to each image, its correct. If i drag it into the url bar it loads the image ok. But not on the page.
Steps i took to resolve it.
1 Deleted the cache + templates_c files.
2 checked the url links to the images like 20 times.
3 restarted wampserver, + services.
4 tried chrome, firefox, ie...
Here is how i have it on the account.tpl
Code: | <img src="../images/credit.JPG" width="25" height="25" /> |
I even tried a direct link to it, still broken.
Code: | <img src="C:/wamp64/www/images/credit.JPG" width="25" height="25" /> |
Everything else is ok after the upgrades.. But this is frustrating me!
Is there a step i need to do to allow images now on the latest build?[url][/url]
Last edited by AshlynnXD on Thu Apr 27, 2017 9:57 pm; edited 1 time in total |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Apr 27, 2017 11:49 am Post subject: |
|
|
Look at the produced HTML and look at the server logs.
Also keep in mind that your local filesystem path will never work. |
|
Back to top |
|
AshlynnXD Smarty n00b
Joined: 27 Apr 2017 Posts: 3
|
Posted: Thu Apr 27, 2017 4:36 pm Post subject: |
|
|
AnrDaemon wrote: | Look at the produced HTML and look at the server logs.
Also keep in mind that your local filesystem path will never work. |
I only did that on my pc, to see what is going on.
it's weird only errors in access.txt is
HTTP/1.1" 403 320
HTTP/1.1" 403 322
HTTP/1.1" 403 323
HTTP/1.1" 403 324
HTTP/1.1" 403 325
i am not sure why the images all the sudden are "forbidden"... |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Apr 27, 2017 6:15 pm Post subject: |
|
|
Because you changed something in your environment. This has nothing to do with Smarty.
Given your src URI, it may be out-of-webroot request attempts, which are no longer normalized by modern servers, but are instead blocked. |
|
Back to top |
|
AshlynnXD Smarty n00b
Joined: 27 Apr 2017 Posts: 3
|
Posted: Thu Apr 27, 2017 9:56 pm Post subject: |
|
|
AnrDaemon wrote: | Because you changed something in your environment. This has nothing to do with Smarty.
Given your src URI, it may be out-of-webroot request attempts, which are no longer normalized by modern servers, but are instead blocked. |
Oops ya where right, my bad the new wamp had vhost enabled.
i did not even think about it, after i disabled that, it all started working again.
i dont need it in just offline test mode, but thanks. i will mark it as resolved.
:embarrassed: |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Apr 28, 2017 10:17 am Post subject: |
|
|
No problem, glad your problem is solved! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|