bubu2110 Posted February 7, 2022 Share Posted February 7, 2022 Hey guys, I need your help with the following problem. After updating to the latest processwire version I get the following error message Fehler: Exception: Method FieldtypeImage::getFieldsTemplate does not exist or is not callable in this context (in <u>wire/core/Wire.php</u> line 564)<br /> The server is running Apache with PHP 8.x I also get this error-message in the backend. I hope you can give me any kind of advice to get the website back to work. Thanks in advance. Mats Link to comment Share on other sites More sharing options...
Gideon So Posted February 8, 2022 Share Posted February 8, 2022 Hi @bubu2110, Can you post the related code here? Gideon Link to comment Share on other sites More sharing options...
bubu2110 Posted February 9, 2022 Author Share Posted February 9, 2022 On 2/8/2022 at 3:20 AM, Gideon So said: Hi @bubu2110, Can you post the related code here? Gideon The first error appears at this line of code: globale-einstellungen is a page that has a lot of fields for colors, image urls and so on. <img src="<?= $pages->get("/globale-einstellungen/")->arch->url.$pages->get("/globale-einstellungen/")->arch->first ?>" class="arch" /> In the backend at the page "globale-einstellungen" I have the same problem ? Thank you for your help!! Mats Link to comment Share on other sites More sharing options...
Gideon So Posted February 9, 2022 Share Posted February 9, 2022 Hi @bubu2110 Try the following code. <img src="<?= $pages->get("/globale-einstellungen/")->arch->first()->url ?>" class="arch" /> Gideon Link to comment Share on other sites More sharing options...
bubu2110 Posted February 9, 2022 Author Share Posted February 9, 2022 Hey Gideon, thank you for you help. It is no problem with my code. The problem was, that I tried to do a quick and dirty update and just had overwritten the files in /wire/ instread of cleaning the folder before. Now everything works find with PHP 8.x Thank you! Link to comment Share on other sites More sharing options...
Gideon So Posted February 10, 2022 Share Posted February 10, 2022 Hi @bubu2110, What fieldtype is arch?? Is it a image field or some other field type? It looks like a image field to me as you echo arch->url. If it is indeed a image field type, you could use the code I provided to you to simplify your code and see if the error still exists. Gideon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now