• Resolved myblogisgreat

    (@myblogisgreat)


    Hi,
    The latest update prints out lots of code in the top of the webpage.
    De-activating the plugin goes back to normal again.

    Screen shot:
    2017-11-29_0748

    Kind regards
    Themis

Viewing 15 replies - 1 through 15 (of 29 total)
  • pepman

    (@pepman)

    Have the same problem

    Workshopshed

    (@workshopshed)

    Same here, code appears on the admin screen. Perhaps a character escape issue?

    Thread Starter myblogisgreat

    (@myblogisgreat)

    Here it shows both on admin screen and website (frontpage).

    welje

    (@welje)

    Have the same problem for me

    dijkenbouwer

    (@dijkenbouwer)

    Same problem here.

    Plugin Author Fernando Briano

    (@fernandobt)

    Can you please post the beginning of the code? It seems to be hidden under the admin bar in the first screenshot. I can’t see it on my testing blogs.

    ideeregalouomo

    (@ideeregalouomo)

    Same problem here, on two blogs.
    Where i can download the previous release?

    LordDunvegan

    (@lorddunvegan)

    Error ·GET /hymns/
    Class ‘LcpPaginator’ not found
    Nov 29th 07:29:25 utc
    P | Severity error.7c06aace6f78d0b2b949deead3cbefe1
    /var/www/hymnswithoutwords/wp-content/plugins/list-category-posts/include/lcp-catlist.php:436 · CatList::get_pagination
    /var/www/hymnswithoutwords/wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php:154 · CatListDisplayer::build_output
    /var/www/hymnswithoutwords/wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php:49 · CatListDisplayer::select_template
    /var/www/hymnswithoutwords/wp-content/plugins/list-category-posts/include/lcp-catlistdisplayer.php:30 · CatListDisplayer::display
    /var/www/hymnswithoutwords/wp-content/plugins/list-category-posts/list-category-posts.php:156 · ListCategoryPosts::catlist_func

    newnw

    (@newnw)

    show_pagination($params[‘pagination’])){ $lcp_paginator = ”; $pages_count = ceil ( $params[‘posts_count’] / # Avoid dividing by 0 (pointed out by @rhj4) max( array( 1, $params[‘numberposts’] ) ) ); $pag_output = ”; if ($pages_count > 1){ for($i = 1; $i <= $pages_count; $i++){ $lcp_paginator .= $this->lcp_page_link($i, $params[‘page’], $params[‘instance’]); } $pag_output .= ”
    “; // Add “Previous” link if ($params[‘page’] > 1){ $this->prev_page_num = intval(intval($params[‘page’]) – 1); $pag_output .= $this->lcp_page_link($this->prev_page_num , $params[‘page’], $params[‘instance’], $params[‘previous’] ); } $pag_output .= $lcp_paginator; // Add “Next” link if ($params[‘page’] < $pages_count){ $this->next_page_num = intval($params[‘page’] + 1); $pag_output .= $this->lcp_page_link($this->next_page_num, $params[‘page’], $params[‘instance’], $params[‘next’]); } $pag_output .= ”
    “; } return $pag_output; } } // char is the string from pagination_prev/pagination_next private function lcp_page_link($page, $current_page, $lcp_instance, $char = null){ $link = ”; if ($page == $current_page){ $link = ”
    $current_page
    “; } else { $server_vars = add_magic_quotes($_SERVER); $request_uri = $server_vars[‘REQUEST_URI’]; $query = $server_vars[‘QUERY_STRING’]; $amp = ( strpos( $request_uri, “?”) ) ? “&” : “”; $pattern = “/[&|?]?lcp_page” . preg_quote($lcp_instance) . “=([0-9]+)/”; $query = preg_replace($pattern, ”, $query); $url = strtok($request_uri,’?’); $protocol = “http”; $port = $server_vars[‘SERVER_PORT’]; if ( (!empty($server_vars[‘HTTPS’]) && $server_vars[‘HTTPS’] !== ‘off’) || $port == 443){ $protocol = “https”; } $http_host = $server_vars[‘HTTP_HOST’]; $page_link = “$protocol://$http_host$url?$query” . $amp . “lcp_page” . $lcp_instance . “=”. $page . “#lcp_instance_” . $lcp_instance; $link .= ”
    prev_page_num) { $link .= “class=’lcp_prevlink'”; } elseif ($page === $this->next_page_num) { $link .= “class=’lcp_nextlink'”; } $link .= “>”; ($char != null) ? ($link .= $char) : ($link .= $page); $link .= ”
    “; } // WA: Replace ‘?&’ by ‘?’ to avoid potential redirection problems later on $link = str_replace(‘?&’, ‘?’, $link ); return $link; } }

    GDM57

    (@gdm57)

    Same problem also in my website:

    pagination($params[‘pagination’])){ $lcp_paginator = ”; $pages_count = ceil ( $params[‘posts_count’] / # Avoid dividing by 0 (pointed out by @rhj4) max( array( 1, $params[‘numberposts’] ) ) ); $pag_output = ”; if ($pages_count > 1){ for($i = 1; $i <= $pages_count; $i++){ $lcp_paginator .= $this->lcp_page_link($i, $params[‘page’], $params[‘instance’]); } $pag_output .= ”

    “; // Add “Previous” link if ($params[‘page’] > 1){ $this->prev_page_num = intval(intval($params[‘page’]) – 1); $pag_output .= $this->lcp_page_link($this->prev_page_num , $params[‘page’], $params[‘instance’], $params[‘previous’] ); } $pag_output .= $lcp_paginator; // Add “Next” link if ($params[‘page’] < $pages_count){ $this->next_page_num = intval($params[‘page’] + 1); $pag_output .= $this->lcp_page_link($this->next_page_num, $params[‘page’], $params[‘instance’], $params[‘next’]); } $pag_output .= ”

    “; } return $pag_output; } } // char is the string from pagination_prev/pagination_next private function lcp_page_link($page, $current_page, $lcp_instance, $char = null){ $link = ”; if ($page == $current_page){ $link = ”
    $current_page
    “; } else { $server_vars = add_magic_quotes($_SERVER); $request_uri = $server_vars[‘REQUEST_URI’]; $query = $server_vars[‘QUERY_STRING’]; $amp = ( strpos( $request_uri, “?”) ) ? “&” : “”; $pattern = “/[&|?]?lcp_page” . preg_quote($lcp_instance) . “=([0-9]+)/”; $query = preg_replace($pattern, ”, $query); $url = strtok($request_uri,’?’); $protocol = “http”; $port = $server_vars[‘SERVER_PORT’]; if ( (!empty($server_vars[‘HTTPS’]) && $server_vars[‘HTTPS’] !== ‘off’) || $port == 443){ $protocol = “https”; } $http_host = $server_vars[‘HTTP_HOST’]; $page_link = “$protocol://$http_host$url?$query” . $amp . “lcp_page” . $lcp_instance . “=”. $page . “#lcp_instance_” . $lcp_instance; $link .= ”
    prev_page_num) { $link .= “class=’lcp_prevlink'”; } elseif ($page === $this->next_page_num) { $link .= “class=’lcp_nextlink'”; } $link .= “>”; ($char != null) ? ($link .= $char) : ($link .= $page); $link .= ”
    “; } // WA: Replace ‘?&’ by ‘?’ to avoid potential redirection problems later on $link = str_replace(‘?&’, ‘?’, $link ); return $link; } }

    GDM57

    (@gdm57)

    The error on log file:
    mod_fcgid: stderr: PHP Fatal error: Class ‘LcpPaginator’ not found in /data/vhosts/xxx.it/mysite/wp-content/plugins/list-category-posts/include/lcp-catlist.php on line 436, referer: https://mysite/

    rogerhyam

    (@rogerhyam)

    Me too. I there a simple way to roll back?

    GDM57

    (@gdm57)

    Waiting for a solution to the problem I solved by reloading the plugin backup to the previous version via ftp: the previous version works fine.

    SPRINGSTOFF-Berlin

    (@springstoff-berlin)

    same here….

    Jgrabowski1

    (@jgrabowski1)

    Yeah I had the same problem as well this morning. Any ideas on the turn around time for the update…?

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘Update spits out code’ is closed to new replies.