GithubHelp home page GithubHelp logo

deckerweb / connect-polylang-elementor Goto Github PK

View Code? Open in Web Editor NEW
16.0 2.0 6.0 2.39 MB

Connect the Polylang multilingual plugin with Elementor Page Builder: This plugin will make Elementor and Polylang show the correct language templates, especially with Elementor Pro Theme Builder. Plus: native Polylang Language Switcher Elementor widget, new Dynamic Tags, and Polylang links added to the Elementor Finder feature.

Home Page: https://wordpress.org/plugins/connect-polylang-elementor/

License: GNU General Public License v2.0

PHP 83.40% CSS 16.60%
elementor polylang elementor-page-builder page-builder wordpress-plugin multilingual templates widget language-switcher elementor-finder

connect-polylang-elementor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

connect-polylang-elementor's Issues

Issue with Polylang Connect and Elementor after Wordpress update to 5.7.1

Hi! Our Wordpress website has recently updated to 5.7.1, with Elementor Pro and Regular versions at 3.2.1 and Polylang Pro at version 3.0.3.

When we load our website now we get these error messages:
image

image

These errors disappear as soon as we deactivate the Polylang Connect for Elementor plugin, so we have identified that this is the issue.

We would very much like to keep using Polylang Pro with our Elementor website, and would love a fix to this issue, either by a update from the dev or if someone in the community knows of a workaround of some kind.

Elementor editor doesn't work on certain pages/template

I have installed the plugin after creating some pages, all the pages that I have created and translated before the plugin installed are broken (still apear just fine.) there is no option to edit them anymore in elementor as long as the plugin is activate..
currently I turn it of edit and bring it back.

in the console of pages of this kind I get this error:

Uncaught (in promise) TypeError: Cannot read property 'get' of undefined
at initSettings (editor.min.js?ver=2.8.5:2)
at initialize (editor.min.js?ver=2.9.5:7)
at initialize (editor.min.js?ver=2.8.5:2)
at i.h.Model (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,underscore,backbone,shortcode,utils,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[chunk_1]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:10)
at i [as constructor] (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,underscore,backbone,shortcode,utils,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[chunk_1]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:10)
at new i (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,underscore,backbone,shortcode,utils,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[chunk_1]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:10)
at new model (editor.min.js?ver=2.9.5:7)
at i._prepareModel (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,underscore,backbone,shortcode,utils,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[chunk_1]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:10)
at i.set (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,underscore,backbone,shortcode,utils,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[chunk_1]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:10)
at i.add (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,underscore,backbone,shortcode,utils,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload,jqu&load[chunk_1]=ery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable&ver=5.3.2:10)

And the elementor side bar is empty. and the page edit it self is also emtpy (when I click preview it shows the page content... just can't edit it.)

Fatal Error Uncaught Error: Call to undefined function DDW_Connect_Polylang_Elementor\Widgets\pll_the_languages()

Hello,

I'm Sebastien from Polylang Pro support.

One of our common customer is reporting us an issue when activating Polylang multiple Domain URL.

During the saving process, we deactivate Polylang by adding the ?deactivate-polylang=1 parameters to the URL.
It's done to be sure the domain used in the settings really exists and is reachable without Polylang.

Your plugin is testing if Polylang is activated... and it is, just several part are not loaded... and customers go through fatale:

[22-Apr-2020 13:11:03 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function DDW_Connect_Polylang_Elementor\Widgets\pll_the_languages() in /app/wp-content/plugins/connect-polylang-elementor/modules/widgets/polylang-language-switcher.php:273
Stack trace:
#0 /app/wp-content/plugins/elementor/includes/base/controls-stack.php(1946): DDW_Connect_Polylang_Elementor\Widgets\Polylang_Language_Switcher->_register_controls()
#1 /app/wp-content/plugins/elementor/includes/base/controls-stack.php(498): Elementor\Controls_Stack->init_controls()
#2 /app/wp-content/plugins/elementor/includes/base/widget-base.php(150): Elementor\Controls_Stack->get_stack()
#3 /app/wp-content/plugins/elementor/includes/base/controls-stack.php(291): Elementor\Widget_Base->get_stack()
#4 /app/wp-content/plugins/elementor/includes/base/controls-stack.php(2001): Elementor\Controls_Stack->get_controls()
#5 /app/wp-content/plugins/elementor/includes/base/controls-stack.php(1039): Elementor\Controls_Stack->sanitize_settings(Array)
#6 /app/wp-content/plugins/elementor/includes/base/co in /app/wp-content/plugins/connect-polylang-elementor/modules/widgets/polylang-language-switcher.php on line 273

We've found other users in the same kind of issue:
https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-pll_languages_list/

I attached a PR: #4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.