# |
Aug 30th 2019, 18:11 |
maymeow |
@admad how to make it match ? |
# |
Aug 30th 2019, 18:09 |
maymeow |
@noel nope i didn'g |
# |
Aug 30th 2019, 17:33 |
mrfeedback |
but it always get updated instead of creating a new one |
# |
Aug 30th 2019, 17:32 |
mrfeedback |
how can I duplicate an entry without mapping each field by hand? i tried ``` $collection = $this->find(); $n_collection = new Collection; $n_collection = $collection; |
# |
Aug 30th 2019, 17:01 |
noel |
Found it... had the wrong path for the plugin in composer.json |
# |
Aug 30th 2019, 16:55 |
noel |
Also when I ran bake trying to use the theme from this plugin on the new project, it seemed to run a standard bake instead of the themed one (maybe that's the cause of this error?) |
# |
Aug 30th 2019, 16:52 |
slackebot2 |
#1 /myproject/vendor/cakephp/cakephp/src/View/View.php(1451): Cake\Core\ObjectRegistry->load('CustomForm', Array) #2 ``` Any ideas? I have the same plugin working on another project but can't figure out why it's not working on this one. |
# |
Aug 30th 2019, 16:52 |
noel |
I'm having trouble getting my plugin helper to be found: `Helper class CustomFormHelper could not be found` ``` [Cake\View\Exception\MissingHelperException] Helper class CustomFormHelper could not be found. Exception Attributes: array ( 'class' => 'CustomFormHelper', 'plugin' => 'CustomAdmin', ) #0 /myproject/vendor/cakephp/cakephp/src/Core/ObjectRegistry.php(95): Cake\View\HelperRegistry->_throwMissingClassError('CustomForm', 'CustomAdmin') |
# |
Aug 30th 2019, 16:48 |
admad |
The :path route element won't match fragments with / |
# |
Aug 30th 2019, 16:43 |
noel |
@maymeow have you tried it without the 'pass' bit? |
# |
Aug 30th 2019, 16:23 |
maymeow |
Hi. How to correct write route for `/posts/3/attachment/some/path/to/file.pdf` ? Following code returns `missing function 3() in controller` ``` $routes->connect( '/posts/:id/attachment/:path', ['controller' => 'Posts', 'action' => 'attachment'], ['pass' => ['id', 'path']] ); ``` i need path variable accept slashes... |
# |
Aug 30th 2019, 15:54 |
ndm |
@yadav.manu36 I think the error just means that something went wrong in the password identifier, not that the password is wrong (which it still could be of course). |
# |
Aug 30th 2019, 15:13 |
noel |
I'm getting an error during bake: `Warning Error: Method Bake\View\Helper\BakeHelper::checkTableExistsByAlias does not exist in` - what does this mean? |
# |
Aug 30th 2019, 15:02 |
yadav.manu36 |
I have checked with (new DefaultPasswordHasher)->check() |
# |
Aug 30th 2019, 15:02 |
yadav.manu36 |
My given password is right |
# |
Aug 30th 2019, 15:00 |
yadav.manu36 |
But given next error FAILURE_IDENTITY_NOT_FOUND Result {#127 ▼ #_status: "FAILURE_IDENTITY_NOT_FOUND" #_data: null #_errors: array:1 [▼ "Password" => [] ] } |
# |
Aug 30th 2019, 14:59 |
yadav.manu36 |
@ndm finally fixed the login url issue thanks |
# |
Aug 30th 2019, 14:27 |
ndm |
Maybe that has something to do with it, maybe the base is missing in the comparison. Check `\Authentication\UrlChecker\DefaultUrlChecker::check()`, add some debug output to figure what exactly the URLs that are being compare look like. |
# |
Aug 30th 2019, 14:25 |
yadav.manu36 |
yes |
# |
Aug 30th 2019, 14:25 |
ndm |
Is `/cake-lover` an actual existing subfolder? |
# |
Aug 30th 2019, 14:25 |
ndm |
The fact that the message uses the full URL irrspectively of the `checkFullUrl` option is not very helpful :slightly_smiling_face: |
# |
Aug 30th 2019, 14:20 |
yadav.manu36 |
my actual url is http://localhost/cake-lover/admin/admin-user-manager/admin-users/login |
# |
Aug 30th 2019, 14:19 |
yadav.manu36 |
@ndm i have added string urls also but in the error login url not showing correct #_errors: array:1 [▼ 0 => "Login URL `http://localhost/admin/admin-user-manager/admin-users/login` did not match `/admin/admin-user-manager/admin-users/login`." ] |
# |
Aug 30th 2019, 14:18 |
ndm |
Or use `\Authentication\UrlChecker\CakeRouterUrlChecker` as URL checker |
# |
Aug 30th 2019, 14:15 |
ndm |
> array of URLs Means multiple URLs, not a Routing URL array. |
# |
Aug 30th 2019, 14:14 |
ndm |
@yadav.manu36 The URL needs to be specified as a string! See https://book.cakephp.org/authentication/1.1/en/authenticators.html#form |
# |
Aug 30th 2019, 14:08 |
slackebot2 |
!awesome |
# |
Aug 30th 2019, 14:08 |
slackebot2 |
Command sent from Slack by neon1024: |
# |
Aug 30th 2019, 14:08 |
neon1024 |
Anyone know of a good plugin for an activity feed? Or a neat way to gather user centric data from lots of tables? |
# |
Aug 30th 2019, 14:02 |
jimbo2150 |
May be an error or exception happening. Do you have debugging off or are there any messages in your error log? |
# |
Aug 30th 2019, 13:55 |
noel |
Hi all. I've created a plugin, which seems to work ok. However when my plugin is loaded, then `bin/cake plugins loaded` returns nothing. If I comment out my plugin in `Application.php` then `bin/cake plugins loaded` returns: ``` Bake Cors Crud DebugKit Migrations Search WyriHaximus/TwigView ``` Any idea as to why / what's wrong? |
# |
Aug 30th 2019, 13:52 |
yadav.manu36 |
ok, i am checking |
# |
Aug 30th 2019, 13:52 |
ricksaccous |
if you had debugkit you could easily see |
# |
Aug 30th 2019, 13:52 |
ricksaccous |
or is it params i dunno but the route params |
# |
Aug 30th 2019, 13:51 |
ricksaccous |
$this->getRequest()->getParams() |
# |
Aug 30th 2019, 13:51 |
ricksaccous |
compared to what you have in your conifg |
# |
Aug 30th 2019, 13:51 |
ricksaccous |
i just want to see what params come through in the request |
# |
Aug 30th 2019, 13:49 |
yadav.manu36 |
cake-lover folder not used in Login URL |
# |
Aug 30th 2019, 13:49 |
yadav.manu36 |
You want to saying my url is wrong? |
# |
Aug 30th 2019, 13:48 |
yadav.manu36 |
this is my local url |
# |
Aug 30th 2019, 13:48 |
yadav.manu36 |
http://localhost/cake-lover/admin/admin-user-manager/admin-users/login |