[Closed] "?wpv_paged=2&wpv_view_count=2" not working anymore?

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 14 replies, has 3 voices.

Last updated by Adriano 4 years, 4 months ago.

Assigned support staff: Adriano.

Author
Posts
#306973

the code stopped working?
now my page can't load the next post via ajax? did the last update destroy this?

#307035

In other words : Which parameters to I have to add to the url to get the next and the previous page - btw. why isnt there a detailed changelog ?

#307185

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello and thank you for contacting Toolset support.

1)
*** Please take full backup of your database and website. ***
By reviewing your debug information I found that you are using outdated Toolset plugins. Could you please update all Toolset plugins to its latest official release. You can download all latest stable plugins from:
=> https://toolset.com/account/downloads/

2)
If your issue still persist:
Please send me a link where I can see your issue in action.

In order to investigate your issue if we require to check things on your install in order to see what could be going wrong there.

If you agree to this please use the form fields I have enabled below this comment box to provide temporary access details (wp-admin and FTP)?

I have set next reply as private.

#307276

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Unfortunately when I try to check your page and once I enter htaccess username and password it shows error:

Your access to this site has been limited

Your access to this service has been temporarily limited. Please try again in a few minutes. (HTTP response code 503)

Reason: Access from your area has been temporarily limited for security reasons

Could you please do needful on this and re-send me access details. I have set next reply as private.

#307452

Any advice on this one?

#307532

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

While debugging your issue I found that you are using 'generate_pagination' function within your functions.php file for your custom pagination which have wrong parameter values passed.

Could you please try to use following code snippet and check your issue.

add_shortcode('paginate-links', 'paginate_links_func');
function paginate_links_func($atts='') {
    global $WP_Views;
    $page = $WP_Views->get_current_page_number();
    if (!isset($page)){
        $page = 0;
    }
    $add_args = $_GET;
    if (!is_array($add_args)) {
        $add_args = array();
    }
    if (!array_key_exists('wpv_view_count', $add_args)) {
        $add_args['wpv_view_count'] = $WP_Views->get_view_count();
    }
    if (array_key_exists('wpv_paged', $add_args)) {
        unset($add_args['wpv_paged']);
    }
    $args = array(
        'base' => '%_%',
        'format' => '?wpv_view_count='.$add_args['wpv_view_count'].'&wpv_paged=%#%',
        'total' => $WP_Views->get_max_pages(),
        'current' => $page,
        'show_all' => False,
        'end_size' => 1,
        'mid_size' => 2,
        'prev_next' => True,
        'prev_text' => __('" Previous','ec'),
        'next_text' => __('Next "','ec'),
        'type' => 'list',
        'add_args' => $add_args,
        'add_fragment' => false
    );
    return paginate_links($args);
}
#307541

Thkans for this suggestion - but after changing the function the whole ajax loading doesn't work anymore. The JS expects the structure as it is.

Please just tell me with which URL parameters VIEWS needs to show the contents of the second page.
It was working fo years - with the latest updates it stopped working so I'm 100% sure that you changed the way how URL pagination parameters are processed.

Best
P.

#307574

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I have reported your issue to our next level support. Please be patient, wait for a reply from them and they will get in touch with you as soon as possible.

#308461

Any advice on this?
I'think this should not be to hard to answer ? Just a simple question - no need for super coing hero here - just a simple advice

#309003

Pleas provide support on this.

#309008

So i found this in wpv-filter_query.php :

/ Let URL pagination parameters set the page
	if (
		isset( $_GET['wpv_paged'] ) 
		&& isset( $_GET['wpv_view_count'] ) 
		&& esc_attr( $_GET['wpv_view_count'] ) == $WP_Views->get_view_count()
	) {
		$paged = intval( esc_attr( $_GET['wpv_paged'] ) );
	}
    $query = array(
            'posts_per_page'    => $posts_per_page,
            'paged'             => $paged,
            'post_type'         => $post_type,
            'order'             => $order,
            'suppress_filters'  => false,
			'ignore_sticky_posts' => true
    );

if I remove this line:

&& esc_attr( $_GET['wpv_view_count'] ) == $WP_Views->get_view_count()

everything on my site works as it used to.
But I don't want to modify core files, so please tell me what to do?

#309036

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

*** Please take FULL BACKUP of your database and your website.***

Could you please send me FTP access details.

I have set next reply as private.

#309041

I found the same part of code in Views 1.5.1 but here it is like_:

   if (isset($_GET['wpv_paged']) && isset($_GET['wpv_view_count']) && esc_attr($_GET['wpv_view_count']) == $WP_Views->get_view_count()) {
        $paged = intval(esc_attr($_GET['wpv_paged']));
    }

This is the proof that the function was changed.
I'm not sure what providing you FTP access would change on this topic?

Best
P.

#309044

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I would like to check your code in your functions.php file and in order to be of better help I want to change some code there.

Could you please send me FTP access details.

#309069

Adriano
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Peer,

I have been escalated to this thread. The first thing I'd mention is that the wpv_view_count parameter has been changed, indeed. It was number in the past and now it stores an unique Views identifier. It was needed because some issues reported due not having an unique identifier.

My first question is why do not use the default Views pagination shortcode? Is there a special reason?

The topic ‘[Closed] "?wpv_paged=2&wpv_view_count=2" not working anymore?’ is closed to new replies.