Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

syntax error, unexpected 'new' (T_NEW)

  • ALESSANDRO SENSOLI
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 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?

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

More
7 years 9 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

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

Moderators: Mr. Dam, Nguyen Phu Quan