• Resolved Guimarães

    (@gabrifx)


    Ao Atualizar Os Plugins da pagina, ao tentar logar novamente e sem sucesso, segue esse erro no painel de autenticação da pagina para edita-la.

    Gostaria de Saber como proceder.

    Obrigado.

    Strict Standards: Declaration of Swedugate_Widget_Newsletter::get_widget_form() should be compatible with NewsletterWidget::get_widget_form($instance) in /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php on line 0

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-login.php on line 402

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-login.php on line 415

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 914

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 915

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 916

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 917

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 918

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 919

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 922

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 923

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 924

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 925

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 928

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 929

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 930

    Warning: Cannot modify header information – headers already sent by (output started at /home3/engeprog/public_html/wp-content/themes/edugate/framework/modules/widget/class-widget-newsletter.php:0) in /home3/engeprog/public_html/wp-includes/pluggable.php on line 931

    • This topic was modified 6 years, 4 months ago by Guimarães. Reason: erro de digitação

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Hi, you have a widget Swedugate_Widget_Newsletter which probably is extending our widget in the wrong way. That name, Swedugate_Widget_Newsletter remembers you something? A plugin? A theme?

    Thread Starter Guimarães

    (@gabrifx)

    Yes, I have a theme installed on the page, is it conflict? know how to solve?

    Plugin Author Stefano Lissa

    (@satollo)

    Report the error to the theme author, is not something i can correct in Newsletter.

    Stefano.

    Thread Starter Guimarães

    (@gabrifx)

    can send you all line command? and you see something can do it?

    Thread Starter Guimarães

    (@gabrifx)

    <?php
    /**
    * Widget_Newsletter class.
    *
    * @since 1.0
    */
    class Swedugate_Widget_Newsletter extends NewsletterWidget {
    public function __construct() {
    $widget_ops = array( ‘classname’ => ”, ‘description’ => esc_html__( “Newsletter widget to add subscription forms on sidebars.”, ‘edugate’) );
    parent::__construct( ‘swedugate_newsletter’, esc_html_x( ‘Newsletter’, ‘Newsletter widget’, ‘edugate’ ), $widget_ops );
    }

    function form($instance) {
    $widget_default = array(
    ‘title’ => ”,
    ‘description’ => ”,
    ‘second_description’ => ”
    );
    $instance = wp_parse_args( (array) $instance, $widget_default );
    printf(‘<p><label for=”%s”>%s
    <input type=”text” class=”widefat” id=”%s” name=”%s” value=”%s” />
    </label></p>’,
    esc_attr( $this->get_field_id(‘title’) ),
    esc_html__( ‘Title:’, ‘edugate’ ),
    esc_attr( $this->get_field_id(‘title’) ),
    esc_attr( $this->get_field_name(‘title’) ),
    esc_attr($instance[‘title’])
    );
    printf(‘<p><label for=”%1$s”>%2$s
    <textarea class=”widefat” rows=”3″ id=”%1$s” name=”%3$s”>%4$s</textarea>
    </label>%5$s</p>’,
    esc_attr( $this->get_field_id(‘description’) ),
    esc_html__( ‘Description:’, ‘edugate’ ),
    esc_attr( $this->get_field_name(‘description’) ),
    esc_textarea($instance[‘description’]),
    esc_html__( ‘Enter description to display on newsletter form.’, ‘edugate’ )
    );
    printf(‘<p><label for=”%1$s”>%2$s
    <textarea class=”widefat” rows=”3″ id=”%1$s” name=”%3$s”>%4$s</textarea>
    </label>%5$s</p>’,
    esc_attr( $this->get_field_id(‘second_description’) ),
    esc_html__( ‘Second description:’, ‘edugate’ ),
    esc_attr( $this->get_field_name(‘second_description’) ),
    esc_textarea($instance[‘second_description’]),
    esc_html__( ‘Enter description to display below newsletter form.’, ‘edugate’ )
    );

    }

    function update($new_instance, $old_instance) {
    $instance = $old_instance;
    $instance[‘title’] = strip_tags($new_instance[‘title’]);
    $instance[‘description’] = $new_instance[‘description’];
    $instance[‘second_description’] = $new_instance[‘second_description’];
    return $instance;
    }

    function widget($args, $instance) {
    global $newsletter;
    extract($args);
    echo !empty( $before_widget ) ? $before_widget : ”;
    echo ‘<div class=”mailing-widget widget”>’;
    if (!empty($instance[‘title’])) {
    $title = apply_filters(‘widget_title’, $instance[‘title’], $instance);
    echo !empty( $before_title ) ? $before_title : ”;
    echo esc_attr( $title );
    echo !empty( $after_title ) ? $after_title : ”;
    }
    $description = apply_filters(‘widget_text’, $instance[‘description’], $instance);
    $second_description = apply_filters(‘widget_text’, $instance[‘second_description’], $instance);
    if(!empty($description)){
    printf(‘<p>%s</p>’, nl2br(esc_textarea($description)));
    }
    $form = Swedugate_Widget_Newsletter::get_widget_form();
    $form = $newsletter->replace($form);
    echo !empty( $form ) ? $form : ”;
    if(!empty($second_description)){
    printf(‘<p>%s</p>’, nl2br(esc_textarea($second_description)));
    }
    echo ‘</div>’;
    echo !empty( $after_widget ) ? $after_widget : ”;
    }

    static function get_widget_form() {
    $options_profile = get_option(‘newsletter_profile’);
    $form = NewsletterSubscription::instance()->get_form_javascript();
    $form .= ‘<form action=”‘ . home_url(‘/’) . ‘?na=s” onsubmit=”return newsletter_check(this)” method=”post”>’;
    $form .= ‘<div class=”input-group”>’;
    $form .= ‘<input type=”hidden” name=”nr” value=”widget”/>’;
    $form .= ‘<input class=”form-control form-email-widget” type=”email” required name=”ne” value=”Email address” onclick=”if (this.defaultValue==this.value) this.value=\’\'” onblur=”if (this.value==\’\’) this.value=this.defaultValue”/>’;
    $form .= ‘<span class=”input-group-btn”><input class=”btn btn-email” type=”submit” value=”✓”/></span>’;
    $form .= ‘</div></form>’;
    return $form;
    }
    }

    Plugin Author Stefano Lissa

    (@satollo)

    Hi I don’t know why that code contains our code even extending our class, anyway you can try to change the get_widget_form() to get_widget_form($instance).

    But, again, ask the theme authors.

    Stefano.

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

The topic ‘Atualizei o Plugin e não autentico mais na pagina’ is closed to new replies.