Nextcloud version: 20.0.1
Operating system and version: unknown
Apache or nginx version: unknwon
PHP version: 7.4.15
The issue I am facing:
Error 500 when calling a Nextcloud URL. “500” is not visible anywhere when the error message appears, but the error text is obviously generated by index.php, if server replies with error 500 on
try {
require_once __DIR__ . '/lib/base.php';
The server error log showed:
[Mon Feb 22 12:02:12.032531 2021] [autoindex:error] [pid 505:tid 140480054867712] [client 87.123.122.39:55313] AH01276: Cannot serve directory /path/to/cloud: No matching DirectoryIndex (none) found, and server-generated directory index forbidden by Options directive
So I tried to run base.php manually (is this a valid method to find an issue with a PHP lib?):
cd lib
php ./base.php
and what I got was:
PHP Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in /srv/www/vhosts/hermocom.com/domains/hertrich.photo/httpdocs/wordpress/cloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 73
The output of my config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '[anonymized]',
'passwordsalt' => '[anonymized]',
'secret' => '[anonymized]',
'trusted_domains' =>
array (
0 => '[anonymized]',
1 => 'www.[anonymized]',
),
'datadirectory' => '[anonymized]',
'overwrite.cli.url' => 'http://[anonymized]/cloud',
'dbtype' => 'mysql',
'version' => '20.0.1.1',
'dbname' => 'dhf_owncloud9',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => '[anonymized]',
'dbpassword' => '[anonymized]',
'logtimezone' => 'UTC',
'installed' => true,
'mail_from_address' => 'daniel',
'mail_smtpmode' => 'smtp',
'mail_domain' => '[anonymized]',
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'loglevel' => 2,
'htaccess.RewriteBase' => '/cloud',
'theme' => '',
'activity_expire_days' => 7,
'filelocking.enabled' => false,
'updater.release.channel' => 'beta',
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
'trashbin_retention_obligation' => 'auto, 10',
'versions_retention_obligation' => 'auto, 30',
'mail_smtphost' => 'posteo.de',
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'tls',
'mail_smtpport' => '587',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'PLAIN',
'mail_smtpname' => '[anonymized]',
'mail_smtppassword' => '[anonymized]',
'updater.secret' => '[anonymized]',
'app_install_overwrite' =>
array (
0 => 'occweb',
),
'encryption.legacy_format_support' => true,
'encryption.key_storage_migrated' => false,
);
Any help would be appreciated!
Thanks
Daniel