Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Warning: Creating default object from...
Warning: Creating default object from empty value in helper.php
Warning: Creating default object from empty value in helper.php
Warning: Creating default object from empty value in /home/trechrir/staging/1/components/com_chameleon/helper.php on line 858
I have a staging site --> http://staging1.dragonflight.org/ for this website --> http://www.dragonflight.org/
I keep seeing this warning. I want to be able to test things before I publish on live site.
Why is this warning appearing? Is there a way I can config so it doesn't display?
I appreciate your help!
Trentin C Bergeron (TreChriron)
Bard, Dreamer & RPG Enthusiast
http://trechriron.me/
Re: Warning: Creating default object from empty value in helper.php
Hi Trentin,
thanks for the bug report. I can work around this in the code - also you should be able to suppress warnings like this by going into the Joomla Global Configuration and switching Error Reporting to "none".
I wonder however what's causing this to happen. It happens when you set a new menu item to "default" in a Chameleon action, and the system can't find that menu item. Normally this shouldn't happen, but I wonder if one of these things are happening on your site:
1 - perhaps you have set the Chameleon Action to set a particular menu item as default, but subsequently trashed that menu item?
- if this is the case, then perhaps re-edit the rule and set a different menu item as default in the Action
2 - could it be that in a previous Action you got Chameleon to remove the menu item, then by the time it gets to the rule where you set a new default menu item, the one you wanted to set as default has already been dynamically removed?
- if this is the case then you might want to re-think the logic of your rules so this doesn't happen.
In either case, Chameleon needs to be smart enough to not throw errors, so I'll fix those for the next release.
Cheers,
Stephen
Re: Warning: Creating default object from empty value in helper.php
Thanks for the quick response!
I will poke around my rules and try a couple things and report back.
Trentin C Bergeron (TreChriron)
Bard, Dreamer & RPG Enthusiast
http://trechriron.me/
Re: Warning: Creating default object from empty value in helper.php
I checked, and my rules do not currently set default menu items or unpublish menu items.
Still getting some odd warnings.
Now I get Array errors when I load up flexicontent all items. See -> http://staging1.dragonflight.org/my-flight/all-items (you must be logged in as testuser2, I can email when you request).
Warning: array_merge(): Argument #2 is not an array in /home/trechrir/staging/1/components/com_chameleon/jomgenius/flexicontent.php on line 95
Warning: array_merge(): Argument #1 is not an array in /home/trechrir/staging/1/components/com_chameleon/jomgenius/flexicontent.php on line 95
Warning: array_unique() expects parameter 1 to be array, null given in /home/trechrir/staging/1/components/com_chameleon/jomgenius/flexicontent.php on line 97
Trentin C Bergeron (TreChriron)
Bard, Dreamer & RPG Enthusiast
http://trechriron.me/
Re: Warning: Creating default object from empty value in helper.php
Hi Trentin,
regarding the errors in line 95-97: is there any chance that you set Chameleon to detect certain categories, but subsequently deleted these categories? I need to put in some extra checking in the code to ensure that this situation doesn't cause those errors.
If you can confirm that was the situation that would be useful.
Thanks,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Warning: Creating default object from...
Board Info
- Board Stats:
- Total Topics:
- 1700
- Total Polls:
- 6
- Total Posts:
- 5967
- Posts this week:
- 3
- User Info:
- Total Users:
- 8056
- Newest User:
- no21an
- Members Online:
- 0
- Guests Online:
- 232
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked