Tagged: 

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #5349
    andre2948
    Participant

    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.

    #5351
    VineThemes
    Keymaster

    Hello 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 box

    Thanks

    #5396
    andre2948
    Participant
    This reply has been marked as private.
    #5397
    VineThemes
    Keymaster

    Hello,

    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

    #5398
    andre2948
    Participant

    Hello,

    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,
    AP

    #5399
    VineThemes
    Keymaster

    We 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

    #5400
    VineThemes
    Keymaster

    We’re now connecting you through Skype for further communication.

    #5402
    andre2948
    Participant

    Posting 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?

    #5407
    VineThemes
    Keymaster

    Hello 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

    #5408
    andre2948
    Participant

    Hello,
    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,
    AP

    #5418
    andre2948
    Participant

    Hello,

    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.
    #5420
    andre2948
    Participant

    Hello,

    can you kindly provide updates on this matter?
    Kind regards,

    #5422
    achilles7
    Participant

    Hi,

    I’m also interested on this. I have the same problem on my client’s site.
    Share solution pls

    Thank you

    #5438
    VineThemes
    Keymaster

    Thanks 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.
    #5443
    andre2948
    Participant

    Awesome!
    It finally works 😀

    Thank you guys, well done.
    AP

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.
X
Downloading...
As you need our Theme, we need your SUPPORT. Please Follow us on Facebook :)
Need all features of the Premium theme? Purchase to get Premium version of the theme and also get our Top Notch Support with it.