# |
Jul 17th 2021, 21:27 |
alamnaryab |
I want to make condition on inside `contain` but external variable is not accessable ```$s_id = 1; /**** this variable is not accessable inside contain */ $school_classes = $this->SchoolClasses->find() ->where(['SchoolClasses.status'=>1]) ->order(['SchoolClasses.sort'=>'asc']) ->contain([ 'FeeRates'=>function($q){ return $q |
# |
Jul 17th 2021, 21:22 |
alamnaryab |
Hi frinds |
# |
Jul 17th 2021, 13:15 |
kevin.pfeifer |
I know that tables !== complexity of the project but still its something countable :) |
# |
Jul 17th 2021, 13:14 |
kevin.pfeifer |
how many tables? |
# |
Jul 17th 2021, 13:01 |
neothermic |
(I honestly sometimes ponder if it's the largest cake2 project in production..) |
# |
Jul 17th 2021, 12:54 |
kevin.pfeifer |
well then good luck :) |
# |
Jul 17th 2021, 12:53 |
neothermic |
it is an eventual goal to upgrade the work stuff to 7.4, but since works' codebase is a frigging gigantic cakephp2 project, that's not quick :P |
# |
Jul 17th 2021, 12:52 |
neothermic |
I should really create a new VM to match my personal stuff, as that's on 7.2 at least.. |
# |
Jul 17th 2021, 12:51 |
kevin.pfeifer |
ah^^ |
# |
Jul 17th 2021, 12:51 |
neothermic |
my local vagrant is also my work replication setup, and that's still on 7.1, so can't run 4.x :) |
# |
Jul 17th 2021, 12:51 |
kevin.pfeifer |
anyway, is there a specific reason why you start with 3.8 instead of 4.2? |
# |
Jul 17th 2021, 12:46 |
kevin.pfeifer |
mhmm ok |
# |
Jul 17th 2021, 12:46 |
kevin.pfeifer |
I have no experience with vagrant ,:) I can only tell you that for me in my linux machine with the same composer version it works |
# |
Jul 17th 2021, 12:46 |
neothermic |
weird, this must be some form of race condition |
# |
Jul 17th 2021, 12:46 |
neothermic |
yeah, that worked |
# |
Jul 17th 2021, 12:45 |
neothermic |
so I can try installing in, say, /home instead |
# |
Jul 17th 2021, 12:45 |
neothermic |
maybe this is a bug in vagrant's shared file systems |
# |
Jul 17th 2021, 12:45 |
neothermic |
lemme try one thing |
# |
Jul 17th 2021, 12:43 |
neothermic |
I've checked the cache file it's downloaded and the file is there and all looks good |
# |
Jul 17th 2021, 12:43 |
neothermic |
it's like the extract takes longer than it expects it to, so it's checking too soon |
# |
Jul 17th 2021, 12:43 |
neothermic |
nothing looks odd with -vvv, other than the failure generally |
# |
Jul 17th 2021, 12:41 |
kevin.pfeifer |
try with `-vvv` and see if you can spot something odd |
# |
Jul 17th 2021, 12:40 |
neothermic |
1.1T left, directory is fully RW just to be sure |
# |
Jul 17th 2021, 12:40 |
kevin.pfeifer |
and I guess you have already checked the basics like write permissions of the folder and enough disk space |
# |
Jul 17th 2021, 12:38 |
kevin.pfeifer |
you tried to add `-v` (or more v) for vebose output |
# |
Jul 17th 2021, 12:38 |
kevin.pfeifer |
mhmm, same for me |
# |
Jul 17th 2021, 12:38 |
neothermic |
Composer version 2.1.3 2021-06-09 16:31:20 |
# |
Jul 17th 2021, 12:37 |
neothermic |
nah, latest 2 |
# |
Jul 17th 2021, 12:37 |
neothermic |
hmm, did a composer clear-cache and tried again... and still failed |
# |
Jul 17th 2021, 12:37 |
kevin.pfeifer |
are you using composer 1? |
# |
Jul 17th 2021, 12:34 |
neothermic |
happens every time here ¬_¬ |
# |
Jul 17th 2021, 12:30 |
kevin.pfeifer |
no problem here for me. Neither with composer 1 nor composer 2 |
# |
Jul 17th 2021, 12:24 |
slackebot2 |
the same way) |
# |
Jul 17th 2021, 12:24 |
slackebot2 |
No such file or directory), uninstalling plugin - Removing cakephp/plugin-installer (1.3.1) Install of cakephp/plugin-installer failed [RuntimeException] Could not delete /vagrant/SomeProject/vendor/cakephp/plugin-installer/src:``` I can see the fact that Plugin.php exists where it says it thinks it's not, so unsure why, but basically I can't progress (and cd-ing into the project directory and running composer install fails in |
# |
Jul 17th 2021, 12:24 |
neothermic |
so, trying to do a fresh cake3 install, it seems to be unhappy with execution: I ran: ```composer create-project --prefer-dist cakephp/app:^3.8 SomeProject``` It chugged through, but `cakephp/plugin-installer` fails every time: ``` - Installing cakephp/plugin-installer (1.3.1): Extracting archive Plugin initialization failed (include(/vagrant/SomeProject/vendor/cakephp/plugin-installer/src/Plugin.php): failed to open stream: |
# |
Jul 17th 2021, 12:00 |
kevin.pfeifer |
you can also set `stopOnFailure="true"` in your phpunit.xml |
# |
Jul 16th 2021, 21:47 |
greg138 |
One of your tests (or the code that it tests) is throwing an unexpected exception. phunit should give you the stack track of where that's happening. |
# |
Jul 16th 2021, 19:06 |
slackebot2 |
$this->request->getQueryParams('params'); $this->loadModel('Users'); $userAdmin = $this->Users->get(1); MercadoPago\SDK::setAccessToken($userAdmin->mp_access_token); $payment1 = MercadoPago\Payment::find_by_id($mpUrlNotif['id']); debug($payment1); exit; }``` this code is sending a 201 response and is showing the debug too |
# |
Jul 16th 2021, 19:06 |
sebastiansperandio093 |
I achieved to send a 201 response to the API which is notifying me and after of that response, I can continuw with my work inside the same method... ```public function mpNotification() { $this->response = $this->response->withStatus(201); $this->response->send(); $this->autoRender = false; $mpUrlNotif = |
# |
Jul 16th 2021, 19:03 |
sebastiansperandio093 |
fixed |
# |
Jul 16th 2021, 18:59 |
tyler.adam.lazenby |
it just timed out |