After setting up Drupal 9.3.8 for the first time, while I'm able to perform seemingly most activities within the configuration portion of the admin menu (I can access all pages, except this one, in fact), but the basic site settings page yields this:
The website encountered an unexpected error. Please try again later.
InvalidArgumentException: Source path has to start with a slash. in Drupal\path_alias\AliasManager->getAliasByPath() (line 185 of core/modules/path_alias/src/AliasManager.php).
Drupal\system\Form\SiteInformationForm->buildForm()
call_user_func_array() (Line: 531)
Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 708)
Drupal\Core\DrupalKernel->handle() (Line: 19)
Only thing I did prior to this was to set up the IndieWeb | Drupal.org module via composer. I'm running Drupal under Ubuntu latest version, and the site was configured with Softaculous. Ran Composer from the root directory of the install,but not from any of the subdirectories. I don't speak PHP all that well, but I'm learning as I go. I have a feeling that this is something stupidly simple, but it's alluding me. I found this similar issue: Misleading error: "InvalidArgumentException: Source path has to start with a slash." when user cannot access the front page [#2707991] | Drupal.org
Not sure how related it is, but it looks like it is. (I went to the basic settings, because right now, my site displays a nice page not found on the front page. Had I not gone there, I probably never would have caught it.) If anyone has any suggestions, all are welcome. Thanks in advance. You folks have been fantastic so far. If you need any more info, let me know. I haven't checked the actual site logs... yet. I'll probably do that later on; it's 23:00 on a work night for me. LOL
Comments
Am not qualified to comment
Am not qualified to comment but it's been long and no one has helped out so trying my best to help out.
Please try and provide your D9 setup details like Server (Apache?) DB (MySQL with version) Host (YourHost) PHP version and some details like allowed memory (from /admin/reports/status).
I also read, you are using Softaculous so try for support there - https://softaculous.deskuss.com/
Come back again and ask for help, again. Also please do not forget to provide feedback as to how you got out of the issue. Helps the community. We all have suffered and can always pray for you.
Cheers, hope you overcome. Best
I got a look at the error
I got a look at the error logs the other day... Will have to wait till I get home from work where I can get FTP access to the server, but it appears as though I'm perhaps dealing with some rogue files that were previously installed via Softaculous (switched from WP to Drupal mid-build). Either way, the amount of errors pointing to file not found with paths that have WP-content, WP-Admin, and so on in them is atrocious. Not sure if that has anything to do with it. My server though is basically this: Ubuntu 24, Apache latest, DirectAdmin control panel on top of that, with Softaculous on top of that. I trust Softaculous to do what it's designed to do and install the software, rather than mucking about with permissions myself. I might have to actually manually check some things, though, it seems. Because not only that, but Drupal is having issues getting updates, and when installing modules, while they are allowed, the site also throws an array offset error on that page, too. I didn't notice it until after the authorship of this original post.
Any update?
Any update?
I'm probably going to take a
I'm probably going to take a bunch of time tonight to actually look at files via FTP; because evidently you can't trust Softaculous to uninstall stuff correctly, apparently. I had eighteen other things happening yesterday, so that's why you haven't heard anything. I meant to look into it when I got back from my appointment, but we ended up going into the city and back.
I completely forgot this was
I completely forgot this was a thing... until I went into change some pages on my site... Looks like I might just have to install Drupal itself via Composer, which I finally managed to install on directAdmin just this morning my time, I'm in eastern standard time. Seems that Softaculous is either giving random errors, or something else is going on.