# |
Apr 25th 2019, 19:03 |
ricksaccous |
and you should be good i think |
# |
Apr 25th 2019, 19:03 |
ricksaccous |
you just apply the pagination after the filters |
# |
Apr 25th 2019, 19:03 |
ricksaccous |
then no it shouldn't |
# |
Apr 25th 2019, 19:03 |
devito |
im using sortwhitelist, and if i do not use filters the table is sortable but when i do use filters the sort gets disabled |
# |
Apr 25th 2019, 19:02 |
devito |
3 |
# |
Apr 25th 2019, 19:01 |
ricksaccous |
@devito are you talking cakephp2 or 3? |
# |
Apr 25th 2019, 18:59 |
devito |
sorry, in the pagination component if a filter is specified does it disable column sorting i with the paginator helper’ |
# |
Apr 25th 2019, 18:58 |
devito |
a, can the table still be sortable? or does the filter disable sorting? |
# |
Apr 25th 2019, 18:30 |
waspinator |
yes, I think that's the point |
# |
Apr 25th 2019, 18:26 |
hollistergraham123 |
Can you modify the entity in beforeSave function? |
# |
Apr 25th 2019, 17:15 |
this.impetus |
So you guys get a sense of accomplishment for what you do—w/r to my earlier dilemmas, thanks to your counsel I tracked down the issue in the plug-in, solved it, and subsequently have had the original author fix it in the repo. So a problem was permanently fixed on your watch, ty boys |
# |
Apr 25th 2019, 15:59 |
neon1024 |
Faster you can fail the quicker you’ll learn! |
# |
Apr 25th 2019, 15:59 |
this.impetus |
Ok. Thanks guys. I'm breaking for lunch, will get in to these suggestions. Failing is such an education haha |
# |
Apr 25th 2019, 15:57 |
ricksaccous |
just something i always check, if my app skeleton is updated, when commands/console things go wrong |
# |
Apr 25th 2019, 15:57 |
ricksaccous |
hehe |
# |
Apr 25th 2019, 15:57 |
ricksaccous |
yeah |
# |
Apr 25th 2019, 15:57 |
ricksaccous |
anyway it's more likely a plugin failure because the class isn't found |
# |
Apr 25th 2019, 15:57 |
neon1024 |
I don’t think the bin files are relevant here |
# |
Apr 25th 2019, 15:56 |
neon1024 |
Oh, there isn’t one |
# |
Apr 25th 2019, 15:56 |
ricksaccous |
or even his bin/ files |
# |
Apr 25th 2019, 15:56 |
neon1024 |
Perhaps your app Console class is out of date? |
# |
Apr 25th 2019, 15:56 |
neon1024 |
Yeas, good point :point_up: |
# |
Apr 25th 2019, 15:55 |
ricksaccous |
@this.impetus https://github.com/cakephp/app |
# |
Apr 25th 2019, 15:55 |
neon1024 |
If this `MeTools` is in it’s own namespace, it should exist in both your `composer.json` and in your `vendors` folder |
# |
Apr 25th 2019, 15:54 |
this.impetus |
@ricksaccous I dunno what that means brother, sorry |
# |
Apr 25th 2019, 15:54 |
this.impetus |
@neon1024 Yeah I tried precisely that (fixing the namespace) on my own, no dice; will contact the author and let him sort it out |
# |
Apr 25th 2019, 15:54 |
neon1024 |
..and if it’s missing, would explain why it’s `null` |
# |
Apr 25th 2019, 15:53 |
neon1024 |
Which would be a good bet for where the error is |
# |
Apr 25th 2019, 15:53 |
neon1024 |
Or they’ve extended the class |
# |
Apr 25th 2019, 15:53 |
neon1024 |
Usually that is caused by PHP looking for a class in the current namespace, because the code has incorrectly used the namespace. They probably meant `\Cake\Console\Command` |
# |
Apr 25th 2019, 15:53 |
ricksaccous |
@this.impetus is your application skeleton up to date? |
# |
Apr 25th 2019, 15:52 |
this.impetus |
(this is post-nuke, which was worth trying because I have very little vendor content not initially supplied by cake anyway) |
# |
Apr 25th 2019, 15:51 |
this.impetus |
Absolute final question on this issue, just a shot in the dark; the problem-plugin, when I attempt to use bake, throws `Fatal error: Class 'MeTools\Console\Command' not found`; I wouldn't imagine anyone but the author of the plugin to solve this, just curious if you know what `MeTools` is or whether that error is familiar from other contexts |
# |
Apr 25th 2019, 15:48 |
this.impetus |
Ah! thank you, I know where the problem is now. not how to solve it, but I know where it is; it's a third-party plug-in. Yeah I already changed the deprecated methods to the current ones, but something in one of my plugins was causing a ruckous earlier, I just commented out a few lines that I imagined had solved it, I see now the poison runs deeper. |
# |
Apr 25th 2019, 15:47 |
neon1024 |
`rm -rf vendor andand composer clearcache andand composer install` |
# |
Apr 25th 2019, 15:47 |
neon1024 |
Alternative is to “Nuke the site from orbit” |
# |
Apr 25th 2019, 15:47 |
neon1024 |
Between `Plugin::load()` in `bootstrap.php` and `$this->addPlugin()` in `Application.php` |
# |
Apr 25th 2019, 15:47 |
neon1024 |
..and check how you’re loading them as in Cake 3.6 *I think* there was a new way to load plugins introduced |
# |
Apr 25th 2019, 15:46 |
neon1024 |
Probably worth checking the plugins to check they support your version of cakephp |
# |
Apr 25th 2019, 15:46 |
neon1024 |
So there is one which is doing it incorrectly |
# |
Apr 25th 2019, 15:46 |
neon1024 |
Well it looks to me like plugins are adding commands for bin/cake |