Jump to content

Recommended Posts

i am trying to run a report on a sunshop shopping cart table

the data is base 64 endoded and serialized

i get the following result after doing a base64decode and unserialize

__PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => item [id] => 20 [quantity] => 1 [options] => Array ( ) [regid] => )

i am mainly looking for item id and quantitiy which is in there

my question is this

how do i remove the __PHP_Incomplete_Class Object error when i dont know the original class name

the code blow simply dumps the data on the screen and row[4] is the problem string

 

while($row=mysql_fetch_array($result))

  {

      $return[] = $row;

      echo("  OrderID - ");

      print_r($row[1]);

      echo("  ProductID - ");

      print_r($row[2]);

      echo("  Price - ");

      print_r($row[3]);

      echo("  Data Array - ");

      $product_array = unserialize(base64_decode($row[4]));

      echo nl2br("\n");

      echo("  Trying to Unserialize ");

      echo nl2br("\n");

      print_r($product_array);

 

  }

  • 3 years later...

a) The question has nothing to do with sessions and the data is obviously being serialized when it is stored, since it is being unserialized to get to the point of displaying the data/property values,

 

b) The thread is 3 years old and the OP has been active since then, so it's unlikely he is still looking for an answer to this,

 

c) The solution would be to either ignore the error or include likely class definitions until the error is eliminated,

 

d) Locking thread so that no one else spends time replying in it.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.