Jump to content

Error: Exception: Method FieldtypeImage::getFieldsTemplate does not exist or is not callable in this context (in <u>wire/core/Wire.php</u> line 564)<br />


Recommended Posts

Posted

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

 

 

Posted
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 ?

grafik.png.98ff9e978ed13f7feae6871cfb09e29c.png

Thank you for your help!!

Mats

Posted

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!

Posted

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

  • 3 years later...
Posted

@bubu2110 Glad you made this mistake because I just did the same thing for a client site!!! I was not thinking of what "overwrite" folder meant in the FTP setting I was in. I was thinking "full replacement" but it was a merge. Removed folder and replaced—all good now 😊

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...