Lately we’ve been getting an error after saving pages, “There has been a critical error on this website.” However the change to pages seems to be happening fine. This is the information in the debug log:
[25-Oct-2024 13:17:51 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /public_html/wp-content/plugins/wp-last-modified-info/inc/Core/Notification.php:114
Stack trace:
#0 /public_html/wp-content/plugins/wp-last-modified-info/inc/Core/Notification.php(114): explode(',', Array)
#1 /public_html/wp-includes/class-wp-hook.php(324): Wplmi\Core\Notification->email(70650, Object(WP_Post), Object(WP_Post))
#2 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /public_html/wp-includes/post.php(4860): do_action('post_updated', 70650, Object(WP_Post), Object(WP_Post))
#5 /public_html/wp-includes/post.php(4993): wp_insert_post(Array, false, true)
#6 /public_html/wp-admin/includes/post.php(453): wp_update_post(Array)
#7 /public_html/wp-admin/post.php(227): edit_post()
#8 {main}
thrown in /public_html/wp-content/plugins/wp-last-modified-info/inc/Core/Notification.php on line 114
Deactivating this plugin eliminates the problem. WordPress version 6.6.2, but the problem has been the same with a few earlier incremental releases too.
]]>Hello developer,
I want to disable updating the Last modified in wp-admin/edit.php when using Quick Edit.
My code works very good when I deactive your plugin. But when I enable your plugin is not. I use Quick Edit and Inline Edit (Admin Column Pro).
I don’t want to check the Lock the Modified Date for all posts. Please help me review your plugin and update the code.
function stop_modified_date_update( $new, $old ) {
$referer = wp_get_referer();
if (strpos($referer, 'wp-admin/edit.php') !== false && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest') {
$new['post_modified'] = $old['post_modified'];
$new['post_modified_gmt'] = $old['post_modified_gmt'];
}
return $new;
}
add_filter( 'wp_insert_post_data', 'stop_modified_date_update', 99, 2 );
Thank you!
]]>Does anyone know if it is possible to toggle off the LastMod date for categories like we do with posts?
]]>I have turned on drop cap in my theme (Blossom Travel Pro). When I then set Last modified to show up Before content the Drop cap is inserted in the Last modified info. Is there a way to fix this, with a css etc? Id also like to Last modified to be in italic style.
Any suggestion?
]]>I saved the settings as seen in the documentation and it’s not showing on a page I tried viewing it on.
]]>Hi
I am using W4 Post List plugin and their template will like below
<ul class="list-unstyled">
[groups]
<li><h4>[group_title]</h4>
<ol>
[posts]
<li>
[title] - [post_date format="d/m/Y"]
</li>
[/posts]
</ol>
</li>
[/groups]
</ul>
I tried to insert your template tag: %post_modified% after the [title] but it showing the code, it didn’t display the date.
Could you please give me a hint?
Thanks
]]>While the last updated date is working as expected on the front end, I am experiencing problems with the “Last Modified” column on the Pages edit listing on the back end. (/wp-admin/edit.php?post_type=page).
The date and time are correct in this column, but instead of displaying the name of the last person who most recently edited the page (an author) this column is displaying the person (an administrator) who edited the page previously.
I can see the correct author or admin name in the WordPress page revisions feature displaying the correct name.
It almost seems like the “Last Modified” column is ignoring the latest (author) changes in preference for the last administrator’s update.
]]>Can I get the custom css to change the font size please?
]]>I accidentally noticed that the sorting is different on my mobile device than on the desktop, and I don’t know why.
On the desktop, it sorts correctly by modified date.
On mobile devices, it appears that the latest posts since May are missing.
I have tried it on different devices and also cleared the cash.
I have this function in functions.php:
function pa_change_blog_module_order($query) {
$pac = get_query_var(‘post_type’);
if (‘post’ == $pac) {
$query->set(‘orderby’, ‘post_modified’);
$query->set(‘order’, ‘DESC’);
}
}
add_action(‘pre_get_posts’, ‘pa_change_blog_module_order’);
I use Loco Translate to customize or add missing translations of strings that come from your plugin. I noticed that strings, which appear in the Gutenberg editor (e.g. “Hide Modified Info on Frontend” in the meta box “Modified info”), are not translated, although they are listed in the POT file. Browsing the code of your plugin reveals that the strings in question come from a Javascript file:
wp-content/plugins/wp-last-modified-info/assets/block-editor/build/index.js
Maybe this helps to work out a solution:?https://localise.biz/wordpress/plugin/manual/json
]]>Hello Sayan,
Thanks for building the plugin.
However, after I followed the instruction and saved the setting, the frontend did not seems to work.
Even If I choose to replace the publish date, it became blank.
My edit plugin is Elementor, do you think it has anything to do with it?
Thank you
]]>Hi, it seems that orders on the woocommerce store now update the last modified date of the ordered products, it that something that i can disable? i need to only update the last modified date when an admin user actually updates the product.
Thanks
]]>Hi,
We have upgraded our server to PHP version 8.3 and are now experiencing compatibility issues with version 1.0.5 of your plugin. Could you please review this issue and release an update at your earliest convenience?
~Rohit
Hi, after editing the Modified date from the post edit screen and clicking “update”, the Modified date defaults to the current time instead of the specified time.
Thanks
]]>I have included a snipboard.io link here so you can see a screenshot of the error, as cannot attach a file, but I will write this out here too:
LevelAllWarningNoticeStrictDeprecatedMessageLocationCountComponentAllPlugin: seo-by-rank-mathPlugin: wp-last-modified-infoDeprecatedAutomatic conversion of false to array is deprecated-
Wplmi\C\B\BlockEditor->post_type_args()
apply_filters('register_post_type_args')
WP_Post_Type->set_props()
WP_Post_Type->__construct()
register_post_type()
Etn\B\Cpt->Etn\B\{closure}()
do_action('init')
1Plugin: wp-last-modified-info
It is not really causing me any issues at the moment, except for the problem it is highlighting in the logs but thought it might be useful if you have it, and if you fix it that would be great too.
Really appreciate the work you have done on this fantastic plugin!
]]>I get the following error message in my WordPress installation
Deprecated: Creation of dynamic property LastModifiedTimestamp::$defaults is deprecated in /var/www/html/public/wp-content/plugins/last-modified-timestamp/last-modified-timestamp.php on line 40
I’m using WordPress on:
Thanks for your help and this plugin ??
m.orange
I love this plugin and have had an excellent experience with it so far. One of my posts is not updating Google for some reason. It used to update it, but about a month ago it reverted back to some arbitrary date, somewhere around revision 7 or 8. Tried looking for any difference in this post and others as far as setting or boxes checked, but I just can’t find anything. Any suggestions would be greatly appreciated.
]]>Is it possible to show the last price to the new price as last modified?
]]>How can I locate first “last update date” and “published data” together at the top of the post side by side or onend at the same place. I am using generatepress. Thank you.
]]>Last Updated on 27. Februar 2024 by?TITECON
-> How can the language be changed from English to German? Thanks!
]]>I know how to sort by last modified date within the dashboard lists.
I want to produce a page listing all of a custom post-type with last modified date, ordered by last modified date? Is this possible without programming, and if so how?
Note that I do not want to change the “Default Frontend Post Sorting Order”. Thanks.
]]>Hi, I got this error today (after updating to 1.9.0):
Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 113 der Datei /home/poolfabi/www.poolfactory.at/wp-content/plugins/wp-last-modified-info/inc/Core/Notification.php verursacht. Fehlermeldung: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /home/poolfabi/www.poolfactory.at/wp-content/plugins/wp-last-modified-info/inc/Core/Notification.php:113
Stack trace:
#0 /home/poolfabi/www.poolfactory.at/wp-content/plugins/wp-last-modified-info/inc/Core/Notification.php(113): explode()
#1 /home/poolfabi/www.poolfactory.at/wp-includes/class-wp-hook.php(324): Wplmi\Core\Notification->email()
#2 /home/poolfabi/www.poolfactory.at/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /home/poolfabi/www.poolfactory.at/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /home/poolfabi/www.poolfactory.at/wp-includes/post.php(4729): do_action()
#5 /home/poolfabi/www.poolfactory.at/wp-includes/post.php(4862): wp_insert_post()
#6 /home/poolfabi/www.poolfactory.at/wp-admin/includes/post.php(453): wp_update_post()
#7 /home/poolfabi/www.poolfactory.at/wp-admin/post.php(227): edit_post()
#8 {main}
thrown
Best regards
]]>Hello,
My page cannot display the last updated date.
]]>Hi,
I am using the shopscape plugin by boldthemes. I have listed my blogs using grid in a regular page. Now, I would like to add last modified date into the blog grid. For that, I need to put the shortcode in shopscape.php file, that is template file. I have already added the shortcode over there.
The problem here is each blog post is showing the same date. Why? How to solve that?
]]>Hello, im working in a project that has a custom template and the last modified date is not showing up after properly setting up the plugin. We have disabled all other plugins and still not showing up. How can we debug further?
]]>I am using the latest version of WordPress (6.4.3) but experiencing a conflict issue.
When the plugin is activated, it causes the the posts page in the admin back end to display all the posts names in narrower columns so that the names that used to be on one line, is now displayed over say 3 lines. There are other plugins that also do this, and when each are activated, it causes a cumulative effect.
For example, if I have another plugin that causes this effect, when this plugin (the WP Last Modified Info plugin) is activated too, the columns become even more narrow so that the titles goes from originally being displayed as one line to over 3 lines to over 5 lines (or more) with a few words per line, eventually even 1 letter per line the more such plugins I activate or not.
Can you assist with this?
]]>Hello, I have a question about an issue that may be related to the theme I am using but, here is the issue:
I am using Bloglo theme by Peregrine Themes and using the latest version of WordPress (6.4.3). I have set the settings for WP Last Modified Info to display “before content” but it still displays after the content at the very end of the page. Wondering if you can help.
thank you.
]]>Hello,
Thanks for this great plugin, works great. What I would like to offer is a button visible on Frontend Post and Pages which updates on CLICK the last modified date of the same post/page.
Don’t know if this is already posible with this plugin or if it needs to be created, but I couldn’t find that.
Thanks
]]>How to show on homepage before excerpt?
Works fine on the single page, just not on the homepage
]]>I am using this plugin on Woocommerce in order to sort my products based on the last modified field. I am referring to the Woocommerce Admin section > products page:
https://www.mywoocommercedomain.com/wp-admin/edit.php?post_type=product&orderby=modified&order=desc
More specifically, when I modify a particular product’s variations prices (by variations I mean the product color variations: black, white, blue, etc), I expect the product whose variations prices I just modified to show up on the top of the sort results in my products page (in the URL above).
I am indeed observing this expected behavior when I modify the price for a general product that has no variations (the product shows up at the top of my products search results).
However unfortunately, for products with variations – updating the variation prices does not achieve this, the product’s “last modified” field is not updated, and so it does not show up at the top of my products search results.
The desired behavior is that if I update a product’s variations prices, then it will show up at the top of my search results, this seems like intuitive behavior to me.
I am assuming this is happening because the product variations are a different data table than the product itself, and so modifying the product variation prices does not update the product’s “last modified” timestamp.
It seems to me that a product’s “last modified” timestamp should indeed be updated when its variations prices are updated, so I would appreciate you support on this matter, thanks (:
]]>