VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: biltong on July 17, 2017, 17:52:57 PM

Title: PHP Warning: syntax error, unexpected '!'
Post by: biltong on July 17, 2017, 17:52:57 PM
Hi,

Any idea how I resolve this PHP Warning found in my php log file please?

[17-Jul-2017 09:01:43 Europe/London] PHP Warning:  syntax error, unexpected '!' in /home/xxxxxxxxxxx/public_html/administrator/vmfiles/keys/160414.ini on line 3
in /home/xxxxxxxxxxxxx/public_html/administrator/components/com_virtuemart/helpers/vmcrypt.php on line 101

Using VM 3.2.2 with Joomla 3.7.3
Title: Re: PHP Warning: syntax error, unexpected '!'
Post by: Milbo on August 02, 2017, 21:08:30 PM
Just delete the key file. The key was not base64 decoded and so it can happen that a control sign breaks the key file. Deleting the key file creates a new one.

Please use this version http://dev.virtuemart.net/attachments/download/1086/com_virtuemart.3.2.3.9614_extract_first.zip

to prevent this error in future
Title: Re: PHP Warning: syntax error, unexpected '!'
Post by: biltong on August 03, 2017, 10:45:35 AM
Thanks Milbo.
Title: Re: PHP Warning: syntax error, unexpected '!'
Post by: biltong on July 11, 2018, 13:40:18 PM
This is occurring again, using VM 3.2.14