Hi all,
I was trying to update my Virtuemart 3.0.8 to 3.0.10 on MAMP for testing reasons. The update went through successfully, but while opening a product category of products with customfields I receive the following error:
Fatal error: Cannot access empty property in /Applications/MAMP/htdocs/juwelier/components/com_virtuemart/sublayouts/customfield.php on line 469
Can anyone help me?
I am using:
MAMP 3.2.1
Joomla 3.4.5 and Virtuemart 3.0.10
PHP 5.6.7 with mysql 5.5.42
Thank you and best rgds!
Have you gone into VM in backend, then Tools>Tools & Migration - then click "Update vm2 order format of customfields to vm3 format", followed by "Remove old vm2 inherited customfields"?
This needs to be done when upgrading from VM2.5 to VM3.
Modify message
I tried this before updating from 3.0.8 to 3.0.9. Update to 3.0.9 is working well. But then updating from 3.0.9 to 3.0.10 the error is still existing.
Please try http://dev.virtuemart.net/attachments/download/975/com_virtuemart.3.0.11.2_extract_first.zip I am quite sure it is fixed there.
Unfortunately, not :(
Now I receive the following error: Fatal error: Cannot access empty property in [...]/components/com_virtuemart/sublayouts/customfield.php on line 482
Also good, because so I know the number of the line and can fix it. .... hmm it is in the customfield for "properties", which uses the case "P". It is very likely that a very old customfield called "Parent" or now "Group" creates your problem. The simpelst way is to open your customfields "group" and store them.
Thank you.
Looking to the customfields screen I receive two errors in the live version (3.0.8) which explain the problem I think:
vmError: The field with id 55 and title Occassionen is not longer valid, please delete it from the list
vmError: The field with id 21 and title Uhrenbeschreibung is not longer valid, please delete it from the list
Those ids are old Group title fields... I will check it in the evening and let you know.
There you see, I was not even too lazy to write a warning. I add now a log info, so that also the log reflects it, when it is called from FE.
Thank you! All fine now.