• Resolved daffy44

    (@daffy44)


    hi,
    everything works well until i add this function in my personal plugin.
    since backWPup does not work anymore (operation launched but stop)
    Here is my code
    Does anyone can tell me what is wrong with my code. Thanks a lot.

    CODE
    ——
    * fonction ajout de cookie – pour 1ere visite */
    /* etape 1 : ajout du cookie duree 182 jours 6 mois */

    function o99_set_newvisitor_cookie() {
    if ( !is_admin() && !isset($_COOKIE[‘aradaff_1erevisite’])) {
    setcookie(‘aradaff_1erevisite’, 1, time()+3600*24*182, COOKIEPATH, COOKIE_DOMAIN, false);
    wp_safe_redirect(home_url(‘/welcome/’));exit;
    }

    }
    add_action( ‘init’, ‘o99_set_newvisitor_cookie’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Brandon Olivares

    (@cocreation)

    Hi @daffy44, are you still getting this error? What does the backup log say when you have this code included?

    Plugin Contributor Brandon Olivares

    (@cocreation)

    @daffy44, since we didn’t hear back from you, we assume that your problem has been fixed and we can mark this ticket as resolved. If we are wrong, please reopen the ticket and provide more information, so we can help to find a proper solution for you! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘What wrong with my function’ is closed to new replies.