Okay
  Public Ticket #2524417
Disabling plugin deletes locations and categories
Closed

Comments

  •  3
    iHuman started the conversation

    After disabling the plugin for testing an issue with a different plugin, I activated this plugin and the categories and locations were all missing. Is that going to happen each time the plugin is disabled?

    Second question. For front end event submission that requires a logged in user, the edit icon isn't displaying for someone with Author capabilities.

  •  877
    Zhivko replied

    There's no such code in the calendar where disabling the plugin would delete categories or anything in fact. This was done from somewhere else.

    Regarding the edit button: What is your calendar Back-End Visibility value set to?

    This value also affects who can edit the calendar events on the front-end.


    Stachethemes Developer

  •  3
    iHuman replied

    The Author account doesn't have access to the backend, but changing the Back-End Visibility value to logged in in  the calendar settings did enable the edit button on the front end for the user with the Author role.

    I'm still perplexed why all of the categories were lost - which leads to my next question. Under Backup Settings -> Export to .STEC File - what is included in the backup file? Categories, locations, custom colors?

  •  877
    Zhivko replied

    The .stec file contains General settings and Fonts & Colors values.

        public static function export_settings() {
            $filename = 'STEC Settings ' . date('Y-M-d h-i');
            header('Content-type: text/plain; charset=utf-8');
            header("Content-Disposition: attachment; filename=\"" . $filename . ".stec\"");         $pages = array(
                'stec_menu__general',
                'stec_menu__general_other',
                'stec_menu__general_email_notifications',
                'stec_menu__general_email_templates',
                'stec_menu__general_event_submit',
                'stec_menu__general_google_captcha',
                'stec_menu__fontsandcolors_top',
                'stec_menu__fontsandcolors_monthweek',
                'stec_menu__fontsandcolors_day',
                'stec_menu__fontsandcolors_grid',
                'stec_menu__fontsandcolors_boxgrid',
                'stec_menu__fontsandcolors_preview',
                'stec_menu__fontsandcolors_event',
                'stec_menu__fontsandcolors_tooltip',
                'stec_menu__fontsandcolors_agenda');         $content = array();         foreach ($pages as $page) {
                $content[] = self::get_admin_setting($page);
            }         echo serialize($content);         exit();
        }

    Stachethemes Developer

  •  3
    iHuman replied

    Thank you