Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9249229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:08:27+00:00 2026-06-18T10:08:27+00:00

Certain pages of my website crash when I try to call the ‘Security’ component

  • 0

Certain pages of my website crash when I try to call the ‘Security’ component in any of the apps. For example in the AppController file, if I change the components definition from

var $components = array('Auth','Session','Email');

to

var $components = array('Auth','Session','Email','Security');

pages on my site that rely on POST data from other pages crash. All I get is a blank screen.
In the \cake\libs\controller\components directory there ‘security.php’ is defined and stored.

Any ideas on what’s causing this or how to approach this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:08:29+00:00Added an answer on June 18, 2026 at 10:08 am

    That is what the SecurityComponent is supposed to do.

    It secures your application by adding ‘tokens’ to all of your forms to check if the form is ‘valid’ and has not been tampered with (e.g. Somebody added an additional field or value to the form with javascript).

    It also checks if the posted form originates from a controller and/or action that is allowed to do so (allowedControllers)

    If the requirements are not met, a ‘blackHoleAction’ is called that stops further actions.

    Based on your usage of ‘var $components’, not ‘public $components’, it think you’re running Cakephp 1.3 see the documentation for the SecurityComponent here:
    http://book.cakephp.org/1.3/en/The-Manual/Core-Components/Security-Component.html

    Read the part on allowedControllers and allowedActions

    It’s also possible that you have an error somewhere in your script that is not visible because debugging is disabled. To enable debugging, change the debug level to 1 or 2 in your core.php config file;

    app/Config/core.php set debug level to 2, with this line:

    Configure::write('debug', 2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using fancybox for displaying certain pages on my website. my problem is
I have an asp.net mvc website that returns a JSON result to certain pages
i have a website where certain pages have a facebook share button. I need
I edit certain pages of my website via textarea's and a common WYSIWYG editor.
In testing a website I'm finding certain pages on our test environment incredibly slow
i have certain pages in my website that i would like to only be
Google will now parse certain microdata (for example reviews) on your web pages and
I am using Sitefinity CMS to build my website; for certain pages I use
Google has indexed certain pages in my website that I wouldn't like users to
I have a PHP website with piwik as analytics. Certain pages are requested by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.