# |
Dec 31st 2019, 15:01 |
birdy247 |
I just did a really dumb thing |
# |
Dec 31st 2019, 14:00 |
tibor.hajos |
https://github.com/cakephp/cakephp/pull/14106 I hope I understood everything well enough. Any feedback is welcome, I'll do my best to apply fixes accordingly. |
# |
Dec 31st 2019, 11:05 |
admad |
@brian.french we are looking for contributors, we have no one on the team who uses it to maintaining it is proving difficult |
# |
Dec 31st 2019, 08:37 |
brian.french |
Is cakephp/codeception still an active package? Is it going to move forward to the 4.x branch, or is it going to be abandoned? |
# |
Dec 31st 2019, 00:12 |
phantomwatson |
Actually, completely ignore that. I was running into a weird error caused by running some migrations and then not clearing out `/tmp/cache/models`. |
# |
Dec 30th 2019, 23:40 |
phantomwatson |
@dereuromark, speaking of which, MySQL 5.7.5 introduced `STRICT_TRANS_TABLES` mode, which gets cranky if an `INSERT` query is missing a field that doesn't have a default value. The Queue plugin runs afoul of that with the `workerkey` field, so a migration that adds a default value to that field on both tables would fix that. I can probably get that taken care of in a pull request this week. |
# |
Dec 30th 2019, 22:18 |
phantomwatson |
I'd be happy to contribute, if I can. I can keep an eye out for issues that I could tackle with pull requests. |
# |
Dec 30th 2019, 22:17 |
dereuromark |
you're welcome :) maybe you can help finalize the 4.x version, I want to release a beta here soon. if you might also need it soon there. |
# |
Dec 30th 2019, 22:16 |
phantomwatson |
Oh, I'm sure they mention migrations. It was just my mistake. By the way, I've been using the plugin a lot over the last few years and really appreciate all of the work that you've put into it. |
# |
Dec 30th 2019, 22:15 |
dereuromark |
If the docs dont point out migrations, you can also PR an improvement to docs here. |
# |
Dec 30th 2019, 22:14 |
dereuromark |
sry, I thought it had some reserved keywords that require quoteIdentifier true :) Never mind then |
# |
Dec 30th 2019, 22:07 |
phantomwatson |
What would the breaking change be? Sorry, I don't understand. |
# |
Dec 30th 2019, 22:05 |
dereuromark |
@phantomwatson make a PR to change all reserverd keywords, the 4.x release could make this breaking change now :) |
# |
Dec 30th 2019, 22:01 |
phantomwatson |
@brian.french, that's really unintuitive. Thanks for pointing it out. |
# |
Dec 30th 2019, 22:01 |
phantomwatson |
@dereuromark, it turns out I just hadn't run a migration yet. Rookie mistake. |
# |
Dec 30th 2019, 21:51 |
dereuromark |
I am not so sure, i have never needed this for a single app or plugin. |
# |
Dec 30th 2019, 21:40 |
slackebot |
persistent. |
# |
Dec 30th 2019, 21:40 |
brian.french |
So, I ran into an interesting situation while trying to test Model/Tables. The loaded Model was using the default database connection, instead of the test connection. After a few hours of trying to figure out why, I was able to track down what was causing it. Turns out is is a setting in the phpunit.xml file `processIsolation="true"` . This needs to be set to `processIsolation="false"` so that the fixtures and database connection is |
# |
Dec 30th 2019, 21:19 |
phantomwatson |
Cool, now I know(?) how to hunt this down. Thanks! |
# |
Dec 30th 2019, 21:19 |
phpnut |
cberdata" |
# |
Dec 30th 2019, 21:19 |
phantomwatson |
Duh. Not sure why my first instinct was to blame the core. :slightly_frowning_face: |
# |
Dec 30th 2019, 21:17 |
phantomwatson |
Oh crap, the `queue_processes` table from the `Queue` plugin has a field by that name. |
# |
Dec 30th 2019, 21:17 |
ndm |
https://github.com/dereuromark/cakephp-queue/blob/4.2.2/src/Model/Table/QueueProcessesTable.php#L77-L82 |
# |
Dec 30th 2019, 21:16 |
phantomwatson |
Yeah, that's what I'm saying. There's no reference to a field by that name in any first-party code for this application. |
# |
Dec 30th 2019, 21:16 |
ndm |
Maybe it's from a plugin, the queue stuff seems 3rd party |
# |
Dec 30th 2019, 21:16 |
phpnut |
or 'server.cberdata |
# |
Dec 30th 2019, 21:15 |
phpnut |
@phantomwatson search the code for 'server. |
# |
Dec 30th 2019, 21:14 |
phantomwatson |
Yeah, I can't quite make sense of it. There is no field named `server` in any of this application's tables, and there's no reference to a field by that name in any code under `/src` or `/config`. |
# |
Dec 30th 2019, 21:12 |
ndm |
Well I don't how how any of that might be related, but that query is clearly triggered by a validation rule for a field named `server`. |
# |
Dec 30th 2019, 21:06 |
phantomwatson |
I'm assuming this has something to do with my datasource configuration, but I'm not sure how. I had just updated an Elasticsearch index and disabled Kibana, but I wouldn't expect that to prevent CakePHP from being able to access it. |
# |
Dec 30th 2019, 21:04 |
slackebot |
/home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Console/CommandRunner.php(385): Cake\Console\Shell->runCommand(Array, true) #19 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Console/CommandRunner.php(162): Cake\Console\CommandRunner->runShell(Object(Queue\Shell\QueueShell), Array) #20 /home/okbvtfr/public_html/school/bin/cake.php(12): Cake\Console\CommandRunner->run(Array) #21 {main}``` |
# |
Dec 30th 2019, 21:04 |
slackebot |
/home/okbvtfr/public_html/school/vendor/dereuromark/cakephp-queue/src/Shell/QueueShell.php(686): Queue\Model\Table\QueueProcessesTable->add('8635', '9932243dbdfc163...') #16 /home/okbvtfr/public_html/school/vendor/dereuromark/cakephp-queue/src/Shell/QueueShell.php(162): Queue\Shell\QueueShell->_initPid() #17 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Console/Shell.php(517): Queue\Shell\QueueShell->runworker() #18 |
# |
Dec 30th 2019, 21:04 |
slackebot |
/home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/ORM/Marshaller.php(182): Cake\ORM\Marshaller->_validate(Array, Array, true) #13 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/ORM/Table.php(2645): Cake\ORM\Marshaller->one(Array, Array) #14 /home/okbvtfr/public_html/school/vendor/dereuromark/cakephp-queue/src/Model/Table/QueueProcessesTable.php(129): Cake\ORM\Table->newEntity(Array) #15 |
# |
Dec 30th 2019, 21:04 |
slackebot |
/home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Database/Connection.php(333): Cake\Database\Statement\MysqlStatement->execute() #2 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php(67): Cake\Database\Connection->Cake\Database\{closure}() #3 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Database/Connection.php(336): Cake\Core\Retry\CommandRetry->run(Object(Closure)) #4 |
# |
Dec 30th 2019, 21:04 |
slackebot |
Cake\Validation\ValidationRule->process('server.cberdata...', Array, Array) #10 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Validation/Validator.php(202): Cake\Validation\Validator->_processRules('server', Object(Cake\Validation\ValidationSet), Array, true) #11 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/ORM/Marshaller.php(260): Cake\Validation\Validator->errors(Array, true) #12 |
# |
Dec 30th 2019, 21:04 |
slackebot |
/home/okbvtfr/public_html/school/vendor/dereuromark/cakephp-queue/src/Model/Table/QueueProcessesTable.php(98): Cake\ORM\Query->count() #8 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Validation/ValidationRule.php(139): Queue\Model\Table\QueueProcessesTable->validateCount('server.cberdata...', Array) #9 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Validation/Validator.php(2612): |
# |
Dec 30th 2019, 21:04 |
slackebot |
/home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Database/Query.php(218): Cake\Database\Connection->run(Object(Cake\ORM\Query)) #5 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/ORM/Query.php(956): Cake\Database\Query->execute() #6 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/ORM/Query.php(906): Cake\ORM\Query->_performCount() #7 |
# |
Dec 30th 2019, 21:04 |
phantomwatson |
Yeah, here it is: ```2019-12-30 20:46:58 Error: [PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'server' in 'where clause' in /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 38 Stack Trace: #0 /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php(38): PDOStatement->execute(NULL) #1 |
# |
Dec 30th 2019, 20:59 |
ndm |
There should be a stacktrace for that error |
# |
Dec 30th 2019, 20:45 |
phantomwatson |
This seems to be a core thing, as I don't think any of my queries include a `server` field. |
# |
Dec 30th 2019, 20:44 |
phantomwatson |
Anyone know what this might be about? ```Error: [PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'server' in 'where clause' in /home/okbvtfr/public_html/school/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 38``` |