OS Property support center

OS Property and Joomla 3.5

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 3 weeks ago - 9 years 3 weeks ago #78703 by Stephen
SOLVED !!! OS Property and Joomla 3.5 was created by Stephen
Hi
I have a dev site which I updated to Joomla 3.5 to test if everything is working ok.
After the upgrade I noticed the following:
1. In backend, when trying to access OS Property component I have this error: 0 syntax error, unexpected 'new' (T_NEW)
2. After updating the Joomla core to 3.5 I have an invalid token error when trying to log in to site in front end, the first log in works fine but after logging out and then try to log in again the invalid token error appears.

Q: Is OS Property 2.9.5 compatible with Joomla 3.5.0?

On the dev site i have the following:
Joomla 3.5
OS Property 2.9.5
PHP 7.0.3

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Last edit: 9 years 3 weeks ago by Mr. Dam.

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

More
9 years 3 weeks ago #78709 by Mr. Dam
Replied by Mr. Dam on topic OS Property and Joomla 3.5
Hi Stephen,
I have just checked your site and tested OS Property 2.9.5 on PHP version 7. And i confirm the error as you reported.
1. Error 0 syntax error, unexpected 'new' (T_NEW) comes from file:

root > administrator > components > com_osproperty > classes > csvform.php

you can open it and find:
Code:
$reader =& new CSVReader( new FileReader($csv_folder.DS.$filename));
and change to
Code:
$reader = new CSVReader( new FileReader($csv_folder.DS.$filename));
the issue will be solved.
2. I tried to login at front-end of your site, it works normally. I also think it doesn't relate to OS Property too.
Thanks
Dam
The following user(s) said Thank You: Stephen

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 3 weeks ago - 9 years 3 weeks ago #78735 by Stephen
Replied by Stephen on topic [SOLVED] OS Property and Joomla 3.5
Hi
Thanks a lot.
I can confirme that it's working as expected in back end now.

I just have to check further whats cause's the invalid token error in front end. (It started happening after the upgrade to J3.5, in J3.4 everything is working ok). It happens even with Joomla log in module. If I'll find anything i'll post it back here in the forum.

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Last edit: 9 years 3 weeks ago by Stephen.

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 3 weeks ago #78761 by Stephen
Replied by Stephen on topic OS Property and Joomla 3.5
Hi
Been looking into this a Little more.
I found out that there is a system cache plugin (system-sid-cache) thats causing this issue.
After unpublishing the plug in everything is working ok.



If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Attachments:

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

More
9 years 2 days ago - 9 years 2 days ago #79983 by Vladimir
Replied by Vladimir on topic OS Property and Joomla 3.5
Hello!
Maybe you can help. We have same problem. Updated yesterday to php 7 and now can not get in admin panel of OS property.
version 2.9.1
Error: 0 syntax error, unexpected 'new' (T_NEW)
/index.php?option=com_osproperty
csvform.php changing doesn't help
Thank you!
Last edit: 9 years 2 days ago by Vladimir.

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

More
9 years 2 days ago #79984 by Mr. Dam
Replied by Mr. Dam on topic OS Property and Joomla 3.5
Hi Vladimir,
Please download OS Property 2.9.6 and install it to get this bug fixed.
Thanks
Dam
The following user(s) said Thank You: Vladimir

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

More
8 years 1 month ago #95191 by omer topuz
Replied by omer topuz on topic OS Property and Joomla 3.5
I had a same problem but solved by the topic. Great solution, If you come to Istanbul, I will order you a fish in the Bosphorus Dang :)

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

More
5 years 2 months ago #131712 by Robert
Replied by Robert on topic OS Property and Joomla 3.5
Hi,

I know its an old topic, I´m running PHP 7.033, SQL V5.5.5, Joomla 3.7.2 and after upgrade from pho 5 to 7 I use to get the 0 syntax error, unexpected 'new' (T_NEW) error, I edited the csvform.php nd remove the & from the line and it worked ok.

I downloaded the file again via ftp and change it back to confirm the problem is this, and when i edited again with the good line and click the OS Property I get the error 500 Internal server error, i I edid the line and add again the & the error 500 disapear but I get the 'new' (T_NEW).

After I uploaded the first time fixed I bade a copy on the server called csvform.php_GOOD, the strange think is that If I delete the csvform.php and rename the csvform.php_GOOD to csvform.php then everything works as it should, but if I download csvform.php_Good and upload it again even without modifing the file, then I get error 500.

Any help would be grately apreciated.

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

More
5 years 2 months ago #131734 by Mr. Dam
Replied by Mr. Dam on topic OS Property and Joomla 3.5
Hi Robert,
Please submit ticket on category: OS Property and i will discuss about this problem
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan