ok, this was due to not having "show as expanded" under the menu link display options under structure... my bad
wcndave β created an issue.
wcndave β created an issue.
Thanks, I had a long chat with Gemini AI and now I understand what the DDEV/WSL2/Docker/Distro stack is supposed to be doing. Still doesn't work, as ddev command from powershell returns usage data, but ddev version returns context errors... but have a ticket on ddev as you suggested.
Thanks!
This kind of thing seems just so difficult, even for someone like me who's been developing "old school" on Linux for 30 years...
1. want to use drupal
1.1 use/install ddev
1.1.1 requires wsl2
1.1.1.1 takes 7 hours to figure out how to install, because I had to add the virt windows features, reboot, add them in again, install wsl, then remove the feature, then reboot then install the features and reboot before it worked.
so now I have:
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
* Ubuntu Running 2
after a total of 10 hours work.
Next step
1.1.2 installing ddev continued. Have to install ubuntu - installs
1.1.3 run Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev_wsl2_docker_inside.ps1'))
1.1.4 now what???
take 2 hours to figure out I need an Ubuntu "app" although not sure how that is connected to the WSL, but I run it, and get into a VM
Then run sudo apt-get update && sudo apt-get upgrade -y
all good
then it says I should try
dave@Dave-Main-2020:~$ ddev --version
Command 'ddev' not found, did you mean:
command 'ddv' from deb ncbi-tools-x11 (6.1.20170106+dfsg1-10)
Try: sudo apt install <deb name>
ok, so now I try in powershell - not a command
I go back to "Testing and Troubleshooting Your Docker Installation" in the ddev docs
"We can use a single Docker command to make sure Docker is set up to do what we want:
In your project directory run the following (using Git Bash if youβre on Windows!):
docker run --rm -t -p 80:80 -p 443:443 -v "//$PWD:/tmp/projdir" busybox sh -c "echo ---- Project Directory && ls /tmp/projdir"
The result should be a list of the files in your project directory."
I don't know where my project directory would be, and running this results in
PS C:\WINDOWS\system32> docker run --rm -t -p 80:80 -p 443:443 -v "//$PWD:/tmp/projdir" busybox sh -c "echo ---- Project Directory && ls /tmp/projdir"
At line:1 char:46
+ docker run --rm -t -p 80:80 -p 443:443 -v "//$PWD:/tmp/projdir" busyb ...
+ ~~~~~
Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to
delimit the name.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidVariableReferenceWithDrive
So from what I can tell I have an Ubuntu VM running in WSL2, but no docker, and no DDEV, and no Drupal....
I don't know why there's not simple instructions to follow this...
Sorry if I sound grumpy, but this is days of work before I can even start working on my drupal site, which I do in "some spare time for free", and I've not even touched using and setting up git or anything else for this...
Is there some clear documentation or tutorial somewhere that explains this for people new to it, and not just documentation for experts who've been doing it for years?
I don't understand what that means, however I am glad I solved it.
I think requiring "that like that" being the only supported way is somewhat odd.
I didn't see anything that mentioned where one had to be in directory structure when installing
I actually managed to solve my issue. I can't say it was the same, however it looked identical in terms of the result.
I guess any problem that results in not having everything installed could do this.
In the end, what I found was that I had installed drush from my "home" directory, so I had done:
/home/dave$ php /usr/local/bin/composer.phar create-project drupal/recommended-project drupal
/home/dave$ php /usr/local/bin/composer.phar require drush/drush
What I actually needed to do, was install drush from inside drupal directory
/home/dave$ cd drupal
/home/dave/drupal$ php /usr/local/bin/composer.phar require drush/drush
Then the dependencies were met.
BTW, does this require the webform module, or is everything one needs already in core out of the box?
Thanks, I read the page on DDEV, quick question though, why would I use that instead of an install on my hosting provider? I will need to create it again on there. Do you mean just for experimenting and playing around with it - use a disposable docker environment for ease?
I found eventually in query.inc that it was always putting {} around table names, so I replaced this with backticks and now it appears to work.
However there affected only "update" queries, and there are many other places where I get errors that look to be for the same reason, is there a way to update everything to work? It only appears to affect the table "system" which may be because it's a reserved MySQL keyword?
Oddly enough, I get different drush status depending on whether I run it in home or the drupal directory.
user@virt ~$ drush status
PHP configuration : /usr/local/php83/lib/php.ini
PHP OS : Linux
Drush script : /usr/local/bin/drush.phar
Drush version : 8.3.5
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
user@virt ~$ cd www/myhost.sg-host.com/drupal/
user@virt ~/www/myhost.sg-host.com/drupal$ drush status
Drupal version : 11.0.9
Site URI : http://default
DB driver : mysql
DB hostname : localhost
DB port : 3306
DB username : uxuiuw8f9cqak
DB name : dbfrcsr3y80ebn
Database : Connected
Drupal bootstrap : Successful
Default theme : olivero
Admin theme : claro
PHP binary : /usr/local/php83/bin/php-cli
PHP config : /usr/local/php83/lib/php.ini
PHP OS : Linux
PHP version : 8.3.13
Drush script : /home/customer/www/myhost.sg-host.com/drupal/vendor/bin/drush.php
Drush version : 13.3.3.0
Drush temp : /tmp
Drush configs : /home/customer/www/myhost.sg-host.com/drupal/vendor/drush/drush/drush.yml
Install profile : standard
Drupal root : /home/customer/www/myhost.sg-host.com/drupal/web
Site path : sites/default
Files, Public : sites/default/files
Files, Private : /home/customer/www/myhost.sg-host.com/drupal/web/../private
Files, Temp : /tmp
user@virt ~/www/myhost.sg-host.com/drupal$
I am fairly sure that symlinking the directories is ok, as I have seen lots of recommendations to do that.
It makes it easy to test different configs and installs by changing the link. I did not change any files after the install...
Hi cjm51213, I have exactly the same problem on a siteground installation.
Did you ever get this resolved?
Thanks, Dave
I am also trying a brand new install and get the above, however there were errors before that.
I am using siteground and I did:
- Enable PHP 8.4.0
- composer create-project drupal/recommended-project drupal
- ln -s drupal/web/ ./public_html
- composer require drush/drush
- version of drush is 8.3.5
- went to website and was met with installer page, however showed the following message at the top
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in Drupal\Core\DrupalKernel::bootEnvironment() (line 996 of core/lib/Drupal/Core/DrupalKernel.php).
Drupal\Core\DrupalKernel::bootEnvironment() (Line: 424)
install_begin_request() (Line: 118)
install_drupal() (Line: 53)- Continued with language, and the profile page reloaded itself constantly - so fast you can't see it
- I pressed escape to stop the reloading, and then put in the database requirements, at which point I get to the error above.
The drupal version it's trying to install is 11.0.9
I cannot find any errorlogs, siteground tells me that none have been detected.
Can anyone help, as I really want to get drupal installed ASAP.
Thanks!