Viewing 15 replies - 16 through 30 (of 55 total)
  • Thread Starter lupach

    (@lupach)

    Hi there!, I updated and then checked the code and saw you changed the function so I dont have to anymore.
    Sadly, it didn’t work. It still shows no data. daily, monthly or all time, it only works if I use the default wpp shortcode
    This is the link https://vif.com.mx/site/

    Plugin Author Hector Cabrera

    (@hcabrera)

    I updated and then checked the code and saw you changed the function so I dont have to anymore.

    Nope, I didn’t. This is what’s happening:

    Fatal error: Call to a member function get_default_language() on a non-object in /absolute/path/to/wp-content/plugins/wordpress-popular-posts/wordpress-popular-posts.php on line 1361

    WPP isn’t collecting any data because of Polylang. Make sure you make the change I suggested before. I may add an extra check for Polylang on a future release so you don’t have to manually patch it everytime.

    Thread Starter lupach

    (@lupach)

    oh my bad then, I changed it again to the suggestion, but still doesn’t display any results

    Plugin Author Hector Cabrera

    (@hcabrera)

    Are you sure? I still see the error message.

    Thread Starter lupach

    (@lupach)

    well, yeah, it looks like this now

    if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id') ) {
    				$wpml_options = get_option( 'icl_sitepress_settings' );
    				$id = icl_object_id( $id, get_post_type( $id ), false, $wpml_options['default_language'] );

    Plugin Author Hector Cabrera

    (@hcabrera)

    Now it is working, but the HTML output is wrong. Are you using a custom version of the plugin? There are some changes I made recently that I don’t see on your site.

    Thread Starter lupach

    (@lupach)

    Nop I am just using out of the box except for the change you told me to do. I am running some experiments and came on to this,
    [wpp header_start=”<h2>” header_end=”<h2>” order_by=”views” title_length=25 excerpt_length=55 range=”monthly” limit=12 post_html=”<li class=’lista’>{thumb} {text_title}
    <p>{summary}</p> “]
    This shortcode (which is the one I had running before it all went south) just shows a bunch of “

    [wpp header_start=”<h2>” header_end=”<h2>” order_by=”views” title_length=25 excerpt_length=55 stats_views=1 stats_date=1 range=”monthly” limit=12 ]
    and this one shows data, but it shows the daily posts. If I change the range to “all” it still only shows daily.

    Ok I went ahead and deleted the ” ” and now it shows the proper time range, I guess I am reading the parameters cheatsheet wrong, but the post_html tag still only shows the “, if I delete them nothing displays

    Thread Starter lupach

    (@lupach)

    post_html is definitely a problem here, because I used to be able to insert classes in the html mark up and not anymore, also I tried a simple way of doing it:
    post_html=<li>{title}{thumb}</li>
    and it only displays the tittle inside an anchor, and then another anchor but empty, I skimmed through the code and I couldn’t quite get your approach there because all I saw there were anchor, not an img or a class to be able to use it to print a background or anything

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey there!

    I’ll be a bit busy in the next few days, so I’m probably going to be working on this during the weekend. You’re using the shortcode on a text widget, I assume?

    Thread Starter lupach

    (@lupach)

    Hello!
    I figured, dont worry I will be hammering on it for a while too and see what happens.
    No, not a widget actually, a page. It looks like that because I am using ultimate shortcodes to do the tabs

    Plugin Author Hector Cabrera

    (@hcabrera)

    Does it still happen if you use the shortcode on an actual page, no plugin involved?

    Thread Starter lupach

    (@lupach)

    Yes it still happens when I use it without other shortcodes

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey there!

    Sorry I took so long to reply. The last few weeks have been quite busy and we’re also in the process of moving out of our current office to a new one. It’s been crazy!

    Anyways, I tested your shortcode (the one that outputs a bunch of single quotes) and it works just fine for me.

    Thread Starter lupach

    (@lupach)

    Hello!
    Dont worry I understand, things have been super crazy over here too, many projects to deliver before the year ends.

    mmm I see, the only difference I have seen in the site is that someone started using W3 Total cache, but it was placed long before the shortcode crashed on me, could that be the issue? Im not fond of this cache plugins

    Plugin Author Hector Cabrera

    (@hcabrera)

    W3 Total Cache should work fine with WPP – or at least no one has reported any issues with it until now. Just to be safe and make sure, try clearing W3TC’s cache and see if it helps.

Viewing 15 replies - 16 through 30 (of 55 total)
  • The topic ‘Sorry no data’ is closed to new replies.