Forum Replies Created

Viewing 15 replies - 1 through 15 (of 363 total)
  • Plugin Author Gantry

    (@gantry)

    @mikelimit9999

    We’re not seeing this issue in our test environment, Can you check the following:

    1. What PHP version are you using? Gantry 5.5.22 works best with PHP 7.4–8.2.
    2. Are the /templates/, /cache/, and /logs/ folders writable by the server?
    3. Have any theme files (like layout.yaml or particle YAML files) been edited recently? (you can download the latest theme Helium or hydrogen from https://gantry.org/downloads
    4. When you try to save an Atom, can you open the browser’s developer tools (F12), go to the Network tab, and let us know if any request shows an error?
    5. If possible, enable debug mode or error reporting so we can see exactly where the issue is coming from.

    Let us know what you find and we’ll try to help.

    Plugin Author Gantry

    (@gantry)

    @jasonmac_75 nice – good work.

    Here a way to protect your override:

    The file:

    /wp-content/plugins/gantry5/engines/nucleus/templates/page.html.twig

    Should be overridden in your theme under:

    /wp-content/themes/g5_hydrogen/custom/nucleus/templates/page.html.twig

    ✅ Note the structure: /custom/nucleus/templates/ matches the engines/nucleus/templates/ path inside the plugin.

    Steps to safely override page.html.twig

    1. Create the override path if it doesn’t already exist: swiftCopyEdit/wp-content/themes/g5_hydrogen/custom/nucleus/templates/
    2. Copy the original file from the plugin: swiftCopyEdit/wp-content/plugins/gantry5/engines/nucleus/templates/page.html.twig to: swiftCopyEdit/wp-content/themes/g5_hydrogen/custom/nucleus/templates/page.html.twig
    3. Edit your copied file to include your modification: twigCopyEdit{{ function('do_action', 'wp_body_open')|raw }}
    4. Clear Gantry cache via the admin panel or delete the compiled folder inside: swiftCopyEdit/wp-content/themes/g5_hydrogen/

    Plugin Author Gantry

    (@gantry)

    @justin-dixon thanks for the update and the extra details. Glad it worked out.

    Plugin Author Gantry

    (@gantry)

    @justin-dixon Did you download the latest versions of hydrogen here: (make sure its your parent theme and your child theme as your customizations)
    https://gantry.org/downloads

    This should have all the fixes.

    • This reply was modified 9 months, 2 weeks ago by Gantry.
    Plugin Author Gantry

    (@gantry)

    @justin-dixon thanks for your details. Its very helpful. IM going to try to do a few things here to hopefully help and to clarify moving forward.

    1. As you know rockettheme closed up shop and are not supporting their themes. They have been gracious in providing us full access to continue Gantry (which we are) and the two default themes that come with it. Helium and Hydrogen
    2. Unfortunately for users of rockettheme themes we cannot support those since we did not or will not receive any of those memberships. We are moving forward in fully supporting and building Gantry but not past Rocket themes. You can see more details here: tiger12.com/gantry
    3. With that said if you fill out the form below on the prior url I sent we do have a full team that can help debug and solve you specific issues. I know not ideal but its a path.
    4. With that said here is more specifics on your issue and hopefully it will help you resolve them. We are full committed to Gantry are building a great future with it.

    since we’ve taken over Gantry, we’ve updated the plugin to require PHP 8.1 or higher and we’re actively supporting only two templates (Helium and Hydrogen). These have been fully tested and modernized for compatibility going forward.

    If you’re using one of the older RocketTheme templates (like Callisto, Remnant, etc.), you might run into issues—including fatal errors like this one:

    Error thrown with message "Class 'Leafo\ScssPhp\Type' not found"

    What’s happening because those templates still rely on an old SCSS compiler (Leafo\ScssPhp), which isn’t compatible with PHP 8.1+. We’ve removed that old dependency and replaced it with a modern, maintained one (scssphp/scssphp), which works fine with updated templates.

    We’re not maintaining those older templates, so they may break unless manually updated. If you really need to keep using one of them, a developer would need to go through and update the SCSS-related parts to use ScssPhp\ScssPhp instead of Leafo\ScssPhp. Otherwise, your best bet is switching to one of the supported templates.

    Step-by-Step: Update from Leafo\ScssPhp to ScssPhp\ScssPhp

    1. Install the new SCSS compiler (if not already included)

    composer require scssphp/scssphp

    2. Replace the old use statement in PHP files

    Old (incompatible)

    use Leafo\ScssPhp\Compiler;

    New (compatible)

    use ScssPhp\ScssPhp\Compiler;

    3. Update any class instantiations

    Old

    $scss = new \Leafo\ScssPhp\Compiler();

    ✅ New

    $scss = new \ScssPhp\ScssPhp\Compiler();

    4. Update deprecated method calls if necessary

    Most method names are the same between the old and new compiler, but here’s one example of a potential difference: Check for this:

    $scss->setFormatter('Leafo\ScssPhp\Formatter\Compressed'); And replace with:

    use ScssPhp\ScssPhp\Formatter\Compressed; $scss->setFormatter(Compressed::class);

    Or just:

    $scss->setFormatter(\ScssPhp\ScssPhp\Formatter\Compressed::class);

    5. Verify Template Structure

    Legacy RocketTheme templates often do SCSS compilation dynamically in PHP. Look for code in:

    • functions.php
    • /src/ or /includes/
    • Any Compiler.php or ScssCompiler.php files

    ✅ Example Updated Code Block

    Here’s a fully updated SCSS compile example using scssphp/scssphp:

    use ScssPhp\ScssPhp\Compiler; use ScssPhp\ScssPhp\Formatter\Compressed; $scss = new Compiler(); $scss->setFormatter(Compressed::class); $scss->setImportPaths(__DIR__ . '/scss/'); $compiled = $scss->compileString(file_get_contents(__DIR__ . '/scss/style.scss')); file_put_contents(__DIR__ . '/css/style.css', $compiled->getCss()); 🧼 Bonus Tip: Remove old vendor packages

    If you had leafo/scssphp installed, remove it:

    composer remove leafo/scssphp

    Plugin Author Gantry

    (@gantry)

    @jasonmac_75 thanks for the question. Here’s what I found – hopefully this is helpful to you:
    Unfortunately, Gantry 5’s theme system doesn’t include the wp_body_open() hook natively, because it builds the theme layout via Twig templates, not a traditional header.php file.

    Here is one possible solution but I have not tested it:

    Editing your theme’s index.php file:

    <?php if (function_exists('wp_body_open')) wp_body_open(); ?>

    Insert that right after the <body> tag. If your plugin supports inserting the preloader manually, you can also add:

    <?php if (function_exists('the_preloader_element')) echo the_preloader_element(); ?>

    Unfortunately, Gantry’s admin interface doesn’t allow inserting PHP after <body>, so this small file edit is required.

    If this doesn’t work I would continue debugging with your preferred AI (chatgpt etc). It has solved a lot of my problems.

    Plugin Author Gantry

    (@gantry)

    HI @jasonmac_75 Ive never seen that done before where there is a warning to disable auto updates from a specific plugin but good to know. We did add a warning for php upgrade to 8.1 this morning to help with this.

    Plugin Author Gantry

    (@gantry)

    @andreascarfo yes if you were set to automatic updates and your php was lower that 8.1 you would have this problem. Gantry has not been updated since the last 2 releases and now we are current with WP. Just do the following:

    1. Upgrade to php 8.1 (if you are not able then rollback your Gantry version)
    2. If you are using the Helium or Hydrogen theme download them here: https://gantry.org/downloads and update you parent theme.

    Rockettheme closed up shop a month ago and we have taken over the development of Gantry. If you need additional help please go to: tiger12.com/gantry

    Plugin Author Gantry

    (@gantry)

    @andreascarfo yes if you were set to automatic updates and your php was lower that 8.1 you would have this problem. Gantry has not been updated since the last 2 releases and now we are current with WP. Just do the following:

    1. Upgrade to php 8.1 (if you are not able then rollback your Gantry version)
    2. If you are using the Helium or Hydrogen theme download them here: https://gantry.org/downloads and update you parent theme.

    Rockettheme closed up shop a month ago and we have taken over the development of Gantry. If you need additional help please go to: tiger12.com/gantry

    Plugin Author Gantry

    (@gantry)

    HI Mike,

    This plugin has not been abandoned and we have just updated to the latest version on our site. gantry.org/downloads. We are currently sending the latest package to WP for review so you can update directly from your site. However the manual upload will work in this case. You can read the full story here:
    tiger12.com/gantry – including our future plans.

    Plugin Author Gantry

    (@gantry)

    Hi,

    Sorry for late reply. We’re using latest version of Twig in Gantry5 as it’s the only one which supports PHP 7.4 so maybe there’s a conflict between newest Twig version in G5 and older version in the mentioned Data Tables Generator plugin?

    Please try to update that plugin to the newest version or ask the developer of it if he can update the Twig inside of his plugin.

    Let me know if that fixed the issue.

    Thanks!

    Plugin Author Gantry

    (@gantry)

    Hi,

    Gantry 5 comes by default with sidebar mobile menu particle, however there are no core limitations if you’d like to clone that particle and rework it for your needs.

    Jakub

    Plugin Author Gantry

    (@gantry)

    Great!

    Plugin Author Gantry

    (@gantry)

    Ok, one last question. How did you enable SSL on your WP? Did you use any plugins? Looks like some pieces of Gantry won’t recongize that SSL is enabled on your site.

    Can you please install and set up a plugin called Really Simple SSL – https://wordpress.org/plugins/really-simple-ssl/

    Plugin Author Gantry

    (@gantry)

    Hi,

    The issue is that your whole site is being loaded via the https:// and the owlcarousel.min.js via the http:// – this is called mix content. Browsers block sometimes this type of content for the security reasons.

    Can you please tell me which version of Gantry5 and Helium theme are you using?

    Also can you please paste me the <script> tag found right after {% do gantry.load('jquery') %} in the wp-content/themes/g5_helium/particles/owlcarousel.html.twig?

    Thanks!

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