Author Topic: PHP Warning: syntax error, unexpected '!'  (Read 214 times)

biltong

  • Jr. Member
  • **
  • Posts: 115
    • Starfish Websites
  • VirtueMart Version: 3.2.2
PHP Warning: syntax error, unexpected '!'
« 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
Currently using VM 3.2.2 on Joomla 3.7.3 PHP 7.0.17

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9372
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: PHP Warning: syntax error, unexpected '!'
« Reply #1 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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

biltong

  • Jr. Member
  • **
  • Posts: 115
    • Starfish Websites
  • VirtueMart Version: 3.2.2
Re: PHP Warning: syntax error, unexpected '!'
« Reply #2 on: August 03, 2017, 10:45:35 am »
Thanks Milbo.
Currently using VM 3.2.2 on Joomla 3.7.3 PHP 7.0.17