News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Fatal error: Cannot access empty property

Started by stemeios, October 25, 2015, 16:21:22 PM

Previous topic - Next topic

stemeios

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!

driver_wedge

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

stemeios

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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

stemeios

Unfortunately, not  :(
Now I receive the following error:  Fatal error: Cannot access empty property in [...]/components/com_virtuemart/sublayouts/customfield.php on line 482

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

stemeios

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.

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

stemeios