lat9 / upsoauth

A Zen Cart UPS shipping module that makes use of UPS' RESTful/Oauth API
GNU General Public License v2.0
3 stars 3 forks source link

PHP Fatal error: Uncaught Error: Call to a member function add_session() on null #8

Closed proseLA closed 1 year ago

proseLA commented 1 year ago

you can NOT use that $messageStack object on line 117 without declaring it first on line 72. (at least that is how i would do it!)

https://github.com/lat9/upsoauth/blob/56708bfab8e55ab3b34a594952eb613c3e61823e/includes/modules/shipping/upsoauth.php#L72 https://github.com/lat9/upsoauth/blob/56708bfab8e55ab3b34a594952eb613c3e61823e/includes/modules/shipping/upsoauth.php#L117

lat9 commented 1 year ago

Duh!

lat9 commented 1 year ago

Thankfully (?) it was introduced in the v1.0.0 to v1.1.0 rewrite; thanks for the report.