I get the following PHP warning (PHP 8.1):
Attempt to read property "ID" on null in /home/..../wp-content/plugins/dd-lastviewed/last-viewed.php on line 141'
Seems like it needs
if (isset($post) && $post !== null)
before
$this->currentPostId = is_singular() ? $post->ID : '';
Could you please let me know how this can be fixed?
]]>So I tweaked the settings and got this plugin to work great, but it only works when I’m logged in as admin
Logged out on other devices or in incognito on the same device that I’m signed in as admin, pages either don’t show up or default to what looks like a cached version
BONUS BUG: You can’t actually type in anything in the Exclude IDs box
]]>This is a great and well-done plugin, thanks a lot to the author!
However, I’ve yet to get it to reliably work when the WP site is cached.
Using WP Rocket or Cache Enabler and Autoptimize, the “visited” cookie is cached as well and DD Last Viewed either does not show posts that were displayed in another browser, or mixes up posts.
Excluding DD’s JS files from the cache doesn’t help, and neither does setting any of DDs ?Avoid Widget Caching? settings.
]]>Does not show post thro`Show me the error
No options set yet! Set the options in the widget
And everything is configured in the widget, I don’t know what it can be. Help.`ugh elementor
]]>Thanks for the plugin. Is it possible to show product prices?
]]>I am calling the plugin directly on Elementor page but it’s saying
no options set yet! set the options in the widget
I am trying to use it through Shortcode as well but it’s saying
]]>no options set yet! set the options in the widget
Hello
I would like to limit the number of results to 3. Which shortcode to add?
[dd_lastviewed widget_id=”2″ ???]
Regards
Leo
Thank you for this plugin.
We would like to show recently viewed pages on only one specific sepearate page using the shortcode. We don’t want to show recently viewed pages in the footer of every page.
Is this possible?
Our theme only allows widgets in the footer, but we do not want to show the recently viewed pages list on the footer of every page and we don’t want to list 1800 pages as excluded.
Thank you for your help.
Marty
]]>Hi,
This plugin slows down the website approx 1,1 sec. We have about 80 plugins on our site and this plugin stands for a very big % of FLT.
Is it possible to make any speedoptimization for the plugin? Would be very grateful for that! Thanks in advance.
]]>I inserted the widget to the standard WordPress sidebar, not Divi sidebar.
The list of last viewed posts appears (image + title).
But only image and title, links over image and title to the posts listed in the widget don’t exist.
I use Divi Theme.
Here is the code inspected:
==================
<li class=”lastViewedItem clearfix”>
<div class=”lastViewedThumb”></div>
<div class=”lastViewedContent”>
<h3 class=”lastViewedTitle”>Icelandic diaries, how was it really? part 1</h3></div>
==================
]]>The save button does not work on wp-admin/widgets.php
Request :
widget-dd_last_viewed[2][lastviewedTitle]: Моя активность
widget-dd_last_viewed[2][lastViewed_total]: 5
widget-dd_last_viewed[2][selection][]: post
widget-dd_last_viewed[2][lastViewed_showPostTitle]: on
widget-dd_last_viewed[2][lastViewed_lv_link_title]: on
widget-dd_last_viewed[2][lastViewed_showThumb]: on
widget-dd_last_viewed[2][lastViewed_lv_link_thumb]: on
widget-dd_last_viewed[2][lastViewed_thumbSize]: thumbnail
widget-dd_last_viewed[2][lastViewed_content_type]: excerpt
widget-dd_last_viewed[2][lastViewed_truncate]: 78
widget-dd_last_viewed[2][lastViewed_linkname]: More
widget-dd_last_viewed[2][cookie_lifetime]: 100
widget-dd_last_viewed[2][cookie_timeformat]: days
widget-dd_last_viewed[2][cookie_samesite]: None
widget-dd_last_viewed[2][cookie_secure]:
widget-dd_last_viewed[2][lastViewed_ajaxLoad]: on
widget-dd_last_viewed[2][lastViewed_cookieByJs]: on
widget-id: dd_last_viewed-2
id_base: dd_last_viewed
widget-width: 250
widget-height: 200
widget_number: 2
multi_number:
add_new:
action: save-widget
savewidgets: 8d7bfe47e9
sidebar: personal_sidebar
Response
502 Bad Gateway
nginx/1.10.3 (Ubuntu)
Form :
Image form
UI Elements problem
Screenshot
UI Elements 2
Thanks for this cool plugin!
I came across a limitation when the site is embedded in an external site the cookies do not work, after doing a bit of research found that this is a change on the way Google Chrome works with cookies ref.
The solution is to add this “; SameSite=None; Secure” when setting the cookie on the file js/ddLastViewedFront.min.js, I tried it and it works, putting it here just in case is helpful to someone and hopefully it will be integrated into the main plugin soon.
// the complete unminified version on js/ddLastViewedFront.js would be
document.cookie = cookie['name'] + "=" + (cookie['list']) + "; expires=" + expires + "; path=" +cookie['path'] + "; SameSite=None; Secure";
I’m using the Set cookie by Javascript option so the above code works, a similar change (add SameSite=None; Secure) needs to be made on the PHP side to make it work as well.
Here is the change on PHP side, last-viewed.php line 150:
from
setcookie($cookie['name'], $cookie['list'], $cookie['expire'], $cookie['path']);
to
setcookie($cookie['name'], $cookie['list'], array('expires' => $cookie['expire'], 'path' => $cookie['path'], 'samesite' => 'None', 'secure' => true));
Hi,
The plugin does exactly what I was looking for.
But it completely freezes all the buttons on the widget setting page. Everything on the page is blocked.
Nothing happens when I click on an arrow for example.
Everything returns to normal once the plugin is deactivated.
Regards
This problem only occurs when cookie is set from php. In javascript when “Set cookie by Javascript” this problem doesn’t happen. When a user hits a link sometimes the plugin create a second link in the section “last viewed” that the visitor haven’t visited.
]]>My site shows posts in chronological order, rather than reverse chronological order. How can I use, or modify to use, DD Last Viewed to bookmark for my readers which post they last viewed? Alternatively, is there another plugin that accomplishes this?
]]>Hello, I am facing the issue with your plugin.
the function itself is very good though,
the link is different from actual post.
in this page, the type of article is about post, product.
but post link seems different link of product.
how could I fix this issue?
thanks.
]]>Hello, I cannot use the plug-in in Elementor Pro. The fields for configuring the plug-in are all buggy, as shown in the image:
https://drive.google.com/file/d/1myZDZPRNtf9mDy5AoR7BVa5xe85bAKvm/view?usp=sharing
And even checking the options, no post appears.
]]>The plugin works as expected, when the user is logged in. When the user is logged out, the recently viewed posts do no populate.
Screenshot of console errors (Chrome in MacOS X):
https://snipboard.io/jpKf7c.jpg
Screenshot of widget settings:
https://snipboard.io/HDqr0v.jpg
Running:
WordPress 5.4.1
PHP 7.4
Divi Theme 4.4.7
Hello,
I have latest WP version and latest version of your plugin, installed on a server with php 7.3 and I get this errors:
Undefined index: wp_inactive_widgets in /home/rtec3980/public_html/home/wp-content/plugins/dd-lastviewed/last-viewed.php on line 582
Undefined index: lastViewed_ajaxLoad in /home/rtec3980/public_html/home/wp-content/plugins/dd-lastviewed/last-viewed.php on line 461
Undefined index: lastViewed_cookieByJs in /home/rtec3980/public_html/home/wp-content/plugins/dd-lastviewed/last-viewed.php on line 462
Undefined variable: perma in /home/rtec3980/public_html/home/wp-content/plugins/dd-lastviewed/dd_templates/lastviewed-widget.php on line 72
Can you help me to fix this?
Thank you!
Seby
Does the plug-in allow to display the last posts visited by the user? That is, the last links he visited on the site. It’s possible?
I noticed that the plugin has a bug in Elementor, is there a correction forecast?
Thanks.
]]>I get these with debugging on:
Notice: Undefined index: cookie_lifetime_checked in .com/wp-content/plugins/dd-lastviewed/last-viewed.php on line 121
Notice: Undefined index: cookie_lifetime in .com/wp-content/plugins/dd-lastviewed/last-viewed.php on line 122
Notice: Undefined index: cookie_timeformat in .com/wp-content/plugins/dd-lastviewed/last-viewed.php on line 123
Notice: Undefined index: cookie_lifetime_checked in .com/wp-content/plugins/dd-lastviewed/last-viewed.php on line 121
Notice: Undefined index: cookie_lifetime in .com/wp-content/plugins/dd-lastviewed/last-viewed.php on line 122
Notice: Undefined index: cookie_timeformat in .com/wp-content/plugins/dd-lastviewed/last-viewed.php on line 123
]]>
Hi @mosterd3d,
First of all, thank you for the plugin, really cool!<br>
I’ve read previous topics and realized you are the perfectionist type, so I’m going to abuse this (lol).<br>
I’m making a listing website with MyListing Theme, and have tried to implement your plugin in my site. The cool thing is that your plugin understands “listings” and I can choose to only show last viewed listings; Bravo!<br>
The problem is with the image, this custom post type “listing” doesn’t have a header image. They have cover image and I hope I can show the cover image as the image in last viewed widget.<br>
Can you please help with this or give me a lead? (I’m a non-techie though!)<br>
Thank you in advance!
Have a great day
Hi, since version 2.5.2, the plugin dont work with WP Super Cache or any other caching plugin. Because you use PHP to set the cookie.
I have a big website and i can not renounce of a caching plugin.
PLZ, can you add in the next version, set cookie with JS or PHP ?? PLZ,PLZ,PLZ ??
Regards ??
]]>I wish like to reopen this issue by robruifrok (@robruifrok) months ago:
“I’m using your widget only showing post titles with link, which works as expected. However when I add some additional info to the content using the_content filter, the links all point to the url of the currnt page. When I add the additional info in the template everything works as it should.”
Recently downloaded your plugin, by the way, thanks for taking the time to code it, is awesome!
]]>Hi I was wondering if it would be possible to save the user’s previously viewed content in the user’s account. Right now if a logged in user views content but then logs in from a different device then nothing will be shown.
Thanks!
]]>Using your plugin I get this error
Function create_function() is deprecated
in file
wp-content/plugins/dd-lastviewed/last-viewed.php:444
I am using the latest version wordpress, php 7.2
]]>I get the following notice
Notice: Undefined offset: 0 in C:\xampp\htdocs\fysiocursus\wp-content\plugins\dd-lastviewed\last-viewed.php on line 272
]]>Hello. I’ve active the plugin, set the settings, but page’s image or video’s image doesn’t show. I can see only the titles, but i cannot make the thumbnails to work.
]]>I’m using your widget only showing post titles with link, which works as expected. However when I add some additional info to the content using the_content filter, the links all point to the url of the currnt page. When I add the additional info in the template everything works as it should.
]]>Not sure why the limit is set to 10, I have to go into code and change to higher. I need 30 to show for this project. Please increase the limit in the widget admin settings counter from 10 to at least 100. Thank you!
]]>