- Posts: 19
- Thank you received: 0
OS Property support center
Using $this when not in object context
- adam
- Topic Author
- Offline
- New Member
-
Less
More
8 years 1 month ago #94896
by adam
Replied by adam on topic Using $this when not in object context
Thanks Ben
Guess I was not that stupid when I reported the bug
Guess I was not that stupid when I reported the bug
Please Log in or Create an account to join the conversation.
- adam
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
8 years 1 month ago #94907
by adam
Replied by adam on topic Using $this when not in object context
Ben,
Still no luck.
get error Error displaying the error page: Using $this when not in object context: Using $this when not in object context.
Only on OS property when using PHP 7.1
Still no luck.
get error Error displaying the error page: Using $this when not in object context: Using $this when not in object context.
Only on OS property when using PHP 7.1
Please Log in or Create an account to join the conversation.
- Ben
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 1
8 years 1 month ago #94936
by Ben
Replied by Ben on topic Using $this when not in object context
Hi Adam,
There are several uses of JSite::getMenu() - which could be replaced with:
A quick search revealed the following entries (file:line number)
In my case, the error occurred when trying to "Manage All Properties" as well as viewing the details of any one of them.
Try replacing the lines in each of the files above, as this might resolve the issue for other Menu Item Types.
(ie. change JSite::getMenu() to JFactory::getApplication()->getMenu() )
There are several uses of JSite::getMenu() - which could be replaced with:
Code:
JFactory::getApplication()->getMenu()
A quick search revealed the following entries (file:line number)
Code:
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
components/com_osproperty/helpers/route.php:460
In my case, the error occurred when trying to "Manage All Properties" as well as viewing the details of any one of them.
Try replacing the lines in each of the files above, as this might resolve the issue for other Menu Item Types.
(ie. change JSite::getMenu() to JFactory::getApplication()->getMenu() )
Please Log in or Create an account to join the conversation.
- adam
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
8 years 2 weeks ago #95887
by adam
Replied by adam on topic Using $this when not in object context
Still no luck why admin not take care of this issue as i am not alone with the problem!!!
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 12988
- Thank you received: 1683
8 years 2 weeks ago #95889
by Mr. Dam
Replied by Mr. Dam on topic Using $this when not in object context
Hi,
Your question isn't clear, so we can't answer you. In this case, you can submit ticket and send
1. The email you entered when you purchased OS Property from us so we can verify the transaction
2. Your site url with super admin account so we can check your modification.
Dam
Your question isn't clear, so we can't answer you. In this case, you can submit ticket and send
1. The email you entered when you purchased OS Property from us so we can verify the transaction
2. Your site url with super admin account so we can check your modification.
Dam
Please Log in or Create an account to join the conversation.
- adam
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
8 years 2 weeks ago #95891
by adam
Replied by adam on topic Using $this when not in object context
I will asked the owner what email there use to buy as we are only the developer.
But the point is very clear. Did you test the component using PHP 7.1.xx not PHP 7.00.xx. as Ben ( comment on this issue in this post) clearly as the same issue.
But the point is very clear. Did you test the component using PHP 7.1.xx not PHP 7.00.xx. as Ben ( comment on this issue in this post) clearly as the same issue.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 12988
- Thank you received: 1683
8 years 2 weeks ago #95914
by Mr. Dam
Replied by Mr. Dam on topic Using $this when not in object context
Hi Adam,
We tested our products on both PHP 5 and PHP 7 but we don't see any problem like you mentioned. We won't leave you alone in this case but to save our time, you should provide:
1. The page which you see the error you mentioned in this forum topic
2. Your OS Property version
Hope you understand.
Dam
We tested our products on both PHP 5 and PHP 7 but we don't see any problem like you mentioned. We won't leave you alone in this case but to save our time, you should provide:
1. The page which you see the error you mentioned in this forum topic
2. Your OS Property version
Hope you understand.
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.