Ubuntu 16.04 - Blank Page / Error, try with Firefox

Asked by Ian Jefferson on 2018-01-27

Hi

I'm trying to setup QueXF to work with Limesurvey but when I try to do anything, such as upload a form to test compatability or try and visit the Page Setup page, I end up with a white page.

If I run the Test Configuration it says that it passess successfully.

Can you give me any hints as to what I can do to try and get the setup working correctly? I'm at a loss as to what else to try.

Thanks

Ian

Question information

Language:
English Edit question
Status:
Solved
For:
queXF Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Zammit
Solved:
2018-02-14
Last query:
2018-02-14
Last reply:
2018-02-09
Ian Jefferson (ijeffers1) said : #1

Meant to put, that if I view the source of the page I can see text about Try using firefox - but it doesn't actually display anywhere.

Adam Zammit (adamzammit) said : #2

Hi Ian,

Please try having a look at the php log files and see if any errors come up. It is possible that a module is missing such as php-xml

Adam

Ian Jefferson (ijeffers1) said : #3

Hi Adam

No errors appear in the error.log file that I can see, I've checked and php-xml is installed and enabled. I'm not sure what else to check!

Thanks

Ian

Adam Zammit (adamzammit) said : #4

Hi Ian,

Can you please provide some more detail about the server you have installed queXS on - i.e. the distribution, the version of PHP and Mysql used.

An up-to-date list of the queXF requirements can be viewed inside this Docker file:

https://github.com/adamzammit/quexf-docker/blob/master/Dockerfile

Adam

Ian Jefferson (ijeffers1) said : #5

Hi Adam

The server is Ubuntu 16.04.3 LTS, running Apache2.4.18 and PHP 7.0.22-0ubuntu0.16.04.1, MySQL server 5.7.21-0ubuntu0.16.04.1

ADODB was installed using apt-get install libphp-adodb - don't think I need to do anything else more than that, source file reveals it's version 5.20.3 - Is ADODB supposed to be listed in phpinfo? If it is then perhaps I haven't enabled it properly but not entirely sure how else to do that (and my googling isn't turning up anything useful)

Been through the Docker file and installed the extra bits from your apt-get list but it just appeared to be the OCR stuff that was missing.

Thanks in advance.

Ian

Adam Zammit (adamzammit) said : #6

Thanks Ian,

Can you please include the details of your config.inc.php file
(excluding any passwords of course)

Adam

On 7 February 2018 at 20:43, Ian Jefferson
<email address hidden> wrote:
> Question #663673 on queXF changed:
> https://answers.launchpad.net/quexf/+question/663673
>
> Status: Answered => Open
>
> Ian Jefferson is still having a problem:
> Hi Adam
>
> The server is Ubuntu 16.04.3 LTS, running Apache2.4.18 and PHP
> 7.0.22-0ubuntu0.16.04.1, MySQL server 5.7.21-0ubuntu0.16.04.1
>
> ADODB was installed using apt-get install libphp-adodb - don't think I
> need to do anything else more than that, source file reveals it's
> version 5.20.3 - Is ADODB supposed to be listed in phpinfo? If it is
> then perhaps I haven't enabled it properly but not entirely sure how
> else to do that (and my googling isn't turning up anything useful)
>
> Been through the Docker file and installed the extra bits from your apt-
> get list but it just appeared to be the OCR stuff that was missing.
>
> Thanks in advance.
>
> Ian
>
> --
> You received this question notification because you are an answer
> contact for queXF.

--
Adam Zammit
Research and Development Officer, Survey Methodology
Acting Director of Operations
Australian Consortium for Social and Political Research Inc.
+61 3 9013 9653
http://www.acspri.org.au/

Ian Jefferson (ijeffers1) said : #7

Hi Adam

See below.

Thanks

Ian

<?php
define('DB_USER', 'limesurvey');
define('DB_PASS', '');
define('DB_HOST', 'localhost');
define('DB_NAME', 'quexf');

define('ADODB_DIR', '/usr/share/php/adodb/');

define('BLANK_PAGE_DETECTION', true);

define('PROCESS_MISSING_PAGES',true);

//REQUIRED: Ghostscript binary
define('GS_BIN', "/usr/bin/gs");

define('DEBUG', false);

define('OCR_ENABLED',false);

define('IMAGES_DIRECTORY', dirname(__FILE__) . '/images/');

define('SCANS_DIRECTORY', dirname(__FILE__) . '/scans/');

//Temporary directory
define('TEMPORARY_DIRECTORY', "/tmp");

define('PROCESS_SLEEP',600);

define('HORI_WIDTH_BOX',54);
define('VERT_WIDTH_BOX',54);

define('BARCODE_TLX_PORTION',0.5); //Top left X
define('BARCODE_TLY_PORTION',0); //Top left Y
define('BARCODE_BRX_PORTION',1); //Bottom right X
define('BARCODE_BRY_PORTION',0.2); //Bottom right Y

define('BARCODE_TLX_PORTION2',0); //Top left X
define('BARCODE_TLY_PORTION2',0.8); //Top left Y
define('BARCODE_BRX_PORTION2',0.5); //Bottom right X
define('BARCODE_BRY_PORTION2',1); //Bottom right Y

define('DISPLAY_PAGE_WIDTH',800); //width of page display

define('MULTIPLE_CHOICE_MIN_FILLED', 0.85);
define('MULTIPLE_CHOICE_MAX_FILLED', 0.60);
define('SINGLE_CHOICE_MIN_FILLED', 0.85);
define('SINGLE_CHOICE_MAX_FILLED', 0.60);

define('HTPASSWD_PATH', false);
define('HTGROUP_PATH', false);

//Do not remove the following line:
include(dirname(__FILE__) . '/config.default.php');
?>

Best Adam Zammit (adamzammit) said : #8

Hi Ian,

I have run an install of queXF 1.20.4 on Ubuntu 16.04 and I cannot
reproduce this error.

Can you please test by "Importing a new form" the "test_original.pdf"
file in the "doc" directory. Or "Test form compatability" with that
same file?

Adam

On 8 February 2018 at 19:34, Ian Jefferson
<email address hidden> wrote:
> Question #663673 on queXF changed:
> https://answers.launchpad.net/quexf/+question/663673
>
> Status: Answered => Open
>
> Ian Jefferson is still having a problem:
> Hi Adam
>
> See below.
>
> Thanks
>
> Ian
>
> <?php
> define('DB_USER', 'limesurvey');
> define('DB_PASS', '');
> define('DB_HOST', 'localhost');
> define('DB_NAME', 'quexf');
>
> define('ADODB_DIR', '/usr/share/php/adodb/');
>
> define('BLANK_PAGE_DETECTION', true);
>
> define('PROCESS_MISSING_PAGES',true);
>
> //REQUIRED: Ghostscript binary
> define('GS_BIN', "/usr/bin/gs");
>
> define('DEBUG', false);
>
> define('OCR_ENABLED',false);
>
> define('IMAGES_DIRECTORY', dirname(__FILE__) . '/images/');
>
> define('SCANS_DIRECTORY', dirname(__FILE__) . '/scans/');
>
> //Temporary directory
> define('TEMPORARY_DIRECTORY', "/tmp");
>
> define('PROCESS_SLEEP',600);
>
> define('HORI_WIDTH_BOX',54);
> define('VERT_WIDTH_BOX',54);
>
> define('BARCODE_TLX_PORTION',0.5); //Top left X
> define('BARCODE_TLY_PORTION',0); //Top left Y
> define('BARCODE_BRX_PORTION',1); //Bottom right X
> define('BARCODE_BRY_PORTION',0.2); //Bottom right Y
>
> define('BARCODE_TLX_PORTION2',0); //Top left X
> define('BARCODE_TLY_PORTION2',0.8); //Top left Y
> define('BARCODE_BRX_PORTION2',0.5); //Bottom right X
> define('BARCODE_BRY_PORTION2',1); //Bottom right Y
>
> define('DISPLAY_PAGE_WIDTH',800); //width of page display
>
> define('MULTIPLE_CHOICE_MIN_FILLED', 0.85);
> define('MULTIPLE_CHOICE_MAX_FILLED', 0.60);
> define('SINGLE_CHOICE_MIN_FILLED', 0.85);
> define('SINGLE_CHOICE_MAX_FILLED', 0.60);
>
> define('HTPASSWD_PATH', false);
> define('HTGROUP_PATH', false);
>
>
> //Do not remove the following line:
> include(dirname(__FILE__) . '/config.default.php');
> ?>
>
> --
> You received this question notification because you are an answer
> contact for queXF.

--
Adam Zammit
Research and Development Officer, Survey Methodology
Acting Director of Operations
Australian Consortium for Social and Political Research Inc.
+61 3 9013 9653
http://www.acspri.org.au/

Ian Jefferson (ijeffers1) said : #9

Hi Adam

I'll test properly when I'm back in work next week, however a quick test and it seems to have kicked into life somehow.... Not sure what, if anything has changed, or just importing that file has restored/restarted something but at the moment it's looking promising!

Will update you next week.

Ian

Ian Jefferson (ijeffers1) said : #10

Thanks Adam Zammit, that solved my question.

Ian Jefferson (ijeffers1) said : #11

Hi Adam

Not sure what else has changed but it does appear to be working correctly now.

I think there is posisbly a level of confusion on my end with certain pages too, as if no form exists then it just loads as a blank page where as I was expecting some text/somethign to display not just a white page. Therefore potentially it has been working for longer then I have realised but I've not picked up on it.

Sorry for wasting your time, but thanks for your patience!

Ian