• Resolved sothea53

    (@sothea53)


    When the Timber/Twig library plugin from Crocoblock is active, using a widget from Unlimited Elements causes a critical error on the page.
    == Error info ==
    An error of type E_COMPILE_ERROR was caused in line 328 of the file:
    …/public_html/staging/wp-content/plugins/crocoblock-timber-library/vendor/twig/twig/src/Extension/CoreExtension.php. Error message: Cannot redeclare twig_cycle() (previously declared in …/public_html/staging/wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/src/Resources/core.php:20)
    ==
    Any insights will be much appreciated.
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • heresthecavalry

    (@heresthecavalry)

    I’ve got the same error, a month on. Do you still maintain this plugin or reply to support topics? Is there going to be a fix? This is not the first time you’ve created a conflict with JetEngine.

    Plugin Contributor Adarsh Pawar

    (@axmusic)

    Hi @sothea53 & @heresthecavalry,

    Sorry for the delayed response.

    Could you please confirm which version of the Unlimited Elements for Elementor and Timber Library plugin you are using?

    I tested Unlimited Elements for Elementor (versions 2.0.1 through 2.0.6) together with Timber Library v1.23.4 from the WordPress plugin directory, and everything is working correctly on our end.

    Are you possibly using the Composer-based version of Timber instead of the ww.wp.xz.cn plugin version?

    Looking forward to your clarification so we can assist further.

    Best Regards!

    • This reply was modified 1 month, 3 weeks ago by Adarsh Pawar.
    Thread Starter sothea53

    (@sothea53)

    Hi @axmusic ,
    I mentioned about a conflict with JetEngine Timber Library plugin, but you tested another thing, that’s why you didn’t see the issue.

    How to install JetEngine Timber Plugin:
    – Install JetEngine
    – Go to JetEngine > Performance, then enable Timber/Twig Views > Install 2.x then save.
    – Test by creating a new page and drag-drop any widget from Unlimited Elements then view the page

    Look forward to your update.
    Thanks

    Plugin Contributor Adarsh Pawar

    (@axmusic)

    Hi @sothea53, @heresthecavalry,

    Thank you for your patience.

    We’ve investigated the issue and found that the conflict is not originating from Unlimited Elements. The error occurs because the Twig library is being loaded again without checking if it already exists, which leads to the redeclaration of Twig functions.

    In this case, the fix should be implemented on the Jet Engine Timber Library side by adding a proper check to prevent reloading Twig if it is already included.

    We recommend reaching out to their support team and sharing the error details so they can handle this accordingly.

    If needed, we’re happy to coordinate further from our side.

    Best regards

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

You must be logged in to reply to this topic.