__PHP_Incomplete_Class_Name wrong

后端 未结 10 1418
小蘑菇
小蘑菇 2020-12-10 04:15

We\'re randomly getting some very strange error logs. They don\'t happen on every page hit, even with the same parameters/actions/etc, and they don\'t seem repeatable, each

10条回答
  •  粉色の甜心
    2020-12-10 04:41

    When you try to unserialize a variable, php must know the structure of the object. Try to include your class before unserialize. Which class? the one that holds those properties shown in your code. include('pathtoyourclass/classname.php') or include_once('pathtoyourclass/classname.php').

    Good luck!

提交回复
热议问题