Too few arguments to function Shlinkio\\Shlink\\Config\\parseEnvVar(), 0 passed in vendor/shlinkio/shlink-config/functions/functions.php on line 82 and exactly 1 expected invendor/shlinkio/shlink-config/functions/functions.php:46 #1719
-
How Shlink is set up
SummaryI installed Shlink using the following commands (just like what developers would, but on the stable branch): git clone https://github.com/shlinkio/shlink/ -b main --depth 1 --recursive # Clone the stable branch, shalow clone, recursive submodules (if any)
composer install # install PHP dependencies I set up Shlink using <?php
return array(
'DB_DRIVER' => 'mysql',
'DB_NAME' => 'shlink',
'DB_HOST' => 'localhost',
'DB_PORT' => '3306',
'DB_USER' => 'shlink',
'DB_PASSWORD' => '[PLACEHOLDER]',
'DB_UNIX_SOCKET' => '/run/mysqld/mysqld.sock',
'DEFAULT_DOMAIN' => 'placeholder.example.com',
'IS_HTTPS_ENABLED' => true,
'DEFAULT_SHORT_CODES_LENGTH' => 5,
'AUTO_RESOLVE_TITLES' => true,
'REDIRECT_APPEND_EXTRA_PATH' => false,
'MULTI_SEGMENT_SLUGS_ENABLED' => false,
'SHORT_URL_TRAILING_SLASH' => true,
'SHORT_URL_MODE' => 'strict',
'GEOLITE_LICENSE_KEY' => null,
'REDIRECT_STATUS_CODE' => 308,
'REDIRECT_CACHE_LIFETIME' => 30,
'DISABLE_TRACKING' => false,
'TRACK_ORPHAN_VISITS' => true,
'DISABLE_TRACK_PARAM' => 'dnt',
'DISABLE_TRACKING_FROM' => '127.0.0.1,::1',
'DISABLE_IP_TRACKING' => true,
'DISABLE_UA_TRACKING' => true,
'DISABLE_REFERRER_TRACKING' => true,
'DEFAULT_BASE_URL_REDIRECT' => null,
'DEFAULT_INVALID_SHORT_URL_REDIRECT' => null,
'DEFAULT_REGULAR_404_REDIRECT' => null,
'DEFAULT_QR_CODE_SIZE' => 300,
'DEFAULT_QR_CODE_MARGIN' => 0,
'DEFAULT_QR_CODE_FORMAT' => 'svg',
'DEFAULT_QR_CODE_ERROR_CORRECTION' => 'q',
'DEFAULT_QR_CODE_ROUND_BLOCK_SIZE' => true,
'DELETE_SHORT_URL_THRESHOLD' => null,
'BASE_PATH' => '',
'TIMEZONE' => null,
'REDIS_SERVERS' => null,
); Here I attach my Apache site configuration file:
Current behaviorThe PHP script failed to execute. It raises the following error:
Expected behaviorIt should work. I've followed the steps in install from dist files. How to reproduceFollow what I did. If this is not a device-specific problem nor a careless mistake, this should be reproduced. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
In the document you reference it doesn't mention anything about git-cloning. Instead, you should download a "dist" file. In that same document you will find a "Download" button. Click on it, and on the release page, download the appropriate dist file, decompress it, and then follow the next steps as you did. |
Beta Was this translation helpful? Give feedback.
@Emojigit FYI, another user faced this same issue and everything points in the direction of it being a bug on PHP 8.1.2 #1721 (reply in thread)
Try updating to the latest PHP 8.1 patch version.