Okay
  Public Ticket #2965017
Polylang plugin affects Kalium theme
Closed

Comments

  • Orest started the conversation

    I try to make a two language setup for my test website using the Valium theme. And I used to work with Polylang plugin (it is supported by Valium theme as you mention). 

    But when the Polylang is activated, some parts of the theme just disappear... The block "Clients" just disappears when the plugin is activated. and when I deactivate the Polylang, then "clients" block is back... 

  •  1,558
    Laborator replied

    Hi Orest,

    Can you please share your site credentials here, because we need to login to your site and see this issue live. Your information is safe (private) in this thread.

    To include your credentials click Insert Credentials button in the editor toolbar. (See how)

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •   Orest replied privately
  •  1,558
    Laborator replied

    Hi Orest, 

    I have assigned this ticket to our developer for deeper investigation as it does seem to be an issue with the Polylang and Kalium, we will come back to you once we have a proper answer.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  • Orest replied

    Thanks Art for update,


    I hop that the timeframe is within short period. I will have to work on website while your developer investigates the case , so I hope it is fine with it. 

  • [deleted] replied

    Hi Orest,

    The Polylang plugin uses a WPML legacy function (like a middleware) which in combination with WPBakery function that we use: wpb_getImageBySize is causing this issue.

    I have modified this file of WPBakery:

    wp-content/plugins/js_composer/include/helpers/helpers.php:45

    And changed:

    $attach_id = apply_filters( 'wpml_object_id', $attach_id );

    to 

    $attach_id = apply_filters( 'wpml_object_id', $attach_id, 'attachment', true );

    And it fixed the issue. I will report this issue to WPBakery item page and hopefully they can take action on it quick.


    Here is the link of my question at item page comments section of WPBakery:
    https://codecanyon.net/comments/27834667

    Anyway, if they hesitate or take long to provide the fix you know the workaround for this, simply follow the steps above.

  • Orest replied

    Hi Arlind,

    thanks for the quick action. I haven't tested the WordPress yet and the functionality of the Polylang yet, but I have a couple of questions.

    I am not that technical in issues like this, but when the next update for WPBakery / Polylang come , then all your fixes will be overwritten, won't they? Then I probably have to change the whole site and run it on a Child Theme for Kalium? Website prototype  is on a testing location , but when it's ready to go live, I want to move everything on a main location and under https://biglakemedia.se - How will the fixes work after that relocation? 

    thanks

  • [deleted] replied

    Hi Orest,

    Sorry for the delay of reply but fortunately today WPBakery replied today and told that they will fix this issue:

    medium
    (view large image)

    Comment link: https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431/comments?page=1098&filter=all#comment_27834667

    So no worries for future updates of the WPBakery plugin because the fix will be included in future updates.

    If you have the same troubles after you move on main location I can help you fix this until WPBakery officially releases the fix.