Development

#7156 ("Configuration file "[...]/lib/vendor/symfony/config/config/filters.yml" specifies category "common" with missing class key.)

You must first sign up to be able to contribute.

Ticket #7156 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

"Configuration file "[...]/lib/vendor/symfony/config/config/filters.yml" specifies category "common" with missing class key.

Reported by: phidah Assigned to: fabien
Priority: major Milestone: 1.3.0
Component: configuration Version: 1.3.x DEV
Keywords: Cc:
Qualification: Unreviewed

Description

I have a project that works fine in 1.2.9-DEV. I then tried using 1.3.0-DEV instead, but as soon as I did it I got a sfParseException:

Configuration file "[[path to project]]/lib/vendor/symfony/config/config/filters.yml" specifies category "common" with missing class key.

The file looks like this:

# rendering filter must be the first registered filter
rendering:
  class: sfRenderingFilter
  param:
    type: rendering

# security filter must have a type of security
security:
  class: sfBasicSecurityFilter
  param:
    type: security

# generally, you will want to insert your own filters here

cache:
  class: sfCacheFilter
  param:
    condition: %SF_CACHE%

# execution filter must be the last registered filter
execution:
  class:  sfExecutionFilter
  param:
    type: execution

If I grab the filters.yml from the 1.2 branch I get an error stating that sfCommonFilter does not exist.

This seems like a bug to me, correct me if I am wrong.

Change History

(follow-up: ↓ 2 ) 09/15/09 09:18:52 changed by hugo.hamon

  • status changed from new to closed.
  • resolution set to invalid.

Hi,

That's not a bug as the sfCommonFilter class has been removed from Symfony 1.3. Just check these two links to see how to upgrade your project to 1.3 :

http://www.symfony-project.org/tutorial/1_3/en/upgrade http://www.symfony-project.org/tutorial/1_3/en/deprecated

Hugo.

(in reply to: ↑ 1 ) 09/15/09 09:29:49 changed by phidah

Thank you Hugo. Sorry for my unawareness :)

Replying to hugo.hamon:

Hi, That's not a bug as the sfCommonFilter class has been removed from Symfony 1.3. Just check these two links to see how to upgrade your project to 1.3 : http://www.symfony-project.org/tutorial/1_3/en/upgrade http://www.symfony-project.org/tutorial/1_3/en/deprecated Hugo.

11/25/09 18:11:13 changed by boutell

  • status changed from closed to reopened.
  • resolution deleted.
  • milestone changed from 1.3.0 alpha1 to 1.3.0.

This is a valid bug which is breaking projects which are correct according to the documentation. sfCommonFilter DOES exist in 1.3 (look in lib/filters), and the documentation says it it still supported and you can turn it on if you want to. But if you do you get the error reported in this bug, which is a configuration error in a YML file inside Symfony itself.

Either the class should be removed, and the documentation changed to say you can't use it, or config/config/filters.yml in the Symfony 1.3 branch should be fixed (I'm not sure exactly what needs to be in the class key to fix it).

From the documentation: "The sfCommonFilter class is still bundled with symfony 1.3, and so you can still use it in your filters.yml if you need to."

http://www.symfony-project.org/tutorial/1_4/en/upgrade

11/25/09 20:02:18 changed by Kris.Wallsmith

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [24395]) [1.3] updated upgrade task to specify a class for the common filter since it's no longer specified in the core (closes #7156, #7536)