-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter for "amp_is_enabled" added too late. #5615
Comments
To try and determine if it's a theme or plugin is calling When you enable the plugins "Troubleshooting" mode it will switch to a core WordPress theme and deactivate all plugins for you only, as a logged in administrator. You can then activate the amp plugin while in troubleshooting mode. From there you can activate your current theme and check for the same issue, or alternatively check your plugins by enabling one by one. The issue also came up previously in the plugins support forums, from a user who had another TagDiv theme active. Let us know once you check. |
This is the result in Troubleshooting mode with all the 3rd party themes and plugins disabled. `Notice: add_filter hatalı çağırıldı. Filter for "amp_is_enabled" added too late. To disable AMP, this filter must be added before the "plugins_loaded" action. Daha fazla bilgi için lütfen WordPress hata ayıklama adresine bakın. (Bu mesaj 2.0 sürümünde eklendi.) in /home/technopa/public_html/wp-includes/functions.php on line 5229 Warning: Use of undefined constant TDC_PATH_LEGACY - assumed 'TDC_PATH_LEGACY' (this will throw an Error in a future version of PHP) in /home/technopa/public_html/wp-content/plugins/td-composer/td-composer.php on line 114` I think it is a TagDiv issue. TD Composer is theirs AFAIK. |
Good find. I also identified TagDiv Mobile Theme as being the cause in a support topic: https://wordpress.org/support/topic/issue-with-amp-added-too-late/ We should help facilitate this in the same way we did for calling |
After being told that TagDiv themes cause the isseue, I disbaled TagDiv Mobile Theme and the issue was fixed. After that I found the thread with your reply and pasted here. Credit is yours. Thanks. |
Bug Description
This error appears on WP admin panel after updating to 2.0.7 in WP debug mode:
Notice: add_filter hatalı çağırıldı. Filter for "amp_is_enabled" added too late. To disable AMP, this filter must be added before the "plugins_loaded" action. Daha fazla bilgi için lütfen WordPress hata ayıklama adresine bakın. (Bu mesaj 2.0 sürümünde eklendi.) in /home/technopa/public_html/wp-includes/functions.php on line 5229
Warning: Cannot modify header information - headers already sent by (output started at /home/technopa/public_html/wp-includes/functions.php:5229) in /home/technopa/public_html/wp-includes/functions.php on line 6274
Warning: Cannot modify header information - headers already sent by (output started at /home/technopa/public_html/wp-includes/functions.php:5229) in /home/technopa/public_html/wp-admin/includes/misc.php on line 1310
Warning: Cannot modify header information - headers already sent by (output started at /home/technopa/public_html/wp-includes/functions.php:5229) in /home/technopa/public_html/wp-admin/admin-header.php on line 9
Expected Behaviour
No error.
Steps to reproduce
Screenshots
Additional context
NewsMag Theme
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: