VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: MKI-Miro on September 11, 2019, 22:10:41 PM

Title: Syntax error on 3.6.1.10134_package_or_extract.zip
Post by: MKI-Miro on September 11, 2019, 22:10:41 PM
Hi

When I installed 3.6.1.10134_package_or_extract.zip (AIO) i got this error:

0 - syntax error, unexpected '$this' (T_VARIABLE), expecting function (T_FUNCTION) or const (T_CONST)

Joomla 3.9.11
PHP 7.3.7

you can see at https://www.tiens-tianshi.com
edit: i installed com_virtuemart.3.6.1.10129_package_or_extract.zip (AIO) and now site works

hot to fix it?

Thanks
Title: Re: Syntax error on 3.6.1.10134_package_or_extract.zip
Post by: diri on September 12, 2019, 10:08:55 AM
Error with aio occurs when installing via single zip as well as at one site after using package install (looks fine at first glance) when clicking "configuration" in backend.
Title: Re: Syntax error on 3.6.1.10134_package_or_extract.zip
Post by: GJC Web Design on September 12, 2019, 12:11:17 PM
can you try with JOOMLA debug on as this should give the path or trace
Title: Re: Syntax error on 3.6.1.10134_package_or_extract.zip
Post by: GJC Web Design on September 12, 2019, 12:29:24 PM
could be this error found by another user

Parse error: syntax error, unexpected '$this' (T_VARIABLE), expecting function (T_FUNCTION) in /plugins/vmcustom/specification/specification.php on line 173

Milbo knows and will correct in next 3.6.1 package
Title: Re: Syntax error on 3.6.1.10134_package_or_extract.zip
Post by: Milbo on September 12, 2019, 13:20:50 PM
I am very sorry for this guys.

The file was open in the IDE and I did a copy pase to another file and you maybe know that, when you paste and nothing happens, the window was not activ. Most time such pastes land in the void, but this time in the specification plugin. You maybe noticed that I updated a lot copyright notices and so the plugin folder is currently quite red in my ide. I committed the specification plugin before correctly, and so I did not check that file and I was also not wondering about my red folders in the plugin folders. shit happens, for that we have the test releases.

Btw, here is the new test release http://dev.virtuemart.net/attachments/1180/com_virtuemart.3.6.1.10137_package_or_extract.zip

I directly deleted the old one.