-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'backdrop.simpletest[xxxxx]semaphore' doesn't exist #5943
Comments
I've seen this a few times when running tests in my local, after a test goes completely haywire - something goes very wrong and the semphahore table that Backdrop creates for the testing environment is somehow removed and not created again when running the test again . Even after pressing "Clean environment", this thing still happened. The solution for me has been to completely uninstall Testing and reinstall it. But I never noticed any connection with Language. Worth testing and looking into... |
One more data point: I've been able to reproduce this crash consistently in my local if I enable Locale and run any test. Disabling Locale and clearing the testing environment seems to bring things back to normal with tests. So, while I haven't looked into the code, I think there are two things going on: 1. Locale has something that crashes the testing environment, and 2. Once it crashes, you start getting the semaphore error if you try running tests again, even after clearing the environment. Disabling Locale and clearing the environment gets the testing back on track for me. So, definitely something going on with Locale. I'm testing with PHP 7.4 |
Yes, that's a known problem. At least, I know it. Wonder, why I didn't open an issue for this yet. (Possibly did?) |
Thanks for taking the time to report back @argiepiano and @indigoxela 🙏🏼
Tried that, but it didn't work in my case 🤔
Yup, if I run the tests on vanilla, things work fine. Soon as I enable the Language module AND add a language, this starts happening. If I disable the Language module (no need to fully uninstall it), things start working again. So odd.
I'm guessing that this is because Locale depends on Language, so you need to enable that as well - I still think it's related to the Langue module, since it happens when I enable that alone. I've been trying to run
That's my thing, so here's an issue for you 😅 ...before opening this one, I tried searching the queue with various related terms, including |
What do you know?! ... @docwilmot in that issue suggested the following:
And doing just that fixes the issue! 🎉 (for me at least) Anyway, with this fix/workaround, I am now unblocked for what I was trying to do, so I'll leave this issue here to the experts 😅 ...I hope that all this investigation/testing/troubleshooting will be enough to help them figure things out. |
I can consistently reproduce this on my local, with the latest 1.x (reported as 1.25.x-dev), on php 8.0.26, but haven't been able to reproduce on a demo sandbox (still running core 1.23.1 on php 7.4.33).
admin/config/development/testing
and try to run any test -> everything's OK 👍🏼admin/config/regional/language
and add any languageadmin/config/development/testing
and try to run any test again -> error 👎🏼Full error:
The text was updated successfully, but these errors were encountered: