We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Bug: Clicking on 'Cookie Check' in Extensions page

Developer Preview

Robzor's avatar
Robzor
86 posts
13 years ago
Robzor's avatar Robzor

Hey, running latest EE 2.5 (upgraded from 2.4.0) and the latest CC module, went to the module CP for Cookie Consent, saw that the checkbox was checked, clicked, submit. Then went to the extensions, clicked on the ‘link’ for ‘Cookie Check’ (shouldn’t this also be consent?) and I get this error:

Fatal error: Call to undefined method Cookie_consent_ext::settings() in /home/epwebsit/public_html/bwf/admin/expressionengine/controllers/cp/addons_extensions.php on line 394

Thaaaanks,

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
13 years ago
Robin Sowell's avatar Robin Sowell

Ugh- annoying. The setting is actually set via the module cp and there is no settings page via extension code. Thanks for the ‘heads up’- I’ll have to see what I can do about that one.

       
Robzor's avatar
Robzor
86 posts
13 years ago
Robzor's avatar Robzor

No probs, I wondered why it was called Cookie Check too 😊

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
13 years ago
Robin Sowell's avatar Robin Sowell

Coolio- I went with just redirecting access to the extension to the module cp- so in ext.cookie_consent.php:

function settings_form($current)
 {
  // Let's just send them to the module's page
        $this->EE->functions->redirect(
            BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=cookie_consent'
      );  
 }

And renamed extension- oops! That was the original name for the whole module, but I didn’t think it was very descriptive. Missed that one in the renaming process!

Thanks Rob. Spot anything else odd- yell!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.