Have been trying to get this to work without success, see Pauly78s “a quick how to” …
[url]http://forum.cs-cart.com/showthread.php?t=760&highlight=image+upload[/url]
We have tried every which way to get this to work. We keep getting this error …
“Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/b*******:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/b*******/public_html/include/admin/exim.php on line 1237
Updating links… [OK]”
We have uploaded the products ok from a CSV file but the images won’t work, however, we can upload them individually from manage products taking the images from our local computer.
Can anyone help with this please
BarryH
[quote name=‘BarryH’]Have been trying to get this to work without success, see Pauly78s “a quick how to” …
[URL]http://forum.cs-cart.com/showthread.php?t=760&highlight=image+upload[/URL]
We have tried every which way to get this to work. We keep getting this error …
“Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/b*******:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/b*******/public_html/include/admin/exim.php on line 1237
Updating links… [OK]”
We have uploaded the products ok from a CSV file but the images won’t work, however, we can upload them individually from manage products taking the images from our local computer.
Can anyone help with this please
BarryH[/quote]
I’m not a server-guru but can tell you that it’s a server based issue.
It would seem you either don’t have write permissions to the /images/ directory and sub-directories or else your server doesn’t allow uploads via the current format.
I suggest you contact your host.
Hi Jesse
Thanks for that, we kind of thought it was but being clueless leaves us rather short of confidence!
thanks again
BarryH
From php.net:
[quote]
open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.
When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it’s not possible to avoid this restriction with a symlink. If the file doesn’t exist then the symlink couldn’t be resolved and the filename is compared to (a resolved) open_basedir .
The special value . indicates that the working directory of the script will be used as the base-directory. This is, however, a little dangerous as the working directory of the script can easily be changed with chdir().
In httpd.conf, open_basedir can be turned off (e.g. for some virtual hosts) the same way as any other configuration directive with “php_admin_value open_basedir none”.
Under Windows, separate the directories with a semicolon. On all other systems, separate the directories with a colon. As an Apache module, open_basedir paths from parent directories are now automatically inherited.
The restriction specified with open_basedir is actually a prefix, not a directory name. This means that “open_basedir = /dir/incl” also allows access to “/dir/include” and “/dir/incls” if they exist. When you want to restrict access to only the specified directory, end with a slash. For example: “open_basedir = /dir/incl/”
[/quote]
By the looks of it you have “open_basedir” enabled on your server and do not have the images directory in the permitted directory tree.
Hi
We have been on to our host and they say that our scripting needs to be altered to allow for [COLOR=“Red”]/home/b*******/public_html/images/detail_images/[/COLOR] this is all confusing to me.
I am not sure what to do next, don’t want to go to CS if I can avoid it!
Anyone got any ideas, for simple people preferably!!!
BarryH
Well they are talking about the full system path there… It is so the server can see your directory. Becasue your site thinks it lives in its shared hosting directory, and doesnt know about the shared hosting setup it shares…
Thats my best explanation… lol
As an after thought have you tried uploading all pics to the server, then in your csv database to upload, you could refer to the full URL of each pic. ?
Hi
Thanks for that, we have tried all sorts of things. It uploads everything except the picture, even if we refer to picture when it is on server. If we upload the picture to a product one at a time that works fine!
Not sure what is happening???
BarryH