Gas requirement of function is infinite:

can someone explain me why, i get this error mesages, i copied the code from oppenzepplin and trhought you can use it as template.
i got that often:
Gas costs: Gas requirement of function MyToken.symbol is infinite:
If the gas requirement of a function is higher than the block gas limit, it cannot be executed.
Please avoid loops in your functions or actions that modify large areas of storage
(this includes clearing or copying arrays in storage) Pos: 75:4:


Hi, welcome! :wave:

Maybe you do not satisfy the requirements to call this function, just have a check in the function you want to call.
And I think you can share the source code, and how do you try to call the function.