PHP Notice: Undefined property: JAdministrator::$_SHIPPING in /Applications/MAMP/htdocs/bodylace/administrator/components/com_virtuemart/classes/ps_checkout.php on line 2100

These classes do not match: vm_ps_checkout.
The error states the scope in which you are accessing _SHIPPING is that of JAdministrator, but that member if defined in vm_ps_checkout. That indicates that the access to $this->_SHIPPING should probably be accessing a different member's _SHIPPING (ie: $this->my_ps_checkout_var->_SHIPPING) instead.

dorys

05-23-2011, 06:22 PM

These classes do not match: vm_ps_checkout.
The error states the scope in which you are accessing _SHIPPING is that of JAdministrator, but that member if defined in vm_ps_checkout. That indicates that the access to $this->_SHIPPING should probably be accessing a different member's _SHIPPING (ie: $this->my_ps_checkout_var->_SHIPPING) instead.

Thank you. If I understand correctly should I be adding my_ps_checkout_var-> into line 2100?

If so, I tried that and received another undefined property error, plus "Trying to get property of non-object" warning.

Fou-Lu

05-23-2011, 06:30 PM

Thank you. If I understand correctly should I be adding my_ps_checkout_var-> into line 2100?

If so, I tried that and received another undefined property error, plus "Trying to get property of non-object" warning.

No, what I'm saying is that the scope where you are calling _SHIPPING is invalid. Class JAdministrator does not contain a member of that name (although PHP will allow you to construct members at runtime, which is honestly the single stupidest thing I've ever seen zend do), so I presumed that another member within JAdministrator is an object that does. This may or may not actually be the case, as I have no idea if or when the class vm_ps_checkout is added to be accessed by the JAdministrator class.

You need to determine where _SHIPPING is actually supposed to be called, or on what object the _SHIPPING is actually stored within that class. You can view an object's data via var_dump($obj). This will work on $this, and can be used to evaluate the members of the class to determine which if any of them include the _SHIPPING member.

aivanovas

08-03-2011, 05:53 PM

Hi,

Should I include var_dump in the same file where _Shipping code is?
Where and when output of the dumps will go?

Thanks

No, what I'm saying is that the scope where you are calling _SHIPPING is invalid. Class JAdministrator does not contain a member of that name (although PHP will allow you to construct members at runtime, which is honestly the single stupidest thing I've ever seen zend do), so I presumed that another member within JAdministrator is an object that does. This may or may not actually be the case, as I have no idea if or when the class vm_ps_checkout is added to be accessed by the JAdministrator class.

You need to determine where _SHIPPING is actually supposed to be called, or on what object the _SHIPPING is actually stored within that class. You can view an object's data via var_dump($obj). This will work on $this, and can be used to evaluate the members of the class to determine which if any of them include the _SHIPPING member.

aivanovas

08-04-2011, 10:00 AM

Hi,

This problem is related to Virtuemart file ps_checkout and I have made a dump of that file and here is dump output: