Tagged: Widget
- This topic has 15 replies, 4 voices, and was last updated 2 years, 8 months ago by savoryprofile.
-
AuthorPosts
-
February 7, 2022 at 9:42 pm #5349andre2948Participant
Hello,
as the title says, unfortunately this widget is showing 0 articles on my site. I inspected the console, in order to check for errors and such, but nothing interesting. Any idea of the dependencies?
It would also be good having more configuration/modification options, since the only one is just for the number of articles.
Thanks,AP
PS: Obviously I’m talking about the premium/bought theme.
February 8, 2022 at 5:35 pm #5351VineThemesKeymasterHello Andre,
We’ll look into your issue.
Please let us know your website credentials and we’ll check the issue. Please share your website credentials by selecting Set as Private Reply to your comment, so that no one publicly see your credentials. If you don’t want to give us your credentials then you can use this plugin for temporary login.
How to Create Temporary Login for WordPress without Password
Don’t forget about “Set as private reply” at the bottom of the message boxThanks
February 8, 2022 at 6:20 pm #5396andre2948ParticipantThis reply has been marked as private.February 8, 2022 at 8:42 pm #5397VineThemesKeymasterHello,
Okay we saw the problem, we need to access your file manager to enable debugging so that we can check the issue and fix it. Please share your cpanel or file manager credentials. Thanks
February 8, 2022 at 9:52 pm #5398andre2948ParticipantHello,
please kindly explain the required steps to enable debugging on your theme, as it can be definitely useful for other customers. Also, please share the details of what do you need and which log-files you are interested in.
Thanks,
APFebruary 8, 2022 at 10:57 pm #5399VineThemesKeymasterWe need to add debug code in wp-config file to switch on the debug and then we can find out the errors. You can also add the debug code yourself. Here is the debug code which you want to add just before That’s all, stop editing! Happy publishing. to your wp-config.php file in your file manager:
define( ‘WP_DEBUG’, true );
Please take backup of the file first before editing. Thanks
February 8, 2022 at 11:06 pm #5400VineThemesKeymasterWe’re now connecting you through Skype for further communication.
February 9, 2022 at 6:42 pm #5402andre2948ParticipantPosting here, for every other customer in need.
VineThemes:
Hello dear, we tried but unfortunately it is not working on your website. We don’t know what is happening because it is working fine on our live demo also on our other client website. There must be some plugin that is conflicting.But how is possible that there’s no way of identifying the root cause? Do you have any debug widget I can install to let the browser console reporting at which step it blocks? It seems the PHP code is not executed at all and the widget content is empty.
Any plans to improve the logic and release updates?
February 10, 2022 at 12:52 pm #5407VineThemesKeymasterHello dear,
You’ve installed so many plugins and hence some plugin must be conflicting the code, so we suggest you to please disable plugins and check if it is working or not.You told us not to edit anything and after some time you revoke our admin rights hence we’re bounded to check the issue. You’ll have to be patient until we found out the issue.
If you want to do things yourself, then we would suggest you to please first deactivate cache plugin by purging the cache of whole website, then after that one by one deactivate all other plugins so that you can find out the plugin that is causing the issue.
Thanks
February 10, 2022 at 3:58 pm #5408andre2948ParticipantHello,
clearly you can agree with me that asking for website and FTP credentials is not a common way of providing assistance for troubleshooting, or at least it’s odd if you consider how competitors and players of your same industry are doing that 🙂
But aside from this, I kindly asked to not apply changes and the first thing you did was adding WP FileManager without my consent. Then access to FTP was provided and after doing some troubleshooting activity you disappear without leaving a message as status update. One could find it not really professional. But I don’t want to argue, it is what it is.Now for the technicalities: I thought that local cache (page cache/Html cache) could be the issue, but in fact I am not using that. Autoptimize is just minifying CSS and js while leaving the page content intact.
– Is that any js or other library or dependency that your widget does use?
– Do you have a test php code that I can put in your widget to produce a verbose log?
– Can you explain the widget logic? Maybe there’s something wrong with that: are you checking posts with comments or just the ones with views?Thanks, I’ll conduct further testing with plugins in the meantime,
APFebruary 14, 2022 at 5:25 am #5418andre2948ParticipantHello,
I tried doing troubleshooting on my own and basically tried all the possible options: disable plugins, themes, etc.
Nothing changed.
I ultimately edited your widget php code and finally partially succeeded.
At your WP_Query statement I changed the ignore sticky posts number from 1 to 0 and the widget finally showed results. Problem is that it only showed the 2 sticky posts I have on my website.Please find attached the evidence. It’s probably something wrong with how you are querying WordPress, because normally it doesn’t return any post.
The important this is that you now have a proof that my website is working.
Now, can you please help and post a workaround for your query?Thanks
Attachments:
You must be logged in to view attached files.February 16, 2022 at 4:16 am #5420andre2948ParticipantHello,
can you kindly provide updates on this matter?
Kind regards,February 17, 2022 at 12:33 am #5422achilles7ParticipantHi,
I’m also interested on this. I have the same problem on my client’s site.
Share solution plsThank you
February 17, 2022 at 4:24 pm #5438VineThemesKeymasterThanks for pointing out the bug in the theme.
There are some code additions in some files for making the popular post widget to work.
1. single.php file
You need to add this line of code:
<?php foodicious_setCTcounterViews(get_the_ID()); ?>
just before this line: <div <?php post_class(‘post’); ?>>2. functions.php file
You need to add a function for counting views by adding the below given block of code in the functions.php file:
function foodicious_setCTcounterViews($postID) {
$views_key = ‘post_views_count’;
$count = get_post_meta($postID, $views_key, true);
if($count==”){
$count = 0;
delete_post_meta($postID, $views_key);
add_post_meta($postID, $views_key, ‘0’);
}else{
$count++;
update_post_meta($postID, $views_key, $count);
}
}
You can add this function just after this line of code: remove_action( ‘wp_head’, ‘adjacent_posts_rel_link_wp_head’, 10, 0);
We’ve also updated the theme to the latest version. You can download the theme files and use them.
- This reply was modified 2 years, 10 months ago by VineThemes.
February 17, 2022 at 7:44 pm #5443andre2948ParticipantAwesome!
It finally works 😀Thank you guys, well done.
AP -
AuthorPosts
- You must be logged in to reply to this topic.