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 6134825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:24:16+00:00 2026-05-23T17:24:16+00:00

This one threw me for a loop – not even sure where to start

  • 0

This one threw me for a loop – not even sure where to start looking.

If you submit a form in my CakePHP application with the words “select” and “from” in any text area, it errors out:

Missing Controller

Error: 500.shtmlController could not be found.

Error: Create the class 500.shtmlController below in file: app/controllers/500.shtml_controller.php

<?php
    class 500.shtmlController extends AppController {
        var $name = '500.shtml';
    }
?>

Notice: If you want to customize this error message, create app/views/errors/missing_controller.ctp

Even if you type “selected blah fromy”, it will error. BUT – if you type them in reverse order, it’s not a problem – you CAN type “from select blah blah …etc” and it’s no issue.

I’m using the jquery validator plugin (but I have to assume it’s not on the javascript side – seems like it must be something w/ Cake / MySQL?)

ANY thoughts very welcome.

  • 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-05-23T17:24:16+00:00Added an answer on May 23, 2026 at 5:24 pm

    Do you have ModSecurity installed on Apache? It looks like your string triggers its pattern:

    (insert[[:space:]]+into.+values|select.*from.+[a-z|A-Z|0-9]|select.+from|bulk[[:space:]]+insert|union.+select|convert.+\\(.*from)
    

    Look for something like ModSecurity: Access denied with code 500 (phase 2) in your error log.

    And it looks like you’ve disabled default Pages route:

    Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
    

    so Cake tries to route request for domain.com/500.shtml to 500.shtmlController.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably easy to do! I'm not able envision the loop yet, I
Hey, I'm looking to make a loop that takes in this array: String[] arr
Suppose I have a string like this: one two three four five six seven
Say I have a query like this: one two three, if I replace with
Is there any way to have this: [one[two]][three] And extract this with a regex?
I'm completely stumped on this one. I have three different lists that need to
In this example I create three buttons 'one' 'two' 'three'. When clicked I want
I have markup like this: <p>one two three four</p> And I want to use
Before I throw something ugly together I thought this would be a good one
if ConvertAll throw an exception on one element, can i just skip this element

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.