• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Warnings when using RSFirewall and php 8.2

Warnings when using RSFirewall and php 8.2 2 months 2 weeks ago #42246

Hello,
I am currently testing a Joomla 4 website which I plan to migrate soon.
Upgrading php to 8.2 for testing purposes, I found out the 2 following warnings:

Deprecated: Return type of GeoIp2\Model\AbstractModel::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxxxxx/administrator/components/com_rsfirewall/helpers/geolite2/src/Model/AbstractModel.php on line 63

Deprecated: Return type of GeoIp2\Record\AbstractRecord::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in xxxxxx/administrator/components/com_rsfirewall/helpers/geolite2/src/Record/AbstractRecord.php on line 57

Could you pls point me to a way to fix this?

Thx much!
The administrator has disabled public write access.

Warnings when using RSFirewall and php 8.2 2 months 2 weeks ago #42247

PS: for now, I have implemented the #[\ReturnTypeWillChange] directive but it would probably be better to use a typed return value but I don't know which one...
Thx
The administrator has disabled public write access.

Warnings when using RSFirewall and php 8.2 3 weeks 6 days ago #42345

Hello,

Same issue again....
Last Edit: 3 weeks 6 days ago by marc.levi.
The administrator has disabled public write access.

Warnings when using RSFirewall and php 8.2 3 weeks 6 days ago #42346

Should somebody face the same issue:

Fixed them by changing the return type to : mixed both in administrator/components/com_rsfirewall/helpers/geolite2/src/Model/AbstractModel.php and in administrator/components/com_rsfirewall/helpers/geolite2/src/Record/AbstractRecord.php.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!