[CWB] [CQPweb] Install error: sql-definitions.inc.php nowhere to be found

Scott Sadowsky ssadowsky at gmail.com
Wed May 8 10:55:34 CEST 2019


On Wed, May 8, 2019 at 1:55 AM Hardie, Andrew <a.hardie at lancaster.ac.uk>
wrote:

That’s very peculiar… I’m not aware of any script that references that
> file. Certainly I don’t believe it’s mentioned in autosetup. Is there any
> more to the error message?
>

It's gone now, happily. I was getting strange svn errors for a while
("Malformed HTML entity", for example, plus aborted downloads), so who
knows what happened. But I do have another question for you (and I
apologize in advance for asking so many of them).

I'm at the very last step of installing CQPweb, and I'm getting the
following error:

/var/www/html/cqpweb/bin $ sudo php autosetup.php

Now finalising setup for this installation of CQPweb.....

Installing database structure; please wait.
PHP Fatal error: Uncaught Error: Call to a member function is_admin() on
null in /var/www/html/cqpweb/lib/sql-definitions.php:44
Stack trace:
#1 /var/www/html/cqpweb/bin/autosetup.php(87): do_mysql_total_reset()
#1 (main)
  thrown in /var/www/html/cqpweb/lib/sql-definitions.php on line 44


Any idea where I went wrong here?

Assuming it's relevant, here's the contents of my config.inc.php file
(minus the comments):

<?php
$superuser_username = 'cqpweb';

$mysql_webuser = 'cqpweb';
$mysql_webpass = 'hunter2';
$mysql_schema  = 'cqpweb';
$mysql_server  = 'localhost';

$cqpweb_tempdir   = '/usr/local/share/cqpweb/cache';
$cqpweb_uploaddir = '/usr/local/share/cqpweb/upload';
$cwb_datadir      = '/usr/local/share/cqpweb/data';
$cwb_registry     = '/usr/local/share/cqpweb/registry';
?>


These four directories are owned by www-data, and their permissions are all
drwsrws---. I've gotten the same error when using a different
$superuser_username value, for what that's worth.

Thanks in advance!
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20190508/669711de/attachment.html>


More information about the CWB mailing list