Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

[SOLVED] Images on templates won't appear!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
AshlynnXD
Smarty n00b


Joined: 27 Apr 2017
Posts: 3

PostPosted: Thu Apr 27, 2017 5:49 am    Post subject: [SOLVED] Images on templates won't appear! Reply with quote

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! Shocked
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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Apr 27, 2017 11:49 am    Post subject: Reply with quote

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
View user's profile Send private message
AshlynnXD
Smarty n00b


Joined: 27 Apr 2017
Posts: 3

PostPosted: Thu Apr 27, 2017 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Apr 27, 2017 6:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
AshlynnXD
Smarty n00b


Joined: 27 Apr 2017
Posts: 3

PostPosted: Thu Apr 27, 2017 9:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Apr 28, 2017 10:17 am    Post subject: Reply with quote

No problem, glad your problem is solved!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP