- Posts: 2
[Closed] "Creating default object from empty value in..."
- Heather Edick
- Topic Author
- Offline
- New Member
-
Less
More
13 years 3 months ago - 13 years 3 months ago #1
by Heather Edick
[Closed] "Creating default object from empty value in..." was created by Heather Edick
I have added a wrapper to one of my Joomla pages, but I see this error on the page after it loads:
Warning: Creating default object from empty value in C:\xampp\htdocs\joomla\components\com_joomdle\views\wrapper\view.html.php on line 27
Any ideas on how to fix it?
Warning: Creating default object from empty value in C:\xampp\htdocs\joomla\components\com_joomdle\views\wrapper\view.html.php on line 27
Any ideas on how to fix it?
Last edit: 13 years 3 months ago by Chris.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
13 years 3 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic "Creating default object from empty value in..." error
It is a warning: you could disable showing warning in your php config.
Also, I think you could fix the code by adding first:
$this->wrapper = new stdClass();
Also, I think you could fix the code by adding first:
$this->wrapper = new stdClass();
Please Log in or Create an account to join the conversation.
- Heather Edick
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
13 years 3 months ago #3
by Heather Edick
Replied by Heather Edick on topic "Creating default object from empty value in..." error
Adding "$this->wrapper = new stdClass();" to the PHP file worked like a charm. Thank you.
Please Log in or Create an account to join the conversation.