• Resolved dbrabyn

    (@dbrabyn)


    I created then trashed (and emptied the trash) an Options page but it won’t delete: it still appears in the admin menu and it opens when I click on it.

    Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Same problem here

    @dbrabyn I found a solution … Under Settings > Options > look for ‘acfe’.
    You can delete the options array there. Use the tool they provide in the info.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! I just tested the module, and it works correctly. As soon as you trash an Options Page (no need to empty trash), it disappear from the Admin Menu.

    Can you please provide your WordPress, ACF & ACF Extended versions? Did you make a upgrade recently?

    The solution from @imagy will work as it will flush ACF Extended modules, and re-generate it automatically.

    Regards.

    Thread Starter dbrabyn

    (@dbrabyn)

    @imagy Thank Imagy.

    @hwk-fr I have the fastest version of ACF, ACFE and WP. I still see that Options page, both in the menu and in the option value (BTW there is a typo in the Edit Option page: “serilized”) despite deleting it.

    This issue occurs on a local WP install using Local by FlyWheel. On the server version it disappeared as expected when I deleted it. Hope this tells you something.

    Thanks.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the serilized typo report. It will be fixed in the next patch.

    It’s weird that it doesn’t work on your local install. Can you please provide more information about your local environment? What is your PHP + Apache version? Do you have any Object Cache/Opcode enabled? If so, can you try to flush it after trashing an Options Page?

    @imagy You said you have the same problem. Can you please provide your WP, ACF & ACF Extended versions, as long as your PHP + Apache versions?

    Thanks in advance.

    Regards.

    Thread Starter dbrabyn

    (@dbrabyn)

    PHP 7.4.1
    Web server: Nginx
    No cache-ing that I know of. Just now I stopped and re=started the site in Local to see if that flushed anything. Nope.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I just tested on Nginx 1.16 + PHP 7.4.1 and everything works fine. Can you please show me the following information (leave your Options Page published):

    – Your Options Page “PHP export” dump
    – Your acfe option dump (in Settings > Options > Search acfe)

    Regards.

    Thread Starter dbrabyn

    (@dbrabyn)

    Here is te PHO dump for the sticky Options page:

    if( function_exists('acf_add_options_page') ):
    
    acf_add_options_page(array(
    	'page_title' => 'Gear',
    	'menu_title' => 'Gear',
    	'menu_slug' => 'gear',
    	'capability' => 'edit_posts',
    	'position' => '49',
    	'parent_slug' => '',
    	'icon_url' => 'dashicons-performance',
    	'redirect' => true,
    	'post_id' => 'options',
    	'autoload' => false,
    	'update_button' => 'Update',
    	'updated_message' => 'Gear Updated',
    ));
    
    endif;

    And the value for Option 173 acfe:

    Array
    (
        [version] => 0.8.7
        [modules] => Array
            (
                [author] => Array
                    (
                        [active] => 1
                    )
    
                [dev] => Array
                    (
                        [active] => 
                    )
    
                [meta] => Array
                    (
                        [active] => 
                    )
    
                [option] => Array
                    (
                        [active] => 1
                    )
    
                [ui] => Array
                    (
                        [active] => 1
                    )
    
                [dynamic_block_type] => Array
                    (
                        [active] => 1
                        [settings] => Array
                            (
                            )
    
                        [data] => Array
                            (
                            )
    
                    )
    
                [dynamic_form] => Array
                    (
                        [active] => 1
                        [settings] => Array
                            (
                            )
    
                        [data] => Array
                            (
                            )
    
                    )
    
                [dynamic_option] => Array
                    (
                        [active] => 1
                        [settings] => Array
                            (
                            )
    
                        [data] => Array
                            (
                                [gear] => Array
                                    (
                                        [page_title] => Gear
                                        [menu_title] => Gear
                                        [menu_slug] => gear
                                        [capability] => edit_posts
                                        [position] => 49
                                        [parent_slug] => 
                                        [icon_url] => dashicons-performance
                                        [redirect] => 1
                                        [post_id] => options
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Gear Updated
                                    )
    
                                [image-gallery] => Array
                                    (
                                        [page_title] => Image Gallery
                                        [menu_title] => Image Gallery
                                        [menu_slug] => image-gallery
                                        [capability] => edit_posts
                                        [position] => 1.8
                                        [parent_slug] => 
                                        [icon_url] => dashicons-images-alt2
                                        [redirect] => 1
                                        [post_id] => imagegallery
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Image Gallery Updated
                                    )
    
                                [intro] => Array
                                    (
                                        [page_title] => Intro
                                        [menu_title] => Intro
                                        [menu_slug] => intro
                                        [capability] => edit_posts
                                        [position] => 1.2
                                        [parent_slug] => 
                                        [icon_url] => dashicons-admin-users
                                        [redirect] => 1
                                        [post_id] => intro
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Intro Updated
                                    )
    
                                [press] => Array
                                    (
                                        [page_title] => Press
                                        [menu_title] => Press
                                        [menu_slug] => press
                                        [capability] => edit_posts
                                        [position] => 1.7
                                        [parent_slug] => 
                                        [icon_url] => dashicons-media-document
                                        [redirect] => 1
                                        [post_id] => press
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Press Updated
                                    )
    
                                [profile] => Array
                                    (
                                        [page_title] => Profile
                                        [menu_title] => Profile
                                        [menu_slug] => profile
                                        [capability] => edit_posts
                                        [position] => 1.3
                                        [parent_slug] => 
                                        [icon_url] => dashicons-search
                                        [redirect] => 1
                                        [post_id] => profile
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Profile Updated
                                    )
    
                                [race-calendar] => Array
                                    (
                                        [page_title] => Race Calendar
                                        [menu_title] => Race Calendar
                                        [menu_slug] => race-calendar
                                        [capability] => edit_posts
                                        [position] => 1.6
                                        [parent_slug] => 
                                        [icon_url] => dashicons-calendar-alt
                                        [redirect] => 1
                                        [post_id] => racecalendar
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Race Celandar Updated
                                    )
    
                                [results] => Array
                                    (
                                        [page_title] => Results
                                        [menu_title] => Results
                                        [menu_slug] => results
                                        [capability] => edit_posts
                                        [position] => 1.4
                                        [parent_slug] => 
                                        [icon_url] => dashicons-awards
                                        [redirect] => 1
                                        [post_id] => results
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Results Updated
                                    )
    
                                [site-options] => Array
                                    (
                                        [page_title] => Site Options
                                        [menu_title] => Site Options
                                        [menu_slug] => site-options
                                        [capability] => edit_posts
                                        [position] => 1.1
                                        [parent_slug] => 
                                        [icon_url] => dashicons-admin-generic
                                        [redirect] => 1
                                        [post_id] => siteoptions
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Site Options Updated
                                    )
    
                                [sponsors] => Array
                                    (
                                        [page_title] => Sponsors
                                        [menu_title] => Sponsors
                                        [menu_slug] => sponsors
                                        [capability] => edit_posts
                                        [position] => 1.9
                                        [parent_slug] => 
                                        [icon_url] => dashicons-thumbs-up
                                        [redirect] => 1
                                        [post_id] => sponsors
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Sponsors Updated
                                    )
    
                                [teams] => Array
                                    (
                                        [page_title] => Teams
                                        [menu_title] => Teams
                                        [menu_slug] => teams
                                        [capability] => edit_posts
                                        [position] => 1.5
                                        [parent_slug] => 
                                        [icon_url] => dashicons-groups
                                        [redirect] => 1
                                        [post_id] => teams
                                        [autoload] => 
                                        [update_button] => Update
                                        [updated_message] => Teams Updated
                                    )
    
                            )
    
                    )
    
                [dynamic_post_type] => Array
                    (
                        [active] => 1
                        [settings] => Array
                            (
                            )
    
                        [data] => Array
                            (
                            )
    
                    )
    
                [dynamic_taxonomy] => Array
                    (
                        [active] => 1
                        [settings] => Array
                            (
                            )
    
                        [data] => Array
                            (
                            )
    
                    )
    
            )
    
        [upgrades] => Array
            (
            )
    
    )
    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I tested that configuration it also works. It looks like the problem is on your side.

    Can you please make sure that the option page is not registered in PHP in your theme? Also when you trash the Options Page, it’s still visible in the acfe option right?
    Do you have any specific code on the publish_to_trash hook? Can you try to disable any plugins/switch back to a default twenty twenty theme?

    You should join the ACF community on Slack, it will be easier to discuss there as I’m always connected. Here is an invitation: https://join.slack.com/t/wpacf/shared_invite/enQtODc2MjczMzM3NzQ1LTQxNmY2ZGY3OTU2NDkxNTliYmNhMmY1NDMwZGM4NmYxNzgwZTI5MDUzMDFlMGQ5YzcwNDc0ZWM0MDVmODI4NmI

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    After a discussion with David, the problem most likely come from a custom code/plugin that conflict with one specific Options Page because other Options Pages correctly disappear when they get trashed.

    @imagy If you come back here, feel free share more information about your issue if it’s still up.

    Note: I’m closing the topic, because after many new tests, the feature works correctly, and there’s no other bug reports about it.

    Regards.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Options page not deleting’ is closed to new replies.