Warning: Unable to open cache/Sample Album/Trees.jpg__scaled_512.jpg in /usr/local/httpd/htdocs/phpix/view.php on line 139
Just trying to figure out what this error is. The web server owns all the files and has write ability. Just in case I chmod 777 to the cache folder but it didn't make and differece.
Any suggestions??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Still having problems with that. I opened up the apache error log at got this:
[Sun Jan 7 12:49:33 2001] [error] [client 166.70.99.170] File does not exist: /usr/local/httpd/htdocs/phpix/cache/Sample Album/A-10.jpg__scaled_512.jpg
For some reason phpix is not creating the thumbnails. I have the origional phpix and it's still working fine. Have any ideas??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-01-09
Okay, this is the second time I've seen someone do this. You chowned and chmoded your installation, yes? Did you try running it without setting ownership or permissions? I can't explain why, but for some reason if you change those, it quits working.
Keith, can you walk me through exactly what you're doing when you install? In a way that I can replay it. I want to get to the bottom of this :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well I though about that so I redid the install and the same results. I tried it with both version of phpix with the same results. I actually just did it after I read your post to make sure. I can see where it's changing permission and stuff so the make scripts is working fine. Here is the URL: http://www.starbrand.com/phpix/
I'm wondering if it has to do something with the PHP setup. I'm running SuSE7 so it might be alittle different that RedHat or whatever ditro your using. If you have any suggestions you'd like me to try let me know.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm. Are you sure SUSE doesn't have the "Scripts cannot be run SUID" bit on by default?
Bryan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-01-11
What bit is this, Bryan? I've never heard of such a beast. Are you talking about a mount option?
Bear in mind that the script itself isn't suid, the compiled wrapper is what's suid. I did it that way specifically because executing scripts suid is a security problem and many OSes (including Linux) don't allow it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
is not a SuSE problem - it is a PHP feature - don't run external scripts.
Go into the /etc/httpd/php.ini file and look for the line that says safe_mode = On. Turn it to Off. Restart PHP. Should work now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-02-12
Okay, good tip. I've put a little blurb in the README and config.inc telling people to use the "GD" method if they have thumbnail-creation problems. Thanks :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a similar problem. I think I have tracked it down to one line in the code. It's the section where PHPix issues the system() command and has (in my case) Image Magick create the re-sized files.
Unfortunatley, I do not know much about PHP other than the extreme basics.
I am running PHP on Xitami on Win98. Everything else works, except the thumb-nails. I set ran the resource meter to see if there was any CPU or HD usage when the script would run (I remember PHPix 1 would make the HD go nuts, but that was on a Linux box so PHPix worked correctly).
In any case, if you can check out that part of the program and make sure that the thing is working correctly (i.e. calling IM properly) I would really appreciate it. Yes, I have tried / instead of \ and have even replaced the variable with an absolute path to where $convert is on the HD. I've tried everything I can think of.
PS Keep up the good work!
-=/ MLFNET /=-
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2001-03-06
Remember that when you change a slash to a backslash, you have to put *two* backslashes, because backslash is the escape character.
For example: "This\is\a\string" is the same as "Thisisastring", because the backslash is just telling it "put the next character in the string, no matter what". This is how you get strings with quotes in them: "He said, \"hello.\"".
So change all those backslashes to *two* backslashes and you might get better results (eg. "c:\\path\\to\\whatever". Of course, in the shell, you may have to have four backslashes. It's a big mess. You might consider upgrading to Linux, which doesn't have this problem (but does have a whole bunch of different ones :^)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Warning: Unable to open cache/Sample Album/Trees.jpg__scaled_512.jpg in /usr/local/httpd/htdocs/phpix/view.php on line 139
Just trying to figure out what this error is. The web server owns all the files and has write ability. Just in case I chmod 777 to the cache folder but it didn't make and differece.
Any suggestions??
Still having problems with that. I opened up the apache error log at got this:
[Sun Jan 7 12:49:33 2001] [error] [client 166.70.99.170] File does not exist: /usr/local/httpd/htdocs/phpix/cache/Sample Album/A-10.jpg__scaled_512.jpg
For some reason phpix is not creating the thumbnails. I have the origional phpix and it's still working fine. Have any ideas??
Okay, this is the second time I've seen someone do this. You chowned and chmoded your installation, yes? Did you try running it without setting ownership or permissions? I can't explain why, but for some reason if you change those, it quits working.
Keith, can you walk me through exactly what you're doing when you install? In a way that I can replay it. I want to get to the bottom of this :-)
Well I though about that so I redid the install and the same results. I tried it with both version of phpix with the same results. I actually just did it after I read your post to make sure. I can see where it's changing permission and stuff so the make scripts is working fine. Here is the URL:
http://www.starbrand.com/phpix/
I'm wondering if it has to do something with the PHP setup. I'm running SuSE7 so it might be alittle different that RedHat or whatever ditro your using. If you have any suggestions you'd like me to try let me know.
Thanks
Hmm. Are you sure SUSE doesn't have the "Scripts cannot be run SUID" bit on by default?
Bryan
What bit is this, Bryan? I've never heard of such a beast. Are you talking about a mount option?
Bear in mind that the script itself isn't suid, the compiled wrapper is what's suid. I did it that way specifically because executing scripts suid is a security problem and many OSes (including Linux) don't allow it.
is not a SuSE problem - it is a PHP feature - don't run external scripts.
Go into the /etc/httpd/php.ini file and look for the line that says safe_mode = On. Turn it to Off. Restart PHP. Should work now.
Okay, good tip. I've put a little blurb in the README and config.inc telling people to use the "GD" method if they have thumbnail-creation problems. Thanks :-)
I have a similar problem. I think I have tracked it down to one line in the code. It's the section where PHPix issues the system() command and has (in my case) Image Magick create the re-sized files.
Unfortunatley, I do not know much about PHP other than the extreme basics.
I am running PHP on Xitami on Win98. Everything else works, except the thumb-nails. I set ran the resource meter to see if there was any CPU or HD usage when the script would run (I remember PHPix 1 would make the HD go nuts, but that was on a Linux box so PHPix worked correctly).
In any case, if you can check out that part of the program and make sure that the thing is working correctly (i.e. calling IM properly) I would really appreciate it. Yes, I have tried / instead of \ and have even replaced the variable with an absolute path to where $convert is on the HD. I've tried everything I can think of.
PS Keep up the good work!
-=/ MLFNET /=-
Remember that when you change a slash to a backslash, you have to put *two* backslashes, because backslash is the escape character.
For example: "This\is\a\string" is the same as "Thisisastring", because the backslash is just telling it "put the next character in the string, no matter what". This is how you get strings with quotes in them: "He said, \"hello.\"".
So change all those backslashes to *two* backslashes and you might get better results (eg. "c:\\path\\to\\whatever". Of course, in the shell, you may have to have four backslashes. It's a big mess. You might consider upgrading to Linux, which doesn't have this problem (but does have a whole bunch of different ones :^)