# \#help

**URL:** https://discourse.cakephp.org/tag/help/8.md?page=1

[Latest](https://discourse.cakephp.org/latest.md) · [Categories](https://discourse.cakephp.org/categories.md) · [Tags](https://discourse.cakephp.org/tags.md)

**Page:** 2

---

## [Cake php 4.5 x Aws Elastic Beanstalk](https://discourse.cakephp.org/t/cake-php-4-5-x-aws-elastic-beanstalk/12384)

<div class="topic-metadata">

**Author:** [@Maike042](https://discourse.cakephp.org/u/Maike042)\
**Replies:** 2\
**Last updated:** [January 16, 2025, 8:35pm UTC](https://discourse.cakephp.org/t/cake-php-4-5-x-aws-elastic-beanstalk/12384 "2025-01-16T20:35:59Z")

</div>

I am facing difficulties deploying a CakePHP application (version 4.5) on AWS Elastic Beanstalk. After performing the deployment (zipping the project’s files and folders and uploading them to AWS), the application shows …

---

## [MissingControllerException for DController in CakePHP 5.2 and HTTP 500 After Custom ErrorHandler](https://discourse.cakephp.org/t/missingcontrollerexception-for-dcontroller-in-cakephp-5-2-and-http-500-after-custom-errorhandler/12376)

<div class="topic-metadata">

**Author:** [@kaneda](https://discourse.cakephp.org/u/kaneda)\
**Replies:** 2\
**Last updated:** [January 12, 2025, 6:43pm UTC](https://discourse.cakephp.org/t/missingcontrollerexception-for-dcontroller-in-cakephp-5-2-and-http-500-after-custom-errorhandler/12376 "2025-01-12T18:43:36Z")

</div>

Hello CakePHP Community, I’m working with CakePHP 5.2 and encountering issues with my custom DController. I’ve defined routes in config/routes.php for URLs like /d/:dimensionSlug and /d/:dimensionSlug/sd/:subdimensionSl…

---

## [Run Cakephp 2.8.9 project](https://discourse.cakephp.org/t/run-cakephp-2-8-9-project/12337)

<div class="topic-metadata">

**Author:** [@Shital](https://discourse.cakephp.org/u/Shital)\
**Replies:** 6\
**Last updated:** [January 8, 2025, 2:44am UTC](https://discourse.cakephp.org/t/run-cakephp-2-8-9-project/12337 "2025-01-08T02:44:59Z")

</div>

I had project in \*\*Cakephp 2.8.\*\*9 i want to run that project localy i had php version PHP 5.4.4 when i try to run the project i get error how to run that project Fatal error : Class ‘ExceptionRenderer’ not found in D:\\…

---

## [\[Solved\] 🍰 5.1.x / File Upload: uploaded, but moveTo() return NULL](https://discourse.cakephp.org/t/solved-5-1-x-file-upload-uploaded-but-moveto-return-null/12360)

<div class="topic-metadata">

**Author:** [@faizalheesyam](https://discourse.cakephp.org/u/faizalheesyam)\
**Replies:** 2\
**Last updated:** [January 3, 2025, 9:44am UTC](https://discourse.cakephp.org/t/solved-5-1-x-file-upload-uploaded-but-moveto-return-null/12360 "2025-01-03T09:44:42Z")

</div>

im refering to the documentation on https://book.cakephp.org/5/en/controllers/request-response.html#file-uploads my situation, my upload works, the file did get uploaded to the targetpath, but the moveTo() method on lin…

---

## [CakePHP 3.8 stores 2024-12-30 as 2025-12-30 in MariaDB, but 2024-12-29 works correctly](https://discourse.cakephp.org/t/cakephp-3-8-stores-2024-12-30-as-2025-12-30-in-mariadb-but-2024-12-29-works-correctly/12354)

<div class="topic-metadata">

**Author:** [@pavankm327](https://discourse.cakephp.org/u/pavankm327)\
**Replies:** 2\
**Last updated:** [December 30, 2024, 1:48pm UTC](https://discourse.cakephp.org/t/cakephp-3-8-stores-2024-12-30-as-2025-12-30-in-mariadb-but-2024-12-29-works-correctly/12354 "2024-12-30T13:48:38Z")

</div>

I am working on a CakePHP 3.8 application where I save dates into a MariaDB database. The absent\_date field is of type DATE. However, I’ve encountered a peculiar issue: When I save 2024-12-30, it gets stored as 2025-12…

---

## [Dynamics relations for comments and others generic tables](https://discourse.cakephp.org/t/dynamics-relations-for-comments-and-others-generic-tables/12333)

<div class="topic-metadata">

**Author:** [@Erwane](https://discourse.cakephp.org/u/Erwane)\
**Replies:** 8\
**Last updated:** [December 13, 2024, 3:02pm UTC](https://discourse.cakephp.org/t/dynamics-relations-for-comments-and-others-generic-tables/12333 "2024-12-13T15:02:59Z")

</div>

Hi, To link generic tables together, I’m used to using this type of relations. By generic tables understand : comments, statistics, issues, etc. create table comments ( id int not null primary key, r…

---

## [Using FormProtection in views extending one another](https://discourse.cakephp.org/t/using-formprotection-in-views-extending-one-another/12314)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.cakephp.org/u/alex)\
**Replies:** 6\
**Last updated:** [November 26, 2024, 3:05pm UTC](https://discourse.cakephp.org/t/using-formprotection-in-views-extending-one-another/12314 "2024-11-26T15:05:00Z")

</div>

Hi everyone I’m working on a sign-up page that changes a little depending on the service. So I decided to have a common view that does $this-\>Form-\>create() with fields like email, name etc. and views for each service…

---

## [Missing Controller - wsl and docker environment](https://discourse.cakephp.org/t/missing-controller-wsl-and-docker-environment/12316)

<div class="topic-metadata">

**Author:** [@cedric](https://discourse.cakephp.org/u/cedric)\
**Replies:** 2\
**Last updated:** [November 25, 2024, 4:11pm UTC](https://discourse.cakephp.org/t/missing-controller-wsl-and-docker-environment/12316 "2024-11-25T16:11:55Z")

</div>

I just clone a project under wsl and docker. It is an api that runs under docker. I don’t know why but i get a 404 controller not found and the other developper under macos environment don’t get any problem to start the…

---

## [ Cakephp v5 fixtures issue ](https://discourse.cakephp.org/t/cakephp-v5-fixtures-issue/12306)

<div class="topic-metadata">

**Author:** [@soup-dragon](https://discourse.cakephp.org/u/soup-dragon)\
**Replies:** 4\
**Last updated:** [November 15, 2024, 9:34am UTC](https://discourse.cakephp.org/t/cakephp-v5-fixtures-issue/12306 "2024-11-15T09:34:42Z")

</div>

Currently I am working on a rather large application and we are on version 4. I want to migrate to version 5 soon however, my biggest stumbling block is going to be the fixtures. I have attempted to use the migration ro…

---

## [Assistance Needed with Localization Issue: Translations Not Applied as Expected (CakePHP 5.1.1)](https://discourse.cakephp.org/t/assistance-needed-with-localization-issue-translations-not-applied-as-expected-cakephp-5-1-1/12293)

<div class="topic-metadata">

**Author:** [@apricotpoodle](https://discourse.cakephp.org/u/apricotpoodle)\
**Replies:** 9\
**Last updated:** [November 14, 2024, 1:31pm UTC](https://discourse.cakephp.org/t/assistance-needed-with-localization-issue-translations-not-applied-as-expected-cakephp-5-1-1/12293 "2024-11-14T13:31:21Z")

</div>

Hello CakePHP community, I’m encountering a challenging issue with translations and localization in CakePHP 5.1.1, and I’d greatly appreciate any guidance. Normally, clearing the cache resolves any minor issues I’ve had…

---

## [How to add the "active" field in authentication with AthenticationService? I use CakePHP 4.x](https://discourse.cakephp.org/t/how-to-add-the-active-field-in-authentication-with-athenticationservice-i-use-cakephp-4-x/11940)

<div class="topic-metadata">

**Author:** [@mellileo](https://discourse.cakephp.org/u/mellileo)\
**Replies:** 6\
**Last updated:** [October 22, 2024, 9:55pm UTC](https://discourse.cakephp.org/t/how-to-add-the-active-field-in-authentication-with-athenticationservice-i-use-cakephp-4-x/11940 "2024-10-22T21:55:55Z")

</div>

I request help with the following please: I need to add a field to the authentication system and allow me to validate it with the isValid() function when calling $result = $this-\>Authentication-\>getResult(); if ($resul…

---

## [Custom view helper, rendering a template/element](https://discourse.cakephp.org/t/custom-view-helper-rendering-a-template-element/12242)

<div class="topic-metadata">

**Author:** [@theasy](https://discourse.cakephp.org/u/theasy)\
**Replies:** 2\
**Last updated:** [September 16, 2024, 12:24pm UTC](https://discourse.cakephp.org/t/custom-view-helper-rendering-a-template-element/12242 "2024-09-16T12:24:43Z")

</div>

How can I ensure that a custom view helper is used when rendering a template/element in an Ajax request? It’s about a customPaginatorHelper cake 4.5

---

## [CakeDC/Auth: custom permissions for not logged in users](https://discourse.cakephp.org/t/cakedc-auth-custom-permissions-for-not-logged-in-users/12236)

<div class="topic-metadata">

**Author:** [@wasilij](https://discourse.cakephp.org/u/wasilij)\
**Replies:** 1\
**Last updated:** [September 10, 2024, 5:10pm UTC](https://discourse.cakephp.org/t/cakedc-auth-custom-permissions-for-not-logged-in-users/12236 "2024-09-10T17:10:56Z")

</div>

Hi everybody, I am using the CakeDC/Auth and Users plugin, that really does the job good :slight\_smile: Thanks to the authors!!! But I struggle with one situation: I cannot define an allowed user function to evaluate t…

---

## [Session data in phpunittest](https://discourse.cakephp.org/t/session-data-in-phpunittest/12214)

<div class="topic-metadata">

**Author:** [@webdeveloper](https://discourse.cakephp.org/u/webdeveloper)\
**Replies:** 11\
**Last updated:** [September 3, 2024, 3:29pm UTC](https://discourse.cakephp.org/t/session-data-in-phpunittest/12214 "2024-09-03T15:29:20Z")

</div>

In my test controller, in a test action, I am setting the Auth.User session. $this-\>session(\['Auth' =\> \['User' =\> $user-\>toArray()\]\]); But in my Behavior I am not able to get the session data. When I print $\_SESSION\['…

---

## [How to use Http\\Server to replace Dispatcher](https://discourse.cakephp.org/t/how-to-use-http-server-to-replace-dispatcher/12222)

<div class="topic-metadata">

**Author:** [@kuldeep1984](https://discourse.cakephp.org/u/kuldeep1984)\
**Replies:** 3\
**Last updated:** [September 3, 2024, 10:44am UTC](https://discourse.cakephp.org/t/how-to-use-http-server-to-replace-dispatcher/12222 "2024-09-03T10:44:46Z")

</div>

Previously I was using Dispatcher to dispatch request $request = new Request($path); $dispatcher = DispatcherFactory::create(); $response = new Response(); $dispatcher-\>dispatch( $request, $response ); Now I am u…

---

## [(solved) Hidden field is exposed](https://discourse.cakephp.org/t/solved-hidden-field-is-exposed/12220)

<div class="topic-metadata">

**Author:** [@Trader5050](https://discourse.cakephp.org/u/Trader5050)\
**Replies:** 2\
**Last updated:** [September 1, 2024, 5:30pm UTC](https://discourse.cakephp.org/t/solved-hidden-field-is-exposed/12220 "2024-09-01T17:30:09Z")

</div>

I have a User entity that’s exposing the password field even when set to hidden: class User extends Entity implements IdentityInterface { protected array $\_accessible = \[ 'email' =\> true, 'picture' =\> true \];…

---

## [CakePHP 5.x - MS SQL Server - Migration Error](https://discourse.cakephp.org/t/cakephp-5-x-ms-sql-server-migration-error/12191)

<div class="topic-metadata">

**Author:** [@AndyDTK](https://discourse.cakephp.org/u/AndyDTK)\
**Replies:** 4\
**Last updated:** [August 22, 2024, 8:45am UTC](https://discourse.cakephp.org/t/cakephp-5-x-ms-sql-server-migration-error/12191 "2024-08-22T08:45:53Z")

</div>

Hi to all, me again… I have succesfully configured db connection to MS-SQL and it’s working… Adding tables manually works well also… Now I want to use migrations: I have create migrations with “bin\\cake bake migratio…

---

## [CakePHP5 Named route not found](https://discourse.cakephp.org/t/cakephp5-named-route-not-found/12185)

<div class="topic-metadata">

**Author:** [@der-dave](https://discourse.cakephp.org/u/der-dave)\
**Replies:** 2\
**Last updated:** [August 21, 2024, 6:47pm UTC](https://discourse.cakephp.org/t/cakephp5-named-route-not-found/12185 "2024-08-21T18:47:18Z")

</div>

Hello everyone, first thank you for taking time read my post and trying to help me. I am new in CakePHP and still learning. Worked with another framework before but this is stropped from beeing supprted and I will lear…

---

## [CakePHP with Openswoole/Swoole or FrankenPHP](https://discourse.cakephp.org/t/cakephp-with-openswoole-swoole-or-frankenphp/12174)

<div class="topic-metadata">

**Author:** [@sirtonhao](https://discourse.cakephp.org/u/sirtonhao)\
**Replies:** 5\
**Last updated:** [August 20, 2024, 7:44pm UTC](https://discourse.cakephp.org/t/cakephp-with-openswoole-swoole-or-frankenphp/12174 "2024-08-20T19:44:34Z")

</div>

I’m trying to connect CakePHP with OpenSwoole or FrankenPHP. I didn’t want to use Apache or even NGINX directly, but I’m having a lot of difficulties. I used the other framework and it works okay, but my heart is with C…

---

## [CakePHP 5 and MS SQL Server](https://discourse.cakephp.org/t/cakephp-5-and-ms-sql-server/12183)

<div class="topic-metadata">

**Author:** [@AndyDTK](https://discourse.cakephp.org/u/AndyDTK)\
**Replies:** 4\
**Last updated:** [August 20, 2024, 7:53am UTC](https://discourse.cakephp.org/t/cakephp-5-and-ms-sql-server/12183 "2024-08-20T07:53:48Z")

</div>

Hi to all. I need step by step guide to configure correctly CakePHP 5.x to use MS-SQL Server. I have to create a web-app using this DB; I have no choice of using other DB engine. I have downloaded extensions and corre…

---

## [Optgroup add attributes](https://discourse.cakephp.org/t/optgroup-add-attributes/12105)

<div class="topic-metadata">

**Author:** [@shadowx.jb](https://discourse.cakephp.org/u/shadowx.jb)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 5:27am UTC](https://discourse.cakephp.org/t/optgroup-add-attributes/12105 "2024-07-14T05:27:12Z")

</div>

I have function get list of users with \<optgroup\> How to add to optgroup attribute data-id ? -\>find( 'list', keyField: 'id', valueField: 'athleteGroups', …

---

## [Image Recognition](https://discourse.cakephp.org/t/image-recognition/12101)

<div class="topic-metadata">

**Author:** [@Rods](https://discourse.cakephp.org/u/Rods)\
**Replies:** 2\
**Last updated:** [July 12, 2024, 1:12am UTC](https://discourse.cakephp.org/t/image-recognition/12101 "2024-07-12T01:12:39Z")

</div>

Hello Everyone!!, Anyone here to manage compare image for facial recognition? What I want is compare 2 image if has the almost the same.

---

## [Authentication and Authorization using Two (Multiple) Tables](https://discourse.cakephp.org/t/authentication-and-authorization-using-two-multiple-tables/12058)

<div class="topic-metadata">

**Author:** [@ceramicfox](https://discourse.cakephp.org/u/ceramicfox)\
**Replies:** 12\
**Last updated:** [July 11, 2024, 11:39am UTC](https://discourse.cakephp.org/t/authentication-and-authorization-using-two-multiple-tables/12058 "2024-07-11T11:39:50Z")

</div>

Hello In my project I need to have two separate tables for “company\_users” and “public\_users” the Authentication on one would be with usernames and the other one with email addresses. They also contain their own set of …

---

## [Authentication plugin](https://discourse.cakephp.org/t/authentication-plugin/12040)

<div class="topic-metadata">

**Author:** [@willian.simas](https://discourse.cakephp.org/u/willian.simas)\
**Replies:** 5\
**Last updated:** [July 9, 2024, 7:21am UTC](https://discourse.cakephp.org/t/authentication-plugin/12040 "2024-07-09T07:21:33Z")

</div>

Hello guys, I started a project with cakephp recently, about 1 or 2 months ago. Parts of the project already developed: Routes, templates (respective views), controllers (respective functions for each view). I’m stuck …

---

## [CakePHP 4 and the pagination class - initialstate last page](https://discourse.cakephp.org/t/cakephp-4-and-the-pagination-class-initialstate-last-page/12094)

<div class="topic-metadata">

**Author:** [@ProDaniBest](https://discourse.cakephp.org/u/ProDaniBest)\
**Replies:** 2\
**Last updated:** [July 2, 2024, 6:55am UTC](https://discourse.cakephp.org/t/cakephp-4-and-the-pagination-class-initialstate-last-page/12094 "2024-07-02T06:55:26Z")

</div>

I want to use the Pagination class for my Document entity. I have the following code: public function index() { $queryParam = $this-\>request-\>getQueryParams(); $documentsQuery = $this-\>Documents -\>fi…

---

## [Streaming results in CakePHP5](https://discourse.cakephp.org/t/streaming-results-in-cakephp5/12080)

<div class="topic-metadata">

**Author:** [@Kez](https://discourse.cakephp.org/u/Kez)\
**Replies:** 2\
**Last updated:** [June 26, 2024, 1:57pm UTC](https://discourse.cakephp.org/t/streaming-results-in-cakephp5/12080 "2024-06-26T13:57:10Z")

</div>

Hi all, I am currently in the process of migrating my app to v5. One of the actions of my app generates a spreadsheet based on a user query of the biggest table in the database. It doesn’t happen often but occasionally …

---

## [Passing values to future entities of a given table?](https://discourse.cakephp.org/t/passing-values-to-future-entities-of-a-given-table/12078)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.cakephp.org/u/alex)\
**Replies:** 2\
**Last updated:** [June 25, 2024, 8:17am UTC](https://discourse.cakephp.org/t/passing-values-to-future-entities-of-a-given-table/12078 "2024-06-25T08:17:05Z")

</div>

Hi everyone What I have I’m working on a CakePHP 5 plugin that acts as a connector to an external database. My intention was to allow having multiple instances of the same plugin connected to different databases on the …

---

## [Two different login for 2 controller using one users table](https://discourse.cakephp.org/t/two-different-login-for-2-controller-using-one-users-table/12041)

<div class="topic-metadata">

**Author:** [@debendra986](https://discourse.cakephp.org/u/debendra986)\
**Replies:** 4\
**Last updated:** [June 11, 2024, 9:51am UTC](https://discourse.cakephp.org/t/two-different-login-for-2-controller-using-one-users-table/12041 "2024-06-11T09:51:56Z")

</div>

https://book.cakephp.org/5/en/tutorials-and-examples/cms/authentication.html Follow this link to add login in process in cakephp5. Now i need different login for users and admins controller. after auto session time ou…

---

## [CakePHP 4.5 Session was already started on logout](https://discourse.cakephp.org/t/cakephp-4-5-session-was-already-started-on-logout/12035)

<div class="topic-metadata">

**Author:** [@zegert](https://discourse.cakephp.org/u/zegert)\
**Replies:** 0\
**Last updated:** [May 23, 2024, 8:59am UTC](https://discourse.cakephp.org/t/cakephp-4-5-session-was-already-started-on-logout/12035 "2024-05-23T08:59:54Z")

</div>

I’m trying to upgrade to PHP 4.5 and everything is going flawless except logging out. CakePHP 4.5.5 CakePHP/Authorisation 2.10.2 When logging out in: APP/Controller/UsersController.php public function logout() { …

---

## [Create test for pdf files](https://discourse.cakephp.org/t/create-test-for-pdf-files/12020)

<div class="topic-metadata">

**Author:** [@arodu](https://discourse.cakephp.org/u/arodu)\
**Replies:** 2\
**Last updated:** [May 17, 2024, 3:54am UTC](https://discourse.cakephp.org/t/create-test-for-pdf-files/12020 "2024-05-17T03:54:43Z")

</div>

What is the best way to create a test from a pdf file? I thought about using a predefined file, and then comparing it against the generated file, but it is not working for me. Although the content of the 2 files is the…

[Previous page](https://discourse.cakephp.org/tag/help/8.md?match_all_tags=true&tags%5B%5D=help)

[Next page](https://discourse.cakephp.org/tag/help/8.md?match_all_tags=true&page=2&tags%5B%5D=help)
