I’m upgrading from Kirby 2 to Kirby 3 ny reading the Kirby 3 upgrade guide, but I’ve run into 2 major issues:
All of the images no longer appear. I have created the “media” folder with full permissions, but the images on my pages all reference files in the media folder that do not exist. Can I just use the “old” “content” folder approach? Alternatively, it seems like the media folder is just a cache – how do I make it generate the images on demand?
In trying to resolve this issue, I tried making a Panel account (I’ve never used Panel before). I get this error when trying to create the account after entering a name/email/password: Call to a member function (pattern() on null. Any ideas?
Pardon the delay. Using Apache on a remote Linux server.
I reset the permissions on everything and was able to create a panel account successfully.
I also figured out the cause of the broken images everywhere, but I’m unable to find a solution. I am using this - http://retinaimag.es -on the server to serve 2x “retina”-capable graphics (image2x.png vs image.png) to those who can view them (it changes the reference from image.png to image2x.png using a URL rewrite if it is best for the user’s browser – which used to work fine because everything was available in the content folder). But the new implementation in Kirby 3 only creates media files for files that are explicitly referenced in the markdown file. So, the images are all broken if viewed on a “retina” machine.
Thanks for the reply – the image srcset attribute is a good way to go, I’ll do that – thanks!
The original issue with my post where I was received the error Call to a member function (pattern() on null when creating my panel account keeps coming up. What’s the next step for me to troubleshoot this? I can’t reliably see when it occurs or does not occur.
In the Panel context, the only context that could possibly come from is probably the pattern function called in the Language class. Are you using a multi-language installation? Are the languages correctly defined?