CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Language and Locality »
  • Francophone User Group (Moderators: mathieu, xavier) »
  • l'installation de Polylang causant des problèmes
Pages: [1]

Author Topic: l'installation de Polylang causant des problèmes  (Read 396 times)

chris

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: WordPress
  • MySQL version: MySQL5
  • PHP version: 5.5
l'installation de Polylang causant des problèmes
August 30, 2015, 09:03:00 am
Using CiviCRM version 4.5 on Wordpress Version 4.3--no issues for 6 months. BUT, after recently installing Polylang version 1.7.9 (to add CA-fr to CA_en site) I get "You do not have permission to execute this url." when attempting to access CiviCRM "Administer" functions, i.e.:

http://website.com/en/?page=CiviCRM&q=civicrm/admin/configtask&reset=1

though other CiviCRM functions are fine, i.e.:

http://website.com/en/?page=CiviCRM&q=civicrm/contact/search&reset=1

Following suggestions for similar issues, I have tried enabling the following lines in civicrm.settings.php

define('CIVICRM_LANGUAGE_MAPPING_EN', 'en_CA');
define('CIVICRM_LANGUAGE_MAPPING_FR', 'fr_CA');

And adding this line to wp-config.php

define('CIVICRM_LATE_LOAD', 1);

With no effect.

Any and all help appreciated.

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: l'installation de Polylang causant des problèmes
August 30, 2015, 10:31:08 am
Hi Chris,

Polylang is not yet officially supported by CiviCRM, but I guess the current implementation (which was made for WPML) should work for Polylang too, in theory (CRM/Utils/System/WordPress.php function getUFLocale).

The error is a bit weird because the error message you mention seems to be used only when the CiviCRM menu and caches are rebuilt. The code checks to make sure that the user has the "administer CiviCRM " permission. If it got that far, it should normally mean that everything to process the page request went well.

Can you double-check just to make sure that this problem exists only since you enabled the plugin?

I can do a few tests, but I have to setup a new WP test environment and it may take me a while until I get to it, but otherwise would love to officially support Polylang.

Mathieu
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Language and Locality »
  • Francophone User Group (Moderators: mathieu, xavier) »
  • l'installation de Polylang causant des problèmes

This forum was archived on 2017-11-26.