# PHP object disappearing

**URL:** <https://forum.kirupa.com/t/php-object-disappearing/252985>\
**Category:** programming\
**Created:** [February 26, 2008, 5:20am UTC](https://forum.kirupa.com/t/php-object-disappearing/252985 "2008-02-26T05:20:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sticmann](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@sticmann](https://forum.kirupa.com/u/sticmann)\
**Post date:** [February 26, 2008, 5:20am UTC](https://forum.kirupa.com/t/php-object-disappearing/252985/1 "2008-02-26T05:20:06Z")

</div>

OK guys,  
My server was recently updated to php 5 (about time), but now my simple shopping cart isn’t working. This was working before and I hadn’t changed the code. I cannot figure out what the problem is because it all looks correct to me (and was working before!).

If you look at where I’ve commented “debugging” in application\_top.php, I’ve narrowed it down to my shopping cart object getting destroyed on the page refresh. Everything else seems to be fine.

Please help,  
-Joshua
