Home › Forum › Plugin e temi di WP › WP-PageNavi: errore fatale
-
AutorePost
-
-
12 Agosto 2010 alle 18:21 #14731TykiMikkPartecipante
ancora problemi…
Ho installato una skin molto carina e la stavo personalizzando quando mi sono accorto che, selezionando un qualsiasi tags, a fondo pagina non mi compare il page navi (tipo 1 2 3 4 … 9 10 11 Successiva »)
Cercando sul forum ho letto del plugin WP-PageNavi e l’ho installato, ma quando ho provato ad attivararlo mi ha generato un errore fatale….
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /xxxx/wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 181
Sono quindi andato a controllare il file…
### Function: Page Navigation: Drop Down Menu (Deprecated)
function wp_pagenavi_dropdown() {
wp_pagenavi();
}
class PageNavi_Core {
static $options;
function init($options) {
self::$options = $options;
add_action(‘wp_print_styles’, array(__CLASS__, ‘stylesheets’));
add_filter(‘previous_posts_link_attributes’, array(__CLASS__, ‘previous_posts_link_attributes’));
add_filter(‘next_posts_link_attributes’, array(__CLASS__, ‘next_posts_link_attributes’));
}
function stylesheets() {
if ( !self::$options->use_pagenavi_css )
return;
if ( @file_exists(STYLESHEETPATH . ‘/pagenavi-css.css’) ) {
$css_file = get_stylesheet_directory_uri() . ‘/pagenavi-css.css’;
} elseif ( @file_exists(TEMPLATEPATH . ‘/pagenavi-css.css’) ) {
$css_file = get_template_directory_uri() . ‘/pagenavi-css.css’;
} else {
$css_file = plugins_url(‘pagenavi-css.css’, __FILE__);
}
wp_enqueue_style(‘wp-pagenavi’, $css_file, false, ‘2.70’);
}
function previous_posts_link_attributes() {
return ‘class=”previouspostslink”‘;
}
function next_posts_link_attributes() {
return ‘class=”nextpostslink”‘;
}
}
la 181 è quella in grassetto, e dato che non me ne intendo non so come fare. Qualcuno saprebbe aiutarmi?
-
12 Agosto 2010 alle 18:30 #76155je92Partecipante
non so se c’entra ma il plugin richiede PHP 5 …controlla che versione uilizza il tuo hosting
una valida alternativa è WP-Paginate
-
12 Agosto 2010 alle 18:44 #76156TykiMikkPartecipante
Argh… Io non lo so proprio se ho PHP 5 e non so come vederlo.
Per il WP-Paginate, ci ho già provato ma non va. Ho installato e settato tutto, ma non sembra funzionare.
La skin è Illacrimino di Design Disease. Sono su tophost
EDIT
dal Cpanel del mio host ho settato PHP5, ma la skin genera errori. Non ci sono altri plugin che offron la stessa funziona? Vorrei evitare di settare PHP5, perché altrimenti un altro script installato sul mio host non funziona.
-
12 Agosto 2010 alle 22:47 #76158TykiMikkPartecipante
Ok credo di aver risolto, ho modificato pesantemente la skin e con WP-Paginate ora funziona tutto.
Un sentito ringraziamento a je92
-
13 Agosto 2010 alle 19:43 #76223je92Partecipante
prego
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.