• Resolved AzureDesigns

    (@azuredesigns)


    I have just updated the theme and plugins and now I get the error below on my Contact Us page, which is only being caused by AI Contact Form

    Fatal error: Cannot redeclare attitude_add_editor_styles() (previously declared in /home/etvoilac/public_html/wp-content/themes/attitude/library/functions/functions.php:58) in /home/etvoilac/public_html/wp-content/themes/attitude/library/functions/functions.php on line 57

    Line 57 is:

    function attitude_add_editor_styles() {
    	$font_url = str_replace( ',', '%2C', '//fonts.googleapis.com/css?family=PT+Sans:400,700italic,700,400italic' );
    	add_editor_style( $font_url );
    }
    add_action( 'after_setup_theme', 'attitude_add_editor_styles' );

    Can you assist.. I have no idea how to fix this?

    Thanks

    https://ww.wp.xz.cn/plugins/responsive-contact-form/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author August Infotech

    (@augustinfotech)

    Hello AzureDesigns,

    We are not using attitude_add_editor_styles() function in Multi-language Responsive Contact Form plugin.

    The above Fatal error: Cannot redeclare attitude_add_editor_styles() (previously declared in /home/etvoilac/public_html/wp-content/themes/attitude/library/functions/functions.php:58) in /home/etvoilac/public_html/wp-content/themes/attitude/library/functions/functions.php on line 57 you are facing because it has been declared more than one time.
    You cannot re-declare twice the same functions.

    Regards,
    August Infotech

    Thread Starter AzureDesigns

    (@azuredesigns)

    Do you know how I fix this? Because it was all working fine before I upgraded everything…

    Plugin Author August Infotech

    (@augustinfotech)

    Hello AzureDesigns,

    Please change your function name in funcation.php file on main theme or child theme.

    OR

    Replace this code Line 57 is:
    function attitude_add_editor_styles_font_new() {
    $font_url = str_replace( ‘,’, ‘%2C’, ‘//fonts.googleapis.com/css?family=PT+Sans:400,700italic,700,400italic’ );
    add_editor_style( $font_url );
    }
    add_action( ‘after_setup_theme’, ‘attitude_add_editor_styles_font_new’ );

    Regards
    August Infotech

    Thread Starter AzureDesigns

    (@azuredesigns)

    Hi… nope it didn’t work

    Fatal error: Cannot redeclare attitude_add_editor_styles_font_new() (previously declared in /home/etvoilac/public_html/wp-content/themes/attitude/library/functions/functions.php:58) in /home/etvoilac/public_html/wp-content/themes/attitude/library/functions/functions.php on line 57

    Any other ideas?

    Thread Starter AzureDesigns

    (@azuredesigns)

    I really need some help with this…. anyone?

    Plugin Author August Infotech

    (@augustinfotech)

    Hello AzureDesigns,

    This is functionality issues so we will need to check your code.this error was thrown form your theme folder.

    Regards
    August Infotech

    Thread Starter AzureDesigns

    (@azuredesigns)

    Ok, so what do you need from me and how do I give this to you in a secure form?

    Plugin Author August Infotech

    (@augustinfotech)

    Hello AzureDesigns,

    Here we only provide support for the Multi-language Responsive Contact Form plugin.

    We have try to check your technical issues , please give me your site URL.

    Regards
    August Infotech

    kulmie

    (@kulmie)

    Hello, i’am new here
    This afternoon, wanted to modify my gallery theme and dont know what i did but since can’t open my site igot this message ERROR

    Parse error: syntax error, unexpected ‘.’ in /home4/kulmie/public_html/wp-content/themes/aplite/functions.php on line 57

    This is my site http://communautesomaliennedegeneve.com

    Best Regards
    Kulmie

    Plugin Author August Infotech

    (@augustinfotech)

    Hello kulmie,

    Sorry for late replay.
    We have check your site , it’s working perfectly.

    Regards
    August Infotech

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

The topic ‘Fatal error’ is closed to new replies.