Fail to import new form, GS error

Asked by Lagadec on 2016-06-13

Hi Adam,
I have got a new problem.
When I want to import new form, the message "Failed to import as no pages were detected" appears
So I tried with the forms already imported but I have the same message.

When I run the GS command on CLI :
C:\.../gs/bin/gswin64c.exe -sDEVICE=pnggray -r300 -sOutputFile="C:\...\quexf\tmp\FORF3CF.tmp"%d.png -dNOPAUSE -dBATCH ""

I have this message : https://framapic.org/7Q6Z7k0SBzBp/FEAHeWTfWFFM.PNG

I don't know what is the probem...

Thank's
Quentin

Question information

Language:
English Edit question
Status:
Solved
For:
queXF Edit question
Assignee:
No assignee Edit question
Solved by:
Lagadec
Solved:
2016-06-14
Last query:
2016-06-14
Last reply:
2016-06-14
Adam Zammit (adamzammit) said : #1

Have you altered any of that text? If not the definitions of the paths look incorrect. That error message indicates the file could not be found. Maybe try altering the backslashes for forwardslashes?

Lagadec (q-lagadec) said : #2

I have nothing changed except the begin of the path.
I tried with backslashes and forwardslashes and no change.
I think the problem is that the filename does not appear after -dBATCH.

In pagetest.php or in the function newquestionnaire in functions.import.php there is "$filename" but it is empty and the command does not work.

  exec(GS_BIN . " -sDEVICE=$type -r300 -sOutputFile=\"$tmp\"%d.png -dNOPAUSE -dBATCH \"$filename\"");

And when I look at $_FILES['form']['tmp_name'], it is empty too :
var_dump($_FILES['form'])

array(5) { ["name"]=> string(17) "test_original.pdf" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(1) ["size"]=> int(0) }

When I look at tmp folder, there is .tmp file but not the .png file

Lagadec (q-lagadec) said : #3

Ok...
["error"]=> int(1) means that the file is too heavy
the problem was my new php.ini

Thank's
Quentin