Hi there! I've created a custom child theme for grav (gantry5 theme) and I am looking for a way to auto-update it from an URL. How can I do this?
I can see this on theme/gantry/theme.yaml:
details:
updates:
link: 'https://domain.com/themes/theme.yaml'
But what should that file contain?
Thank you!
@PhocaCz Hi Jan, some users are encountering fatal errors with PHP 8.1.x (Search in left column for PHP8.1)
I wonder if it is the server implementation (extensions and options)
My host upgraded to 8.1.8 today and I am fortunate to encounter no problems with Gantry 5 and Joomla 4.1.5
I solved the fatal error with downloading latest Twig, customizing some code, e.g.
FROM:
public function getGlobals()
TO:
public function getGlobals() : array
to avoid fatal errors like this: "Compile Error: Declaration of Gantry\Component\Twig\TwigExtension::getGlobals() must be compatible with Twig\Extension\GlobalsInterface::getGlobals(): array". I can work in administration but then I get fatal errors on frontend like this: "Unexpected token "name" of value "if" ("end of statement block" expected).", etc.
Even this can be relatively simple solved:
FROM:
{%- set offcanvas = null -%}
{%- for segment in segments if segment.type == 'offcanvas' %}
{%- set offcanvas = segment -%}
{% endfor -%}
TO:
{%- set offcanvas = null -%}
{%- for segment in segments %}
{% if segment.type == 'offcanvas' %}
{%- set offcanvas = segment -%}
{% endif %}
{% endfor -%}
So, with some simple changes, it works for me. Then unimportant warnings can be changed too:
Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 133
Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 98
Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 79
Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in libraries/gantry5/vendor/pimple/pimple/src/Pimple/Container.php on line 143