Log message #4266434

# At Username Text
# Jun 25th 2021, 10:32 staccato123 [function] => include
# Jun 25th 2021, 10:32 staccato123 [line] => 74
# Jun 25th 2021, 10:32 staccato123 [file] => /path/to/application/app/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php
# Jun 25th 2021, 10:32 staccato123 (
# Jun 25th 2021, 10:32 staccato123 [0] => Array
# Jun 25th 2021, 10:32 staccato123 (
# Jun 25th 2021, 10:32 staccato123 wibbleArray
# Jun 25th 2021, 10:32 staccato123 and the second:
# Jun 25th 2021, 10:31 staccato123 )
# Jun 25th 2021, 10:31 staccato123 )
# Jun 25th 2021, 10:31 staccato123 [function] => require
# Jun 25th 2021, 10:31 staccato123 [line] => 5
# Jun 25th 2021, 10:31 staccato123 [file] => /path/to/application/app/bin/cake.php
# Jun 25th 2021, 10:31 staccato123 (
# Jun 25th 2021, 10:31 staccato123 [0] => Array
# Jun 25th 2021, 10:31 staccato123 (
# Jun 25th 2021, 10:31 staccato123 wibbleArray
# Jun 25th 2021, 10:31 staccato123 and the first call results in this:
# Jun 25th 2021, 10:29 staccato123 into vendor/autoload.php
# Jun 25th 2021, 10:28 staccato123 print_r(debug_backtrace());
# Jun 25th 2021, 10:28 staccato123 print("wibble");
# Jun 25th 2021, 10:28 staccato123 I put
# Jun 25th 2021, 10:26 staccato123 thanks
# Jun 25th 2021, 10:26 staccato123 Yeah, that's what I'm trying
# Jun 25th 2021, 10:03 ndm staccato123: including the autoloader more than once should have no effect, the code inside will only register a loader once. You could try setting a breakpoint in your `AppShell` file (or a debug statement that dumps a stacktrace) to figure from where / why it is being included.
# Jun 25th 2021, 09:26 staccato123 vendor/autoload.php seems to be being called twice
# Jun 25th 2021, 09:26 staccato123 is this the right location for assistance with upgrading from 2.x to 3.x? I have followed the instructions but I am still getting "PHP Fatal error: Cannot declare class App\Console\Command\AppShell, because the name is already in use" when I use the built-in server, and similar (but a different class) with Apache
# Jun 25th 2021, 09:24 staccato123 Hi all
# Jun 25th 2021, 09:14 paolo.bragagni miss something?
# Jun 25th 2021, 09:13 paolo.bragagni infact in appcontroller I have $this->viewBuilder()->Setlayout('TwitterBootstrap/default');
# Jun 25th 2021, 09:08 admad Because context matters. Doing $this->layout in a controller won't do anything, you are just setting a non existent property. `$this->viewBuilder()->setLayout('ajax');` should work unless the layout is being reset again somewhere like beforeRender()
# Jun 25th 2021, 07:07 paolo.bragagni $this->layout = 'ajax'; inside the view did it. (but WHY??)
# Jun 25th 2021, 07:04 paolo.bragagni still default layout
# Jun 25th 2021, 07:04 paolo.bragagni no way
# Jun 25th 2021, 07:04 paolo.bragagni $this->viewBuilder()->setLayout('ajax');
# Jun 25th 2021, 06:58 paolo.bragagni it still use the default layout
# Jun 25th 2021, 06:58 paolo.bragagni cant use the 'ajax template
# Jun 25th 2021, 06:58 paolo.bragagni if ($this->request->is('ajax')) { $this->layout = 'ajax'; $this->render('addAjaxBelong', 'ajax'); }
# Jun 25th 2021, 06:58 paolo.bragagni hey
# Jun 25th 2021, 04:35 greg138 Out of curiosity, why do you decode and then re-encode the file contents? Any chance that some part of that is failing to give what you expect?
# Jun 24th 2021, 23:15 slackebot add into the controller ```$body = $this->request->getBody()->getContents(); dd($body);``` I get this [appname]\src\Controller\WoocommerceController.php#L61\^]8;;\ ""