screen icon indicating copy to clipboard operation
screen copied to clipboard

failed to write the picture

Open sotaan opened this issue 8 years ago • 18 comments

Hey. Just tried to use your demo code and this is what I got from nginx:

FastCGI sent in stderr: "PHP message: PHP Warning: filesize(): stat failed for test.jpg in /httpdocs/test.php on line 42 PHP message: PHP Warning: readfile(test.jpg): failed to open stream: No such file or directory in /httpdocs/test.php on line 43" while reading response header from upstream

Thx for your package anyway

sotaan avatar Jun 23 '16 09:06 sotaan

Same problem here :(

Aswin1241 avatar Jul 19 '16 08:07 Aswin1241

I'm sorry but I can't test it at the moment, can you debug it please, and if possible submit a fix?

Thanks

MASNathan avatar Jul 28 '16 15:07 MASNathan

Same problem..

demenvil avatar Jul 31 '16 19:07 demenvil

Can you provide steps to reproduce the problem?

peter-mw avatar Aug 01 '16 08:08 peter-mw

Hi, I followed the instruction of README (install with composer ). And i have => sh: 1: /var/www/xxx.xxx/thumb/vendor/microweber/screen/bin/phantomjs: not found

My code : ````

save($fileLocation, true); ``` ```

demenvil avatar Aug 01 '16 09:08 demenvil

ping @MASNathan

peter-mw avatar Aug 01 '16 11:08 peter-mw

if i try your demo, same problem too.

demenvil avatar Aug 03 '16 15:08 demenvil

come-on someone submit PR for this :)

peter-mw avatar Aug 03 '16 16:08 peter-mw

Yup. Not working for me either.

ghost avatar Aug 03 '16 18:08 ghost

@joshcrawmer4 @demenvil

can you debug it?

peter-mw avatar Aug 04 '16 00:08 peter-mw

Would be great, if someone could fix this awesome tool. Will be really useful.

Aswin1241 avatar Aug 05 '16 13:08 Aswin1241

I managed to fix this problem by replacing phantomjs with the 64bit one from http://phantomjs.org/download.html Just swap them and now works :)

cylix99 avatar Aug 13 '16 14:08 cylix99

hy for me, on localhost (window) it works with phantomjs linux 64bit too but on server it does not work run demo/shot.php: the test.jpg image is deleted, but it's not create the new image

any suggest?

Pocak87 avatar Oct 05 '16 18:10 Pocak87

Same problem with errors. 🎱

Warning: filesize(): stat failed for test.jpg in PATH on line 50

Warning: readfile(test.jpg): failed to open stream: No such file or directory in PATH on line 51

MokeKemo avatar Oct 21 '16 11:10 MokeKemo

This fixed the problem on my site:

Change the filelocation to: $fileLocation = $_SERVER["DOCUMENT_ROOT"].'/SAVE_FOLDER/FILENAME'; $screen->save($fileLocation);

baxterbln avatar May 26 '18 10:05 baxterbln

I did all of solution but get 500 error. how can I get rid of it? It really made me crazy

vahidsabet avatar Aug 10 '19 05:08 vahidsabet

create pacote: $ composer require cpdrenato/screen

lucenarenato avatar Feb 17 '21 14:02 lucenarenato

pacote corrigido para 64bits : $ composer require cpdrenato/screen

lucenarenato avatar Feb 17 '21 14:02 lucenarenato