I don´t know why I have the problem. From one day to another day I´m getting the following report, when I make an upload od pics.
Warning: imagejpeg(): Unable to access /home/strato/www/sa/www.sail-marketing.de/htdocs/content/im ... e1c40c.jpg in /mnt/ja2/04/943/00000006/htdocs/include/inc_ext/ss_image/ss_image.class.php on line 202
Warning: imagejpeg(): Invalid filename '/home/strato/www/sa/www.sail-marketing.de/htdocs/content/im ... e1c40c.jpg' in /mnt/ja2/04/943/00000006/htdocs/include/inc_ext/ss_image/ss_image.class.php on line 202
I didn´t chance anythind in phpwcms configuration. The only thing I change was the programm I use for pic-work.
CAn somebody help in a easy way?
I would try making it /mnt/ja2/04/943/00000006/htdocs/
Maybe I've got the two backward, but it seems like this might be the root of your issues.
nearly the same problem on a website of my friend. Strato is the hoster, too.
It seams that strato modified their server, 'case the current php version is compiled on November 1st. Everything works fine till now.
I've changed the document root but no solution.
We need help here too.
maybe another on has a hint.
I tried all lot of things, like changing the root path (instead of using the document_root from the $_server, added debug output to ss_image.class.php but I can't find the error.
Does anybody knows, where the ss_image class get's the $where definition (that means the path, where it should store the preview image).
The support from strato didn't answer till know
Try the Environment variable route -OR- the "commented-out" explicit path declarations
Code: Select all
// site values $phpwcms["site"] = "http://".$_SERVER['SERVER_NAME']."/"; //$phpwcms["site"] = "http://www.sail-marketing.de/"; // paths $phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT']; //$phpwcms['DOC_ROOT'] = '/mnt/ja2/04/943/00000006/htdocs'; $phpwcms["root"] = "";
thanks for your help, so far.
@rushclub: I can't put a link here, 'cause I get the error only in the file administration (at the moment).
@deXXus: I've changed that already and it didn't work.
I've checked the directory permissions, too. For me everything looks okay.
There must be somethig special with the webserver from STRATO.
I've the same installtion on my SuSE Box. If you check the phpinfo() every path goes to the same path like $_SERVER['DOCUMENT_ROOT'] but if i call ss_image I see the error, like posted.
Why will ss_image use another path then the rest of the scripts. I'm really confused. Does anybody has an idea?
Really urgent, we can't change the content of our site.
I solved it. After a long time of testing I found out that the problem is the php function imagejpeg from GD.
STRATO uses the newest PHP 4.4.1 on theri server, which they build on Nov. 11st 2005.
Now you can find a small notice in the changelog:
- Added missing safe_mode checks for image* functions and cURL.
And there is the problem. To get phpwcms image functions to run on a php 4.4.1 environment you have to use the following workaround in the funtion output of the ss_image.class.php:
Code: Select all
ini_set(safe_mode,Off); touch($where); imagejpeg($image, $where, $this->cfg_JPEG_QUALITY); ini_set(safe_mode,On);
This you have to do for every output of the image* functions with a valid target ($where). Then phpwcms will work as expected.
Yes it was a bit tricky but when ist done, it was fun
I like that more than playing some stupid games on my pc )))
Sometimes I think Linus was right
Ooops: He said software is like ****, It's better when it's free.
I wanted to say SOMETIMES (and really only sometimes) software is better then ****. I found the bug and now I have to go to my wife