Open GoogleCodeExporter opened 8 years ago
After a few more hours of evaluation, it seems the error is thrown from the
eval()
command. The upload itself would work if executed directly. I don't know what
the
problem with the eval command could be. Also, it's a really basic function of
phpshop, so why am I running in these problems? Is it because I'm using windows?
Original comment by markus.o...@gmail.com
on 25 Sep 2008 at 11:17
Hi Markus,
This looks like you have to chmod 0777 your image directory before you upload
an image
Original comment by ulis...@gmail.com
on 30 Sep 2008 at 2:23
Hi
On windows, there is nothing like that, is there?
For now, I just execute the commands right away instead of saving them in a
variable
and then use eval. I still think that windows has something to do with it.
Original comment by markus.o...@gmail.com
on 30 Sep 2008 at 2:39
Hi Markus,
[function.unlink]: Permission denied
shows, that there must be a permission error
probably xampp does not allow the script to delete files from the image
directory or
the image itself
"Warning: copy(C: mpp mp\php3E.tmp) [function.copy]: failed to open stream:
the slashes/backslashes are missing in path strin, so there is no complete path
present, which causes the error message.
Invalid argument in
"Warning: copy(C: mpp mp\php3E.tmp)
When i ran the shop under windows, in index.php i defined
define('PS_BASE', 'h:/www/files/');
so there are no backslashes in the path.
If you want to use backslashes this should look like
define('PS_BASE', 'h:\\www\\files\\');
otherwise a single backslash may be interpreted as escape character which would
explain this:
C: mpp mp\php3E.tmp
Original comment by ulis...@gmail.com
on 2 Oct 2008 at 7:21
try to change
$path$curr_file
with
$path.$curr_file
(note the dot)in admin/lib/ps_main.inc
work's for me!
Original comment by nandelb...@gmail.com
on 18 Nov 2008 at 6:36
Just marking this as a 1.0 issue.
Original comment by edikon
on 16 Feb 2009 at 2:47
Notice the use of mixed slashes in the error return when this occurs:
ERROR: Image Update command failed.
$ret = copy("C:\xampp\tmp\php3E.tmp",
"C:/xampp/htdocs/www/gametown/phpshop/phpshop/images/shop/product/196796decbd536
81024
715ac5522780d.jpg")"
My solution was to use the php function ereg_replace, replacing the "\" with
"/" for
the temporary file's path. This is run locally on a Windows XP system. I have
no
idea what occurs on Linux or other systems.
The use of slashes in paths has always been a confounding issue for me. Various
systems demand use of one or the other. Sone don't car at all. This should have
been
made some sort of standard a very long time ago. But I have no historical
perspective on this.
Original comment by fliger.d...@gmail.com
on 23 Feb 2009 at 11:56
Original issue reported on code.google.com by
markus.o...@gmail.com
on 24 Sep 2008 at 1:08