News:

Support the VirtueMart project and become a member

Main Menu

vmcrypt syntax error reported in apache error log

Started by dmb, March 06, 2019, 15:29:31 PM

Previous topic - Next topic

dmb

J3.9.2
VM3.4.2
PHP7.1.26

I'm trying to clear up a few errors that have been reported in my Apache error log. One has been reported for a long time, and I don't know if it's causing any actual problems but I wondered if anyone could shed any light on what it means:

[Wed Mar 06 14:07:02.475457 2019] [php7:warn] [pid 11513] [client 80.5.20.171:62392] PHP Warning:  syntax error, unexpected $end, expecting TC_DOLLAR_CURLY or TC_QUOTED_STRING or '"' in /var/www/<domain>/vmfiles/keys/160213.ini on line 8\n in /var/www/<domain>/public_html/administrator/components/com_virtuemart/helpers/vmcrypt.php on line 233, referer: https://<domain>/component/virtuemart/cart?Itemid=157

The file being referenced, 160213.ini, was created back in 2016 and I don't know if it's needed - I don't know what it does. Maybe it's from an earlier version of VM and I should delete it ?

There are three files in this keys directory, and they look very similar, except the key value is different in each, and the latest has an extra field called method:

$ ls -l
total 12
-rw-r--r-- 1 www-data www-data 181 Feb 13  2016 160213.ini
-rw-r--r-- 1 www-data www-data 181 Feb 14  2016 160214.ini
-rw-r--r-- 1 www-data www-data 215 Jan 12 11:49 190112.ini
$  cat 160213.ini
;<?php die(); */
                                                [
keys]
                                                
key "<some characters here>"
                                                
unixtime "1455324148"
                                                
date "2016-02-13 00:42:28"
                                                
b64 "0"
                                                
size "24"
                                                
; */ ?>

$ cat 190112.ini
;<?php die(); */
                                                [
keys]
                                                
key "<some different characters here>"
                                                
unixtime "1547293768"
                                                
date "2019-01-12 11:49:28"
                                                
b64 "1"
                                                
size "24"
                                                
method "openssl_"
                                                
; */ ?>


GJC Web Design

vaguely remember some wrongly created key files by some versions a while ago..

From memory u can just delete them, save the admin and new ones are created  .. but test non destructively first!!!

Discussion on here somewhere about it
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation