| Pages: [1] |
|
|
Author |
Topic: Images Not Inserting (Read 248 times) |
|
richlewt
Beta Tester
Posts: 23
|
Hi
Strange one this. I have set up 3 profiles, 2 of these profiles are allowing me to browse for an image, preview it and insert it. The other one allows me to navigate to the image folder and find the file name, but does not appear in the preview window. When you insert you also do not see it in the editor window except for a small cross. If you look at the souce code, it shows typically
<td> <img width="500" src="photos/081.jpg" alt=" " height="349" style="width: 500px; height: 349px" /></td>
</tr>
<tr>
<td> <img src="../photos/006.jpg" alt=" " /></td>
The image tag above displays but the lower one does not, as you can see the lower one has left off the image size dimensions despite the fact that it has successfully navigated to and picked up the file link.
Anyone got any clues?
|
cheers
Rich
|
|
|
|
richlewt
Beta Tester
Posts: 23
|
Hi
Sorry to be a pain, but I am really stuck on this one. Anyone got any clues? 
|
cheers
Rich
|
|
|
|
Jenkinhill
|
Are these images supposed to be in different relative directories?
src="photos/081.jpg" and src="../photos/006.jpg"
|
Kelvyn
|
|
|
|
richlewt
Beta Tester
Posts: 23
|
Are these images supposed to be in different relative directories?
src="photos/081.jpg" and src="../photos/006.jpg"
Hi Kelvyn
Thanks for your reply. Both photos are in the same directory. The structure I use is basically httpdocs/snippetmaster/(this folder contains all snippetmaster files) then original site was httpdocs/catalogue/photos- this works no problem. I have now added a new directory httpdocs/reports/photos , created a new user profile to use this new folder. The images are uploaded to the photos folder, the snippets are contained in the reports folder. Admin can use the old stucture httpdocs/snippet/photos and the new one httpdocs/reports/photos, when he adds a photo it gives the path photos/081.jpg, when the new user profile trys the same thing, he sees the file in httpdocs/reports/photos but when he tries to insert the path is ="../photos/081.jpg with no image showing.
===================================================================================
As a side issue and it may be something that is affecting this, when I do browse to photos folder to insert a file using my admin profile (which does work) it displays
Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/var/www/vhosts/mysite.com/httpdocs//..) is not within the allowed path(s): (/var/www/vhosts/mysite.com/httpdocs:/tmp) in /var/www/vhosts/mysite.com/httpdocs/snippetmaster/includes/filebrowser/functions.php on line 196
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/mysite.com/httpdocs//..) is not within the allowed path(s): (/var/www/vhosts/mysite.com/httpdocs:/tmp) in /var/www/vhosts/mysite.com/httpdocs/snippetmaster/includes/filebrowser/functions.php on line 231
in the browse box.
|
cheers
Rich
|
|
|
|
Jenkinhill
|
Looks like a pathway error?? The open_base_dir setting is used to prevent php scripts for a particular user from accessing files in another user's account - so either you are using a non-existent pathway or there is a server config error? And what is the differnce in configurations between your admin & user accounts?
Henri will understand this side of things better than I do 
|
Kelvyn
|
|
|
|
richlewt
Beta Tester
Posts: 23
|
Looks like a pathway error?? The open_base_dir setting is used to prevent php scripts for a particular user from accessing files in another user's account - so either you are using a non-existent pathway or there is a server config error? And what is the differnce in configurations between your admin & user accounts?
Henri will understand this side of things better than I do
SORTED!!
You were right it was a path error. In the user set up, I missed off the /photo path in the starting url field.
It works fine now. 
|
cheers
Rich
|
|
|
|
|
Pages: [1]
|
|
|
|