bsmolyanov
Forum Replies Created
-
Forum: Plugins
In reply to: [Query Monitor] Plugin fails entirely in 4.0 and 4.0.1I have the same issue. My link at the admin top bar says: PHP Fatal Error and its URL points to https://…mydomain…./#qm-fatal
The error logs are full of messages like:
PHP message: PMCS Caught Error: Cannot use object of type QM_Data_Stack_Frame as array in /home/runcloud/webapps/………../wp-content/plugins/object-cache-pro/src/Extensions/QueryMonitor/templates/commands.phtml on line 69; PHP message: PHP Warning: Undefined array key “file” in /home/runcloud/webapps/……………../wp-content/plugins/query-monitor/dispatchers/Html.php on line 650; PHP message: PHP Warning: Undefined array key “line” in /home/runcloud/webapps/…………………/wp-content/plugins/query-monitor/dispatchers/Html.php on line 650Forum: Plugins
In reply to: [Make Connector] Function ‘displayError’ finished with error!Yes, exactly, the Make and API Call. The “Body” parameter was not filled-in and this caused the error. However, previously this was not an issue. Now, I inserted {} in the body and the error is gone. Method is POST.
Forum: Plugins
In reply to: [Make Connector] Function ‘displayError’ finished with error!It appears that I just had to add empty {} in the body of the API call and that resolved the issue.
Forum: Plugins
In reply to: [Make Connector] Function ‘displayError’ finished with error!Hi, David,
Since several days the error says:
[400] Invalid JSON in request body: Syntax error (error code: rest_invalid_json)
However, nothing in the way the value (post ID) passed to Make.com has been changed on my side (in WordPress).
Moreover, in the Make module itself there is nothing in the body. The post ID is passed as part of a custom REST API end point, like “posts/postID/delete-terms” where the postID if the variable from Make and ‘delete-terms’ is the custom end point, registered in WordPress via PHP code.
Therefore I am not able to see what json is being sent/received.- This reply was modified 8 months, 3 weeks ago by bsmolyanov.
Hi @m4xw3ll ,
Thank you very much for the extensive reply!
1) Is there a way to set the similarity threshold below 20?
2) Regarding the MxChat Debug Panel – I have no “actions” added/enabled at all, but it not working at all in my installation. Yesterday I was able to see it work a couple of times, but since then no success.
3) About the ACF – I now spotted how it works – they are included after the post’s content, but only if there is enough “space” for them. It will be great to be able to choose which “parts” of the post go to Pinecone – the_content and all ACF; only the_content; only the ACF; some of the ACF. Perhaps the ACF can go in additional metadata fields, like the source_url does. That would allow to manage the volume/nature of data being sent to the vector database greatly!
4) Most of my posts are quite long and I see that when uploaded in Pinecone they are cut off at around 5,700 characters. It there a way to change the size of the text metadata that goes in each record or it depends on the embedding model (“TE3 Large” in my case)?
Thank you!
- This reply was modified 9 months, 1 week ago by bsmolyanov.
Thanks a lot, @m4xw3ll ! I look forward to it.
Meanwhile, I came up with one more suggestion (feature request) – ability to use the OpenAI’s Batch API for the Knowledge Base embeddings, as it provides 50% cost reduction.
Imagine one needs to feed many thousands of posts into the Knowledge Base vector database. Such a task is not urgent, so the process can be delayed by up to 24 hours per batch, and the best part – the cost savings will be tremendous.
I trust you will consider such a feature as well.
Thanks and keep up the great work!
Many thanks for the directions, @eskapism! I tried but cannot get this to work at my level of coding skills… 🙁
Any help is much appreciated!
Forum: Plugins
In reply to: [Simple History – Track, Log, and Audit WordPress Changes] Custom Logger CodeI will start a new thread based on the new topic.
Thank you!
Forum: Plugins
In reply to: [Simple History – Track, Log, and Audit WordPress Changes] Custom Logger CodeSomething else came to my mind 🙂
Is there a way to print the visited page/post title as a link?
Currently, the title and the link are in plain text like this:
visited “{post_title}” ({post_permalink})
Thank you!
Forum: Plugins
In reply to: [Simple History – Track, Log, and Audit WordPress Changes] Custom Logger CodeManaged to solve this by replacing LogInitiators::WEB_USER with LogInitiators::WP_USER.
Forum: Plugins
In reply to: [Simple History – Track, Log, and Audit WordPress Changes] Custom Logger CodeHi @eskapism! The custom logger code you provided is working almost perfectly!
I recently noticed that each history entry starts initiated by it starts with a gray avatar logo followed by ‘Anonymous web user‘. Then, in the message itself it specifies, as expected, all the user/visited page details.
All the other log entries start with the user’s display name (as a link to the user profile) and the user’s email address, which is the expected behavior.
Is there a way to correct this and make the custom logger entries feel ‘native’ in the log?
Thank you very much!
Hi @eskapism
For the record – the culprit was the plugin GP Social Share. It seems not currently supported, although I like it a lot.
Thanks for your support!
Forum: Plugins
In reply to: [Simple History – Track, Log, and Audit WordPress Changes] Custom Logger CodeThank you very much for your time and effort, @eskapism !
I implemented the code and visits are recorded as expected!
Forum: Plugins
In reply to: [Simple History – Track, Log, and Audit WordPress Changes] Custom Logger CodeThanks a lot, @eskapism !
Unfortunately, something seems to be wrong. I place the code in functions.php and then I get the following PHP errors. Also it prevents the other loggers from displaying their messages as well.
There are the errors I am getting:
Got error 'PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 557056 bytes) in /home/....../wp-includes/class-wpdb.php on line 2459'and
Got error 'PHP message: WordPress database error Commands out of sync; you can't run this command now for query UPDATEwp_optionsSEToption_value= '1695284706' WHEREoption_name= 'action_scheduler_lock_async-request-runner' made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_OptionLock->set, update_option, QM_DB->queryPHP message: WordPress database error Commands out of sync; you can't run this command now for query SELECT COUNT(DISTINCT claim_id) FROM wp_actionscheduler_actions WHERE claim_id != 0 AND status IN ( 'pending', 'in-progress') made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch, ActionScheduler_AsyncRequest_QueueRunner->allow, ActionScheduler_Abstract_QueueRunner->has_maximum_concurrent_batches, ActionScheduler_DBStore->get_claim_count, QM_DB->queryPHP message: WordPress database error Commands out of sync; you can't run this command now for query SELECT a.action_id FROM wp_actionscheduler_actions a WHERE 1=1 AND a.status IN ('pending') AND a.scheduled_date_gmt <= '2023-09-21 08:24:06' LIMIT 0, 5 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->maybe_dispatch_async_request, ActionScheduler_AsyncRequest_QueueRunner->maybe_dispatch, ActionScheduler_AsyncRequest_QueueRunner->allow, ActionScheduler_Store->has_pending_actions_due, ActionScheduler_DBStore->query_actions, QM_DB->query'I would really appreciate your input to make this custom logger work.
Thanks!
- This reply was modified 2 years, 9 months ago by bsmolyanov.
Forum: Plugins
In reply to: [DiffCheck - Compare two text files] Language support and stylingThanks, Stefan! Much appreciated! Keep up the good work!