• Hi, today i was uploated polylang to new wersion. Now my website doesn’t work ;-(

    I have error at line:

    <div id="status">
    <?php pll_e('?adowanie'); ?> //ERROR
    </div>

    Anybody can help me?

    This is my function.php:

    if ( ! function_exists( 'mvaculik_setup' ) ):
    
    	function mvaculik_setup() {
    
    		add_theme_support( 'post-thumbnails' );
    		set_post_thumbnail_size(720,176,true);
    		add_image_size( 'gallery-thumb', 176, 131, true );
    		pll_register_string('Brak', 'Brak');
    		pll_register_string('?adowanie', '?adowanie');
    		pll_register_string('Naglowek', 'Naglowek');
    		pll_register_string('Kluby', 'Kluby');
    		pll_register_string('Patronat medialny', 'Patronat medialny');
    		pll_register_string('G?ówny partner', 'G?ówny partner');
    ...
    }
    
    	endif;
    	add_editor_style('style.css');
    add_action( 'after_setup_theme', 'mvaculik_setup' );

    https://www.ads-software.com/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    While updating Polylang, the functions pll_e, pll_register_string, etc… aren’t available. So you must test for the presence of these functions before using theme otherwise your site will break at each update.

    if (function_exists('pll_register_string')) {
    // do what you want
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with last update’ is closed to new replies.