Gantry
Forum Replies Created
-
Forum: Plugins
In reply to: [Gantry 5 Framework] 500 Internal Server Error and Atoms won’t saveWe’re not seeing this issue in our test environment, Can you check the following:
- What PHP version are you using? Gantry 5.5.22 works best with PHP 7.4–8.2.
- Are the
/templates/,/cache/, and/logs/folders writable by the server? - 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
- 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?
- 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.
Forum: Plugins
In reply to: [Gantry 5 Framework] Preloader and gantry@jasonmac_75 nice – good work.
Here a way to protect your override:
The file:
/wp-content/plugins/gantry5/engines/nucleus/templates/page.html.twigShould be overridden in your theme under:
/wp-content/themes/g5_hydrogen/custom/nucleus/templates/page.html.twig✅ Note the structure:
/custom/nucleus/templates/matches theengines/nucleus/templates/path inside the plugin.Steps to safely override
page.html.twig- Create the override path if it doesn’t already exist: swiftCopyEdit
/wp-content/themes/g5_hydrogen/custom/nucleus/templates/ - Copy the original file from the plugin: swiftCopyEdit
/wp-content/plugins/gantry5/engines/nucleus/templates/page.html.twigto: swiftCopyEdit/wp-content/themes/g5_hydrogen/custom/nucleus/templates/page.html.twig - Edit your copied file to include your modification: twigCopyEdit
{{ function('do_action', 'wp_body_open')|raw }} - Clear Gantry cache via the admin panel or delete the
compiledfolder inside: swiftCopyEdit/wp-content/themes/g5_hydrogen/
Forum: Plugins
In reply to: [Gantry 5 Framework] All websites with gantry5 down@justin-dixon thanks for the update and the extra details. Glad it worked out.
Forum: Plugins
In reply to: [Gantry 5 Framework] All websites with gantry5 down@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/downloadsThis should have all the fixes.
- This reply was modified 9 months, 2 weeks ago by Gantry.
Forum: Plugins
In reply to: [Gantry 5 Framework] All websites with gantry5 down@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.
- 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
- 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
- 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.
- 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\ScssPhpinstead ofLeafo\ScssPhp. Otherwise, your best bet is switching to one of the supported templates.Step-by-Step: Update from
Leafo\ScssPhptoScssPhp\ScssPhp1. Install the new SCSS compiler (if not already included)
composer require scssphp/scssphp2. Replace the old
usestatement in PHP filesOld (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.phporScssCompiler.phpfiles
✅ 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 packagesIf you had
leafo/scssphpinstalled, remove it:composer remove leafo/scssphpForum: Plugins
In reply to: [Gantry 5 Framework] Preloader and 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 thewp_body_open()hook natively, because it builds the theme layout via Twig templates, not a traditionalheader.phpfile.Here is one possible solution but I have not tested it:
Editing your theme’s
index.phpfile:<?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.Forum: Plugins
In reply to: [Gantry 5 Framework] All websites with gantry5 downHI @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.
Forum: Plugins
In reply to: [Gantry 5 Framework] Gantry5 plugin abandoned?@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:
- Upgrade to php 8.1 (if you are not able then rollback your Gantry version)
- 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
Forum: Plugins
In reply to: [Gantry 5 Framework] All websites with gantry5 down@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:
- Upgrade to php 8.1 (if you are not able then rollback your Gantry version)
- 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
Forum: Plugins
In reply to: [Gantry 5 Framework] Gantry5 plugin abandoned?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.Forum: Plugins
In reply to: [Gantry 5 Framework] New Gantry UpdateHi,
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!
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
Forum: Plugins
In reply to: [Gantry 5 Framework] Owl Carousel Stops working after updateGreat!
Forum: Plugins
In reply to: [Gantry 5 Framework] Owl Carousel Stops working after updateOk, 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/
Forum: Plugins
In reply to: [Gantry 5 Framework] Owl Carousel Stops working after updateHi,
The issue is that your whole site is being loaded via the
https://and theowlcarousel.min.jsvia thehttp://– 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 thewp-content/themes/g5_helium/particles/owlcarousel.html.twig?Thanks!