Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #607756

    Hi there,

    I’m trying to activate debug mode by entering this code to the functions.php file:

    //set builder mode to debug
    add_action( ‘avia_builder_mode’, “builder_set_debug” );
    function builder_set_debug () {
    return “debug”;
    }

    However, I keep getting this failure notice:

    Parse error: syntax error, unexpected ‘<‘ in /home/projeylm/public_html/wp-content/themes/enfold/functions.php on line 532

    Am I doing something wrong and any ideas how I can get the site back?

    • This topic was modified 8 years, 7 months ago by GeoCreo.
    #607918

    Hey GeoCreo!

    Do you mind posting FTP credentials here privately?
    You can go to wp-content/themes/enfold/functions.php file via FTP and remove the code to make your website accessible again.

    Regards,
    Yigit

    • This reply was modified 8 years, 7 months ago by Yigit.
    #607981

    Hi Yigit,

    Thanks. The website is accessible again. It’s just the matter of activating debug mode.

    Regards,
    George

    #608151

    Hi guys,

    I am still having trouble activating debug mode and am unfortunately pressed by a very urgent deadline. Any suggestions on why the recommended code isn’t working on my site?

    Thanks.

    Regards,
    George

    #608155

    Hey!

    It would be easier and faster for us to resolve the issue with FTP access.

    The site again crashed because of a conflict. Please goto the functions.php and remove the code right on top after ” if(isset($avia_config[‘use_child_theme_functions_only’])) return;”

    //set builder mode to debug
    add_action('avia_builder_mode', "builder_set_debug");
    function builder_set_debug()
    {
    	return "debug";
    }
    

    Regards,
    Vinay

    #608159

    Thanks Vinay!

    I will attend to that immediately. How then can I activate debug mode thereafter?

    This is a major challenge for me right now…

    Thanks.

    Regards,
    George

    #608454

    Hey!

    I moved your code from the bottom to right below in functions.php file

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    please review your website now

    Best regards,
    Yigit

    #892908

    Hi Yigit,

    I too have trouble activating the debug mode. I am getting the following error message:

    Warning: Cannot modify header information - headers already sent by (output started at /kunden/469704_23843/webseiten/ambtax/wp-content/themes/enfold-child/functions.php:1) in /kunden/469704_23843/webseiten/ambtax/wp-admin/includes/misc.php on line 1114

    Kindly advise how to remove this error message. I have no idea what this could mean.
    Thanks a lot!

    • This reply was modified 6 years, 10 months ago by Yigit. Reason: Deleted FTP and WP logins
    #893205

    Hi shaoxuming,

    Login details are not working, could you check and verify please?

    Best regards,
    Rikard

    #893209

    Just checked. Sorry, ftp should be without http://
    It is otherwise correct.

    Thanks for your work!

    #893231
    This reply has been marked as private.
    #894798

    Hi,


    @shaoxuming
    Please try re-updating the theme via FTP and overwrite all files – kriesi.at/documentation/enfold/updating-your-theme-files/. Then, please start a new thread under Enfold sub forum and attach FTP and WP admin logins in private content field. The ones you posted here are visible to creator of this thread as well, therefore we will remove it and close this thread. Also, WP admin logins did not work for me as well. Please double check them :)

    Best regards,
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Trouble activating Debug Mode’ is closed to new replies.