This occurs on the TasteWP demo site in the plugin description
“Parse error: syntax error, unexpected ‘|’, expecting variable (T_VARIABLE) in /s2-crushcreator/wordpress/wp-content/plugins/decalog/includes/api/class-logger.php on line 60“
View post on imgur.com
]]>
You’re breaking all aspects of WP CLI ??even if we attempt to skip loading the plugin
# wp option get siteurl --skip-plugins=decalog
PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/nginx/domains/domain.com/public/wp-content/plugins/decalog/includes/api/class-logger.php on line 60
Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /home/nginx/domains/domain.com/public/wp-content/plugins/decalog/includes/api/class-logger.php on line 60
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.
]]>
Hello,
When setting the loger to the INFO level, there might be many E_DEPRECATED errors showing. They disappear when changing it to NOTICE level, but the others E_INFOS are removed too.
I’ve tried changing calling the following from an mu plugin but they are still here :
error_reporting(E_ALL ^ E_DEPRECATED);
Would there be a way ot get rid of them ?
]]>Hello,
On my setup, the php errors reported through decalog don’t show the execution traces (php and wordpress). It has been activated in the plugin settings.
Is there something else to be done ? In the php configuration for instance ?
]]>hello
since the new woocommerce 8.5 update, when decalog plugin is activated on the website, it crashes the website. just grey screen and no wp-admin.
when decalog is deactivtated all is normal
thank youi
]]>Hello
We are using decalog plugin in our site and we are facing an issue with the CLI part of it, basically, when we are trying to use the WP CLI to clear cache we need the output to not have color but no matter if we use the –no-color tag apparently decalog ignores it and makes WP to print the output with color.
This is the code we are using:
wp cache flush --no-color
Here you can find a screenshot of the result: https://p23.zdusercontent.com/attachment/48506/jXj5WjxKqs7MtRIufjvV7cSjH?token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..ctkCgp9RUL1SHBXCDT83Mg.8oabzk6YFEidOPeaDhqzczSlhnX0XzBBrioKMWBxcn1oIFLOnp0Naku-5eGtZuQlTfkrDXrW57rxjGTR_3Cnuli15IVgPTQn_8D71rN5CvkM4ruUIez58i1LhePuFDDTq5ao6MD-TLNVAtNtB4i7MDhkQ01Rr8P9n7WPzjzepmHAub9-Ook_qFc2hcuFgs_ZNziJ-b2oAMixER_4zdnh4Bml4pdW5ig6ggj02jRaxxVB8bITmKtblUMDLuaovQFnNKzD2708273B6qT7s-s3lhUMWQUZTe4zOBfdctI1gwg.RAE46sgGyNJBgguJX1m7Fg
If we try to run the same CLI script by skipping decalog plugin it doesn’t print out the color, however, need this to work even with the decalog plugin ON and without need to skip the use of it.
wp cache flush --no-color --skip-plugins=decalog
Do you know if there is any option to make decalog not to ignore the –no-color tag?
Thanks
When using the PHP 8.2 version and Decalog plugin in its latest version I am getting the following fatal error
PHP Fatal error: Uncaught Error: Call to a member function error() on null in /wp-content/plugins/decalog/includes/listeners/class-phplistener.php:350
I was wondering if this is something you have faced before and if this can be somehow avoided
]]>Hello and thank you for this very helpful plugin!
My WordPress instance is containerized on Kubernetes, so I run one Datadog agent per node.
The IP address of my node changes depending on which node the container will be created on.
Is there a way to set an environment variable for the agent URL? In my case (and according to Datadog’s documentation), it would be https://DD_AGENT_HOST:8126
HI! I use a roots bedrock + sage setup nd when I activate the plugin I get these errors:
Fatal error: Declaration of Decalog\Logger::emergency($message, $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = []): void in web/app/plugins/decalog/includes/api/class-logger.php on line 58
Fatal error: Uncaught Error: Call to a member function start_span_with_id() on null in /web/app/plugins/decalog/includes/listeners/class-corelistener.php:1726 Stack trace: #0 /web/wp/wp-includes/class-wp-hook.php(306): Decalog\Listener\CoreListener->trace_shutdown_start() #1 /web/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #2 /web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 web/wp/wp-includes/load.php(1144): do_action(‘shutdown’) #4 [internal function]: shutdown_action_hook() #5 {main} thrown in web/app/plugins/decalog/includes/listeners/class-corelistener.php on line 1726
I saw that it might depend on the version of some plugin dependency with php 8 but i’m not sure, is there any way to fix? other PerfOps plugins also give me similar errors.
Thanks in advance
]]>I just want to make sure I understand everything clearly.
Does Decalog require the existence of Datadog Agent to be able to forward logs there? I cannot find this mentioned anywhere, but seems logical to me, I just want confirmation and elaboration of the process please.
I’m getting this error message in the logs when I try to activate the plugin. I have tried a few times to install and uninstall it but no luck ??
PHP message: PHP Fatal error: Uncaught Error: Call to undefined method WSAL_Freemius::is_trial() in /var/www/html/wp-content/plugins/decalog/includes/listeners/class-wsallistener.php:45
Stack trace:
0 /var/www/html/wp-content/plugins/decalog/includes/listeners/class-abstractlistener.php(137): Decalog\Listener\WsalListener->init()
1 [internal function]: Decalog\Listener\AbstractListener->__construct()
2 /var/www/html/wp-content/plugins/decalog/includes/listeners/class-listenerfactory.php(148): ReflectionClass->newInstanceArgs()
3 /var/www/html/wp-content/plugins/decalog/includes/listeners/class-listenerfactory.php(106): Decalog\Listener\ListenerFactory->create_listener_instance()
4 /var/www/html/wp-content/plugins/decalog/includes/listeners/class-listenerfactory.php(90): Decalog\Listener\ListenerFactory->launch()
5 /var/www/html/wp-content/plugins/decalog/includes/plugin/class-core.php(74): Decalog\Listener\ListenerFactory->__construct()
6 /var/www/html/wp-content/plugins/decalog/includes/plugin/class-core.php(59): Decalog\Plugin\Co in /var/www/html/wp-content/plugins/decalog/includes/listeners/class-wsallistener.php on line 45
hello, i recently noticed that the console, live events screen shows:
Live events –
This console is currently unavailable. Click here to see details
when i click the see details, i get “You do not have permission to access this page.”
of course the user is an admin one.
what can cause this to happen? it used to work some time ago when i last checked, since then we updated php to 8.1 but i am not sure it’s related?
thank you !
]]>I know it is compatible with Elastic Search, but is it compatible with OpenSearch?
]]>hello,
i am pushing the traces through the agent which is installed on local host, to datadog
in datadog i can see this in traces:
https://snipboard.io/Tj2pKy.jpg
and in live console i see this:
[2022-09-25 09:15:54] WFRONT ERROR UID:000000 DecaLog: Pushing traces to https://localhost:8126/v0.3/traces => Unknow error
[2022-09-25 09:15:54] AJAX ERROR UID:017272 DecaLog: Pushing traces to https://localhost:8126/v0.3/traces => Unknow error
[2022-09-25 09:15:55] AJAX ERROR UID:017272 DecaLog: Pushing traces to https://localhost:8126/v0.3/traces => Unknow error
[2022-09-25 09:16:04] CRON ERROR UID:000000 DecaLog: Pushing traces to https://localhost:8126/v0.3/traces => Unknow error
here’s a screenshot:
https://snipboard.io/Ch1Afu.jpg
other issue so opening a new thread:)
is there a way to send the webhooks delivery log that can be found at: WooCommerce > Status > Logs to datadog, with decalog plugin?
hello dear Pierre.
I am having a lot of “curl error: Failed to connect to localhost port 8126 after 0 ms: Connection refused”
this is coming from the traces integration from decalog to the datadog agent, hosted on the same server which is configured in your amazing plugin like this:
https://snipboard.io/F9QEl2.jpg
error in datadog screenshot:
https://snipboard.io/gy8JYq.jpg
do you have an idea what can cause this?
regards
]]>Hello Team,
I want to update the Formats of a log record using hooks but have not found any hooks to update recode. Let me update you about the file and function.
File Name: class-datadogformatter.php
Function Name: format()
In this function, I want to update and add some extra tags in this array key “ddtags”
Please let me know which hook I need to use to update the “ddtags” array key value without editing the plugin’s core files.
In short, I need a hook to update format() function present on class-datadogformatter.php file
Thanks
]]>Looks like system events-logger is running normally, but in the console I am only receiving a series of ‘Concolse initialization…’ and nothing else.
]]>Hi there,
so i decided to stay with datadog as it seem to work best for me.
one thing i do not understand. decalog sends traces, metrics and logs from wordpress to datadog, but also i have datadog agent installed on the server which sends apache logs and also php logs along with traces and metrics.
i want somehow to “aggregate” everything together.
can i maybe send the logs/traces/metrics from decalog to the server agent so everything will “flow” from this agent and then everything will be tagged correctly and aggregated?
right now in datadog APM I have this:
https://snipboard.io/Cf8rH4.jpg
when site_frontend, site_backend, ajax_request and rest_api_request are from decalog and the rest from the agent.
really struggling with this one and datadog support don’t really undersand what decalog does…
thank you!
]]>hello Pierre,
wanted to ask you, is there a way to send logs, traces and metrics to site24x7 ?
that’s their integrations list
https://snipboard.io/NpzkA8.jpg
thank you !
]]>hello
since few days ago, i am having those errors in the log, related to decalog.
few hundreds times a day, i can’t seem to understand when exactly.
?? Critical [0] A database error was detected during the page rendering: “Table XXXXXXXXXXXXX.wp_decalog_fd50e8dfb3e24da5845d285a21e18833
doesnt exist“ in the query “SELECT COUNT(*) as CNT FROM
wp_decalog_fd50e8dfb3e24da5845d285a21e18833`;“.
the token after wp_decalog_x changes in each error, but the error is the same.
any idea? i think it started since i installed other perfops plugins such as sessions, api traffic, ip locator and opcache manager. will try to disable them and see if it solves the issue.
thank you !
]]>hey Pierre,
have a quick question about datadog integration.
I integrated metrics, traces and events, along with agent that is installed on the server.
the agent collects logs & metrics that the decalog plugins does not : sql, redis, apache, nginx data.
problem is the server data from the agent and data coming from decalog are not colerated, or in other words, they are not in context one with each other. almost like they come from different servers..
any idea or maybe a tutorial to make them work in context?
thank you !
]]>hi
was trying to open settings->site health in wp admin panel, and got white screen without anything in it.
the log shows:
?? Error [0] Uncaught exception (Error):Call to undefined method Decalog\System\Cache::get_analytics()“ at ./wp-content/plugins/decalog/includes/system/class-sitehealth.php:200
.
hey there,
is decalog capable of monitoring queries something like query monitor plugin and shipping them to the desired log aggregator of choice?
new relic has something similar if you install their agent, it shows the slowest queries and from which plugin they came.
thank you !
]]>Hello,
I was trying to push traces to grafana cloud, but i can’t seem to make it work.
the events are pushing to grafana, but the traces just won’t do.. which url should i use, the grafana tempo one? or am i missunderstanding ?
thank you !
hello
When using wp activity log plugin https://he.www.ads-software.com/plugins/wp-security-audit-log/
with decalog active along with it (wp activity only tracks the users activity on the website), there’s a fatal php error when reaching the checkout page of woocommerce, on the front end.
the user gets a server error in this case, and the logs in new relic (from the new relic agent installed on the server) give this errors:
https://snipboard.io/yAiZKP.jpg
in Decalog\Listener\WsalListener::wsal_logged_alert called at /home/xxxxxx/domains/xxxxx.co.il/public_html/wp-includes/class-wp-hook.php (303)
in WP_Hook::apply_filters called at /home/xxxxx/domains/xxxx.co.il/public_html/wp-includes/class-wp-hook.php (327)
in WP_Hook::do_action called at /home/xxxxx/domains/xxxxxx/public_html/wp-includes/plugin.php (470)
in do_action called at /home/xxxxx/domains/xxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/Loggers/Database.php (103)
in WSAL_Loggers_Database::Log called at /home/xxxxx/domains/xxxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/AlertManager.php (694)
in WSAL_AlertManager::Log called at /home/xxxxx/domains/xxxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/AlertManager.php (359)
in WSAL_AlertManager::_CommitItem called at /home/xxxx/domains/xxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/AlertManager.php (248)
in WSAL_AlertManager::Trigger called at /home/xxxxx/domains/xxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/Sensors/Content.php (477)
in WSAL_Sensors_Content::viewing_post called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/class-wp-hook.php (303)
in WP_Hook::apply_filters called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/class-wp-hook.php (327)
in WP_Hook::do_action called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/plugin.php (470)
in do_action called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/general-template.php (3015)
in wp_head called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/themes/flatsome/header.php (10)
in require_once called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template.php (770)
in load_template called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template.php (716)
in locate_template called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/general-template.php (48)
in get_header called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/themes/flatsome/single.php (8)
in include called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template-loader.php (106)
in require_once called at /home/xxxxxx/domains/xxxxxx/public_html/wp-blog-header.php (19)
in require called at /home/xxxxxx/domains/xxxxxx/public_html/index.php (17)
—
in Decalog\Listener\WsalListener::wsal_logged_alert called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/class-wp-hook.php (303)
in WP_Hook::apply_filters called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/class-wp-hook.php (327)
in WP_Hook::do_action called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/plugin.php (470)
in do_action called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/Loggers/Database.php (103)
in WSAL_Loggers_Database::Log called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/AlertManager.php (694)
in WSAL_AlertManager::Log called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/AlertManager.php (359)
in WSAL_AlertManager::_CommitItem called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/AlertManager.php (248)
in WSAL_AlertManager::Trigger called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/plugins/wp-security-audit-log-premium/classes/Sensors/Content.php (477)
in WSAL_Sensors_Content::viewing_post called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/class-wp-hook.php (303)
in WP_Hook::apply_filters called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/class-wp-hook.php (327)
in WP_Hook::do_action called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/plugin.php (470)
in do_action called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/general-template.php (3015)
in wp_head called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/themes/flatsome/header.php (10)
in require_once called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template.php (770)
in load_template called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template.php (716)
in locate_template called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/general-template.php (48)
in get_header called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/themes/flatsome/page-blank.php (5)
in require called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template.php (772)
in load_template called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template.php (716)
in locate_template called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/general-template.php (204)
in get_template_part called at /home/xxxxxx/domains/xxxxxx/public_html/wp-content/themes/flatsome/page.php (12)
in include called at /home/xxxxxx/domains/xxxxxx/public_html/wp-includes/template-loader.php (106)
in require_once called at /home/xxxxxx/domains/xxxxxx/public_html/wp-blog-header.php (19)
in require called at /home/xxxxxx/domains/xxxxxx/public_html/index.php (17)
]]>
Hello Pierre,
In new relic event log integration, i can see that Backtrace option is grayed out, while for example on Datadog and others, it is available.
any reason why it works like that? should i configure something for it to be available?
Thank you again for the great support and plugin..I’m amazed everyday how easy it’s not integrate and try new loggers that i never tried before.
I’m running PHP 8.1 and WordPress 5.9-beta3.
[21-Dec-2021 17:35:36 UTC] PHP Fatal error: Uncaught Error: Call to a member function inc_dev_counter() on null in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php:351
Stack trace:
#0 [internal function]: Decalog\Listener\PhpListener->handle_exception(Object(Error))
#1 {main}
thrown in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php on line 351
[21-Dec-2021 17:35:36 UTC] PHP Fatal error: Uncaught Error: Call to a member function inc_dev_counter() on null in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php:331
Stack trace:
#0 /Users/Till/Development/Sites/wordpress/wp-includes/post.php(4973): Decalog\Listener\PhpListener->handle_error(2, 'Error (E_WARNIN...', './wp-includes/p...', 4973)
#1 /Users/Till/Development/Sites/wordpress/wp-includes/post.php(4330): wp_unique_post_slug('35e3dbccb2ee39a...', 0, 'publish', 'deprecated_log', 0)
#2 /Users/Till/Development/Sites/wordpress/wp-content/plugins/log-deprecated-notices/log-deprecated-notices.php(440): wp_insert_post(Array)
#3 /Users/Till/Development/Sites/wordpress/wp-includes/class-wp-hook.php(307): Deprecated_Log->shutdown('')
#4 /Users/Till/Development/Sites/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#5 /Users/Till/Development/Sites/wordpress/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#6 /Users/Till/Development/Sites/wordpress/wp-includes/load.php(1100): do_action('shutdown')
#7 [internal function]: shutdown_action_hook()
#8 {main}
thrown in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php on line 331
]]>
hello
when the plugin is activated, i see this message in site health :
Your site uses database transient. You should consider using a dedicated object caching mechanism, like Memcached or Redis, to improve your site’s speed.
screenshot:
https://snipboard.io/5V6Mdf.jpg
i do have fully working redis object cache though, this warning only shows when the decalogs plugin is active.
in the info tab, i got 2 object cache lines. the object cache pro is the redis cache plugin, and the other one only shows when decalogs is on:
https://snipboard.io/p12HKu.jpg
I contacted object cache pro plugin developer and he asked me to contact you about the issue.
thank you ??
Hello
What does APCu and shared memory options do? It says I dont have them Enabled on server, I wonder if I can benefit from them but I cant find relevant information.
Also, the consoles menu in wp menu is empty. What is supposed to be present in there?
Thank you!