-
AuthorPosts
-
April 4, 2016 at 5:19 pm #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, 8 months ago by GeoCreo.
April 4, 2016 at 10:31 pm #607918Hey 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, 8 months ago by Yigit.
April 5, 2016 at 1:29 am #607981Hi Yigit,
Thanks. The website is accessible again. It’s just the matter of activating debug mode.
Regards,
GeorgeApril 5, 2016 at 10:15 am #608151Hi 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,
GeorgeApril 5, 2016 at 10:26 am #608155Hey!
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,
VinayApril 5, 2016 at 10:36 am #608159Thanks 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,
GeorgeApril 5, 2016 at 7:02 pm #608454Hey!
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,
YigitJanuary 3, 2018 at 7:25 pm #892908Hi 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, 11 months ago by Yigit. Reason: Deleted FTP and WP logins
January 4, 2018 at 12:29 pm #893205Hi shaoxuming,
Login details are not working, could you check and verify please?
Best regards,
RikardJanuary 4, 2018 at 12:41 pm #893209Just checked. Sorry, ftp should be without http://
It is otherwise correct.Thanks for your work!
January 4, 2018 at 1:36 pm #893231This reply has been marked as private.January 8, 2018 at 5:46 pm #894798Hi,
@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 -
AuthorPosts
- The topic ‘Trouble activating Debug Mode’ is closed to new replies.