VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: stemeios on October 25, 2015, 16:21:22 PM

Title: Fatal error: Cannot access empty property
Post by: stemeios on October 25, 2015, 16:21:22 PM
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!
Title: Re: Fatal error: Cannot access empty property
Post by: driver_wedge on October 27, 2015, 02:03:14 AM
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
Title: Re: Fatal error: Cannot access empty property
Post by: stemeios on November 01, 2015, 11:07:08 AM
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.
Title: Re: Fatal error: Cannot access empty property
Post by: Milbo on November 01, 2015, 23:09:53 PM
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.
Title: Re: Fatal error: Cannot access empty property
Post by: stemeios on November 01, 2015, 23:19:44 PM
Unfortunately, not  :(
Now I receive the following error:  Fatal error: Cannot access empty property in [...]/components/com_virtuemart/sublayouts/customfield.php on line 482
Title: Re: Fatal error: Cannot access empty property
Post by: Milbo on November 02, 2015, 08:20:28 AM
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.
Title: Re: Fatal error: Cannot access empty property
Post by: stemeios on November 02, 2015, 09:51:21 AM
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.
Title: Re: Fatal error: Cannot access empty property
Post by: Milbo on November 02, 2015, 14:27:35 PM
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.
Title: Re: Fatal error: Cannot access empty property
Post by: stemeios on November 02, 2015, 21:43:51 PM
Thank you! All fine now.