All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Feature Flag won’t stay enabled

Status Resolved
Add-on / Version Feature Flags 1.0.1b
Severity
EE Version 7.2.6 PHP 7.4.30

Dave de Bruin

Feb 08, 2023

Hi Brian,

When i create a FF en enable it, it gets saved properly but the toggle button goes back tot disabled status. And if i change anything als within the flag the flag is saved as disabled. So the content won’t show.

Also i think the start_date/ end_date doesn’t work. If i set the end date in the past the content will still show.

Best Dave

#1

BoldMinded (Brian)

Have you defined any feature flag related values in your config.php file?

#2

Dave de Bruin

No, should I have??

#3

BoldMinded (Brian)

Comment has been marked private.

#4

Dave de Bruin

Thanks that helped whit the enable/disable bit.

I can still see my content if I set the end-dat of the flag in past. I was just testing to see of the end-date would work when time came to end the flag. Wanted to use it for ending a promotional piece off content at some given time.

#5

BoldMinded (Brian)

I’ll have to look into this tonight and get back to you.

#6

BoldMinded (Brian)

What dates are you testing with? Can you share your template code and a screenshot of your settings so I can accurately replicate it later?

#7

Dave de Bruin

Im testing like start 2/1/2023 2:17 PM and ending 2/3/2023 8:50 PM. I added the images off the settings in the tickets-images above this page

{if feature:studiedag}
 {exp:channel:entries channel="actie_en_promoties" limit="1" entry_id="212"}
 <section>
  <div class="row" >
    <div class="col-md-10 offset-md-1"  30px;">
      <div class="col-md-12 promo-banner">
       <div class="row" >
       <div class="col-md-12">
        <!--<span>{current_time format="%d-%m-%y - %g:%i:%s"}</span>-->
         <h   none;">{title}</h2> 
           {omschrijving_homepage}
           </div>
           </div>
      <div class="col-md-12">
     <div class="nieuws-button">
        <a href="http://{title_permalink=">{button_tekst}</a>
        </div>
        
      </div>
    </div>
    </div>
  </div>
 </section>
 {/exp:channel:entries}
 {/if}
#8

BoldMinded (Brian)

This is weird b/c I specifically tested this locally… setting the start and end date prior to today’s date, and the flag did not show it’s content.

Have you tested this without the entries tag? Just put some basic text in there?

#9

BoldMinded (Brian)

Oh, can you uncheck the roles? Just use the date’s. I wonder if the role rules are superseding the date rules.

#10

BoldMinded (Brian)

Comment has been marked private.

#11

Dave de Bruin

Thanks Brian,

That solves the date problem.. Great job.

#12

BoldMinded (Brian)

Great to hear! Let me know if you run into anything else.

Login to reply