DamienHarper / auditor

auditor, the missing audit log library
MIT License
164 stars 53 forks source link

You have requested a non-existent parameter "dh_auditor.provider.doctrine.configuration". #173

Closed vachigaggl closed 9 months ago

vachigaggl commented 1 year ago

I am on symfony 4.4 and amienharper/auditor-bundle 5.2.4. However, I am getting not getting far: The problem that appears immediately:

You have requested a non-existent parameter "dh_auditor.provider.doctrine.configuration".

with this Minimal config file:

dh_auditor:
    enabled: true
    providers:
        doctrine:
            table_prefix: ~
            table_suffix: '_audit'

Google returns 0 results for "dh_auditor.provider.doctrine.configuration".

dmitryuk commented 1 year ago

@vachigaggl try to make a debug breakpoint to src/DependencyInjection/DHAuditorExtension.php:32. Do you have providers inside?

DamienHarper commented 11 months ago

@vachigaggl do you still face this issue?

vachigaggl commented 11 months ago

Sorry to say this topic seems to have slipped off my desk at some point - I haven't looked into it since September. I will try your solution and get back to you.

On Thu, 21 Dec 2023 at 08:44, Damien Harper @.***> wrote:

@vachigaggl https://github.com/vachigaggl do you still face this issue?

— Reply to this email directly, view it on GitHub https://github.com/DamienHarper/auditor/issues/173#issuecomment-1865793262, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYTHTD2ZLPFFLZE6R5KEW3YKPSG7AVCNFSM6AAAAAA3FN7JVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRVG44TGMRWGI . You are receiving this because you were mentioned.Message ID: @.***>

vachigaggl commented 9 months ago

In the meantime, we we have migrated away from Symfony 4.4. I guess that the plural key "providers" that I had in my config is not the same place as the singular "provider" configuration key that caused this error message. But now that we are on symfony flex, this no longer plays a role. I can only advise anyone to upgrade to a new symfony version by creating a new application with the maker bundle, moving your files from the old project to the new, running rector and cutting yourself free from symfony without flex and PHP < 8.