Update spits out code
-
Have the same problem
Same here, code appears on the admin screen. Perhaps a character escape issue?
- This reply was modified 7 years ago by Workshopshed.
Here it shows both on admin screen and website (frontpage).
Have the same problem for me
Same problem here.
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.
Same problem here, on two blogs.
Where i can download the previous release?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_funcshow_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; } }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; } }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/Me too. I there a simple way to roll back?
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.
same here….
Yeah I had the same problem as well this morning. Any ideas on the turn around time for the update…?
- The topic ‘Update spits out code’ is closed to new replies.