OS Property support center

Error: Using $this when not in object context

  • Geison Peres
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 6 months ago #154055 by Geison Peres
Error: Using $this when not in object context was created by Geison Peres
How to solve error: Using $this when not in object context ???

Please Log in or Create an account to join the conversation.

More
1 year 6 months ago #154062 by Mr. Dam
Replied by Mr. Dam on topic Error: Using $this when not in object context
Hi Geison,
Please submit ticket on category: OS Property and provide your site url with super admin account so i can debug this matter for you.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Geison Peres
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 6 months ago #154064 by Geison Peres
Replied by Geison Peres on topic Error: Using $this when not in object context
I solve change
JSite::getMenu() to JFactory::getApplication()->getMenu()

in files
components/com_osproperty/classes/listing.php:1994
components/com_osproperty/classes/listing.php:2248
components/com_osproperty/classes/listing.php:3053
components/com_osproperty/helpers/helper.php:4205
components/com_osproperty/helpers/helper.php:4249
components/com_osproperty/helpers/route.php:115
components/com_osproperty/helpers/route.php:388

Tks

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan