SnippetMaster Support Forums
Return to main website
 
May 23, 2008, 10:00:36 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2008, 10:00:36 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Images Not Inserting « previous next »
Pages: [1] Print
Author Topic: Images Not Inserting  (Read 248 times)
richlewt
Beta Tester

Posts: 23


[-] Images Not Inserting
« on: February 29, 2008, 08:01:48 AM »

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>&nbsp;<img width="500" src="photos/081.jpg" alt=" " height="349" style="width: 500px; height: 349px" /></td>
      </tr>
      
      <tr>
         <td>&nbsp;<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?
Report to moderator   Logged

cheers
Rich
richlewt
Beta Tester

Posts: 23


[-] Re: Images Not Inserting
« Reply #1 on: March 01, 2008, 12:27:57 AM »

Hi
Sorry to be a pain, but I am really stuck on this one. Anyone got any clues? Very Happy
Report to moderator   Logged

cheers
Rich
Jenkinhill
Beta Tester

Posts: 347



[-] Re: Images Not Inserting
« Reply #2 on: March 01, 2008, 03:18:09 AM »

Are these images supposed to be in different relative directories?

src="photos/081.jpg"     and    src="../photos/006.jpg"
Report to moderator   Logged

Kelvyn
richlewt
Beta Tester

Posts: 23


[-] Re: Images Not Inserting
« Reply #3 on: March 01, 2008, 03:40:01 AM »

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.
« Last Edit: March 01, 2008, 04:13:49 AM by richlewt » Report to moderator   Logged

cheers
Rich
Jenkinhill
Beta Tester

Posts: 347



[-] Re: Images Not Inserting
« Reply #4 on: March 01, 2008, 05:42:48 AM »

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  Smile
Report to moderator   Logged

Kelvyn
richlewt
Beta Tester

Posts: 23


[-] Re: Images Not Inserting
« Reply #5 on: March 01, 2008, 10:06:53 AM »

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  Smile

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.  Laughing
Report to moderator   Logged

cheers
Rich
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Images Not Inserting « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!