- Posts: 1
- Thank you received: 0
OS Property support center
syntax error, unexpected 'new' (T_NEW)
- ALESSANDRO SENSOLI
- Topic Author
- Offline
- New Member
-
Less
More
6 years 3 months ago #121286
by ALESSANDRO SENSOLI
syntax error, unexpected 'new' (T_NEW) was created by ALESSANDRO SENSOLI
Good morning,
I have submitted a ticket 3 days ago but still it has not been even assigned.
The problem:
When try to access in administrator OS property, in any link of the component I get syntax error, unexpected 'new' (T_NEW)
Before the website was on a php5.6.x and the OS property was an old installation.
The problem started from when I have migrated the website to a php 7.x
I tryed this fix that i found in forum:
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:
$reader =& new CSVReader( new FileReader($csv_folder.DS.$filename));
and change to
$reader = new CSVReader( new FileReader($csv_folder.DS.$filename));
but it didn't worked
Then i bought a new version of OS Property this monday and installed it, but still i have the same syntax error whatever i try to access to the component in administration panel
I have tryed too to eliminate the file csvform.php from the server and still have the same error, that i think comes from another file.
Exists any fix to this?
I have submitted a ticket 3 days ago but still it has not been even assigned.
The problem:
When try to access in administrator OS property, in any link of the component I get syntax error, unexpected 'new' (T_NEW)
Before the website was on a php5.6.x and the OS property was an old installation.
The problem started from when I have migrated the website to a php 7.x
I tryed this fix that i found in forum:
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:
$reader =& new CSVReader( new FileReader($csv_folder.DS.$filename));
and change to
$reader = new CSVReader( new FileReader($csv_folder.DS.$filename));
but it didn't worked
Then i bought a new version of OS Property this monday and installed it, but still i have the same syntax error whatever i try to access to the component in administration panel
I have tryed too to eliminate the file csvform.php from the server and still have the same error, that i think comes from another file.
Exists any fix to this?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13020
- Thank you received: 1688
6 years 3 months ago #121342
by Mr. Dam
Replied by Mr. Dam on topic syntax error, unexpected 'new' (T_NEW)
Hi,
That issue has been fixed in OS Property for a long time.
Thanks
Dam
That issue has been fixed in OS Property for a long time.
Thanks
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.