Ok, this is not a problem with Guggenheim, your tag is printed as text. That shouldāve been part of your error description. Do you use the kirbytext() method to render your content?
<?= $page->text()->kirbytext() ?>
Ok, this is not a problem with Guggenheim, your tag is printed as text. That shouldāve been part of your error description. Do you use the kirbytext() method to render your content?
<?= $page->text()->kirbytext() ?>
This is what i have now:
<div class="post">
<?= $page->introtekst()->kirbytext() ?>
</div>
The strange thing is that Kirby prints the tag as if it didnāt exist. While I canāt get the plugin to show any images myself, at least the tag isnāt printed. I only get the empty div like in. your first post (canāt see that in your source code, though)?
if i use this in my post: (gallery: image: img_0131-1.jpg | image: img_0138-1.jpg), the text is not displayed in my post, but the code is visible in the source code.
But if i use the code that is shown on the github page: (gallery: img_0131-1.jpg, img_0138-1.jpg), i see the code on my page and nothing in my source code.
Ok, there seems to be a problem with the code, it seems. I could solve it by modifiying line #264 (in my version)
foreach ($urlsArr as $key => $url) {
$file = $tag->file($url);
if(!f::exists($file)) continue; // this line
$filesArr[] = $file;
}
to:
foreach ($urlsArr as $key => $url) {
$file = $tag->file($url);
if(!$file) continue; // to this
$filesArr[] = $file;
}
In guggenheim.php?
This is what i can find in my file, starting on line 270:
foreach ($urlsArr as $key => $url) {
$file = $tag->file($url);
if ($file == null || $file == '') continue;
$filesArr[] = $file;
}
If i change that to your code, it does not change anything.
I just bought the plugin this morning, so it is almost impossible that i have an old version or something right?
Ok, looks like you have a different version than me.
Thanks for your help!
Iām going to look for a different option for my gallery.
Cheers!
I suggest you contact @JimmyRittenborg directly, Iām pretty sure heāll help you out. After all, you bought the plugin.
@JimmyRittenborg Do you still support this plugin?
I had this exact problem last year. Which version of PHP is your server running?
I found out that the plugin would not run on a server running PHP 5.4 but it worked fine when I ran it on PHP 7+
You can figure out your PHP version by echoing out this line:
echo 'Server is running: ' . phpversion();
If you are unable to change servers or upgrade your PHP version, maybe Jimmy can help you out.
Oh wow, thanks for your input on this.
I checked: Current PHP version: 5.4.45, so that seems to be the problem then.
Iām going to check if i can upgrade easily on my host.
Thanks!!
Youāre welcome
Maybe there is a way to get it working on 5.4 but in my case, upgrading was an easy fix.
I upgraded to 7.0 and now it works!
Thanks everybody for your help!
Iām always surprised to still find PHP 5.4 aroundā¦
Sorry for being late at the party here guys Huge thanks for helping out, the Kirby Community is so strong!
@jwb Iām happy to hear that you got it working, running on PHP 7+ isnāt that bad after all either
@texnixe your version is slightly different as Iāve since fixed an issue when processing a picture which doesnāt exists, so Iām still supporting and maintaining it, I just didnāt send out an update as I thought the fix was pretty minor and havenāt had the issue reported from anywhere else so I want to bundle up some more changes and ease of use for the next one ļø
@JimmyRittenborg At least it reminded me that I still had this license I never used for anything else than support purposes Time to use it in a project.
Hi!
@JimmyRittenborg do you still support the plugin? And do you have any plans to port it over to Kirby 3? And/or what other options would there be?