Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[Solved] Multisite installation error
Hello, I tried to install a new site in a multisite environment under textpattern 4.8.8. I have some sites running in this multisite directory, but the installation was made under single site conditions, so that’s why I’m the first time confrontated with the following error after creating the config.php
.
PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(/var/www/multi/textpattern/../themes): Failed to open directory: No such file or directory in /var/www/multi/textpattern/vendors/Textpattern/Iterator/RecDirIterator.php:55
Stack trace:
#0 /var/www/multi/textpattern/vendors/Textpattern/Iterator/RecDirIterator.php(55): RecursiveDirectoryIterator->__construct()
#1 [internal function]: Textpattern\Iterator\RecDirIterator->__construct()
#2 /var/www/multi/textpattern/vendors/Textpattern/Container/Container.php(118): ReflectionClass->newInstanceArgs()
#3 /var/www/multi/textpattern/vendors/Txp.php(54): Textpattern\Container\Container->getInstance()
#4 /var/www/multi/textpattern/vendors/Textpattern/Skin/CommonBase.php(494): Txp::get()
#5 /var/www/multi/textpattern/vendors/Textpattern/Skin/Skin.php(385): Textpattern\Skin\CommonBase->getFiles()
#6 /var/www/multi/textpattern/vendors/Textpattern/Skin/Skin.php(410): Textpattern\Skin\Skin->setUploaded()
#7 /var/www/multi/textpattern/setup/index.php(424): Textpattern\Skin\Skin->getUploaded()
#8 /var/www/multi/textpattern/setup/index.php(148): step_getTxpLogin()
#9 /var/www/multi/sites/domainname/admin/setup/index.php(186): include('...')
#10 {main}
thrown in /var/www/multi/textpattern/vendors/Textpattern/Iterator/RecDirIterator.php on line 55
The config.php in /var/www/multi/sites/domainname/private/
looks like that:
$txpcfg['db'] = 'databasename';
$txpcfg['user'] = 'databaseuser';
$txpcfg['pass'] = 'databasepassword';
$txpcfg['host'] = '127.0.0.1';
$txpcfg['table_prefix'] = '';
$txpcfg['txpath'] = '/var/www/multi/textpattern';
$txpcfg['dbcharset'] = 'utf8mb4';
$txpcfg['multisite_root_path'] = '/var/www/multi/sites/domainname';
$txpcfg['admin_url'] = 'domainname/txp';
$txpcfg['cookie_domain'] = 'domainname';
if (!defined('txpath')) { define('txpath', $txpcfg['txpath']); }
So as far as I understand it, there is a problem in paths. One file couldn’t be found, but I don’t understand which one. All the paths thrown out in the error message are real and existing, so maybe how can I get a more detailed error message? Or what may I have overseen?
Last edited by whocarez (2023-10-29 14:27:30)
Offline
Re: [Solved] Multisite installation error
Problem solved.
The setup was missing the “themes” directory in /var/www/multi
. Deleted that before, because every “public” directory has his own “themes” directory.
Offline