Title: bajro's Replies | WordPress.org

---

# bajro

  [  ](https://wordpress.org/support/users/bajro/)

 *   [Profile](https://wordpress.org/support/users/bajro/)
 *   [Topics Started](https://wordpress.org/support/users/bajro/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bajro/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bajro/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bajro/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bajro/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bajro/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Sporty] Font face problem](https://wordpress.org/support/topic/font-face-problem-3/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/font-face-problem-3/#post-5470845)
 * Hello,
 * yes that would help, but on the plugin upgrade thoose changes will be lost. Is
   there any onther way to turn font-face off?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Permalinks 404 error](https://wordpress.org/support/topic/permalinks-404-error-9/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/permalinks-404-error-9/#post-5376801)
 * Yes, I understand. Above mentioned solution will be just fine. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Permalinks 404 error](https://wordpress.org/support/topic/permalinks-404-error-9/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/permalinks-404-error-9/#post-5376715)
 * Yes, it works in that way. Thank you!
    But it is only workaround because now 
   users should ask network admin for plugin activation. Is that the only way?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Permalinks 404 error](https://wordpress.org/support/topic/permalinks-404-error-9/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/permalinks-404-error-9/#post-5376705)
 * We have WP multisite setup with [Network Plugins](http://codex.wordpress.org/Multisite_Network_Administration).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Permalinks 404 error](https://wordpress.org/support/topic/permalinks-404-error-9/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/permalinks-404-error-9/#post-5376703)
 * No, it’s not active, and that is the problem. It is network activated.
 * > we don’t want to force all of our users (new sites) to use Polylang, and in
   > that case permalinks do not work by default after opening new site.
 * Rewrite rules for Post1 and Page2 are [here.](http://imgur.com/xq4umqS)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Permalinks 404 error](https://wordpress.org/support/topic/permalinks-404-error-9/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/permalinks-404-error-9/#post-5376680)
 * Sure; [http://bit.ly/1p1NpGR](http://bit.ly/1p1NpGR)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Better WordPress reCAPTCHA (with no CAPTCHA reCAPTCHA)] Multisite Master API Keys](https://wordpress.org/support/topic/multisite-master-api-keys/)
 *  [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/multisite-master-api-keys/#post-4891662)
 * > I will recheck this.
 * Can we do something more?
    If you want, you can contact me in PM and I’ll give
   you access so you can test it out.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Permalinks 404 error](https://wordpress.org/support/topic/permalinks-404-error-9/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/permalinks-404-error-9/#post-5376663)
 * Yes, we tested it with Twenty twelve and Twenty fourteen. There are no other 
   themes installed or activated. Still no luck. Can we do something more?
 * Thanks
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Hathor] Fatal error: get_header() undefined](https://wordpress.org/support/topic/fatal-error-get_header-undefined/)
 *  [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-get_header-undefined/#post-5352448)
 * Hello,
 * same problem here:
 * PHP Fatal error: Call to undefined function get_header() in […]/index.php on 
   line 1
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Local config file include](https://wordpress.org/support/topic/local-config-file-include/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/local-config-file-include/#post-5340566)
 * Hello,
 * i understand, thank you for explanation.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [/wp-login.php?action=postpass](https://wordpress.org/support/topic/wp-loginphpactionpostpass/)
 *  [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wp-loginphpactionpostpass/#post-5271602)
 * WP team, what do you think about this solution in wp-login.php:
 *     ```
       * @param int $expires The expiry time, as passed to setcookie().
       */
               $expire = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS );
       -       $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) );
       +       $secure = ($secure_cookie) ? ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ) : false;
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [/wp-login.php?action=postpass](https://wordpress.org/support/topic/wp-loginphpactionpostpass/)
 *  [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/wp-loginphpactionpostpass/#post-5271600)
 * We have the same problem in our environment. WP-team can you check this?
    Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Better WordPress reCAPTCHA (with no CAPTCHA reCAPTCHA)] Multisite Master API Keys](https://wordpress.org/support/topic/multisite-master-api-keys/)
 *  [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/multisite-master-api-keys/#post-4891658)
 * Unfortunately, this doesn’t work in our case. When a new blog is created, there
   is no row in database for recaptcha with name “_bwp\_capt\_general_” (and “_bwp\
   _capt\_version either_“) for that new blog.
    When you click “BWP reCAPT” on user
   interface, that creates above mention rows in database (table wp_$blogid_options),
   but without global keypairs. Can you check plugin (version 1.1.3) with multisite
   enviroment?
 * We have upgraded plugin with every new release, but with 1.1.3 that multisite
   feature doesn’t work anymore. Last version that worked was 1.1.0 (but in that
   version keypairs was stored differently).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Better WordPress reCAPTCHA (with no CAPTCHA reCAPTCHA)] Multisite Master API Keys](https://wordpress.org/support/topic/multisite-master-api-keys/)
 *  [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/multisite-master-api-keys/#post-4891656)
 * Hi,
 * We’ve created a function which sets recaptcha entry for every new blog (public/
   private keys and other options).
    Currently, with version 1.1.3 keypairs are 
   not automatically included for new blogs (WordPress multisite). For author (Khang
   Minh). Some of improvements that can be made with code below:
 *     ```
       <?php
   
       function cn_wpmu_create_blog ( $blog_id ) {
   
               global $wpdb;
   
               // get captcha private and public key from wp_options
               $wp_options = $wpdb->get_var("SELECT option_value FROM wp_options WHERE option_name LIKE 'bwp_capt_general'");
               $wp_options = unserialize($wp_options);
               $public_key = $wp_options['input_pubkey'];
               $private_key = $wp_options['input_prikey'];
   
               $default_bwp_settings = array(
                               'input_pubkey'          => $public_key,
                               'input_prikey'          => $private_key,
                               'input_error'           => '<strong>ERROR:</strong> Incorrect or empty reCAPTCHA response, please try again.',
                               'input_back'            => 'Error: Incorrect or empty reCAPTCHA response, please click the back button on your browsers toolbar or click on %s to go back.',
                               'input_approved'        => '1',
                               'enable_comment'        => 'yes',
                               'enable_registration'   => 'yes',
                               'enable_login'          => '',
                               'enable_akismet'        => '',
                               'use_global_keys'       => '',
                               'select_cap'            => 'manage_options' ,
                               'select_cf7_tag'        => 'bwp-recaptcha' ,
                               'select_response'       => 'redirect',
                               'select_position'       => 'after_comment_field' ,
                               'select_akismet_react'  => 'hold',
                               'hide_registered'       => '',
                               'hide_cap'              => '',
                               'hide_approved'         => ''
                       );
   
               $default_bwp_settings = serialize($default_bwp_settings);
   
               $wpdb->insert(
                       'wp_' . $blog_id . '_options',
                       array(
                               'option_name' => 'bwp_capt_general',
                               'option_value' => $default_bwp_settings,
                               'autoload' => 'yes'
                       )
               );
   
       }
   
       add_action ( 'wpmu_new_blog', 'cn_wpmu_create_blog' );
       ```
   
 * It would be ideal if you can make a check for keypairs (i.e. if they are exist
   in wp_config),
    set warnings in blogs defined language (WPLANG in wp_$blogid_options),
   make checkboxes (on user interface) for all options if global keypairs are used.
 * Thanks,
    Bajro
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Connect Matomo - Analytics Dashboard for WordPress] WP-Piwik network mode automatically create statistics](https://wordpress.org/support/topic/wp-piwik-network-mode-automatically-create-statistics/)
 *  Thread Starter [bajro](https://wordpress.org/support/users/bajro/)
 * (@bajro)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/wp-piwik-network-mode-automatically-create-statistics/#post-5002209)
 * Thanks for your response. In our case that’s not an option. Hope that feature
   above mention will be available soon.
 * Regards,
    Bajro

Viewing 15 replies - 1 through 15 (of 15 total)