Php warns Creatingdefaultobjectfromemptyvalue about the solution. The solution is to find the location where the error is reported and check which variable is directly used without initialization. the variable is first instantiated as an empty class. For example, copy the code as follows: $ ctne solves the problem by finding the location where the error is reported and then checking which variable is used directly without initialization. instantiate this variable as an empty class first. For example:
The code is as follows:
$ Ct = new stdClass ();
Modify the code of the file, for example:
The code is as follows:
If (! Isset ($ themes [$ current_theme]) {
Delete_option ('current _ theme ');
$ Current_theme = get_current_theme ();
}
$ Ct = new stdClass ();
$ Ct-> name = $ current_theme;
Solve the problem.
Bytes. For example, the code is as follows: $ ct = ne...