BTW I should have stated those were while in the admin.
I have a couple more errors when viewed as a visitor:
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/…/wp-content/plugins/ultimate-cms/post-type/class-xydac-post-type-functions.php</b> on line <b>38</b>
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/…/wp-content/plugins/ultimate-cms/page-type/class-xydac-page-type-functions.php</b> on line <b>27</b>
The fix is to have the get_active_{whatever}_types() function return an empty array if no custom post/page types are found. (I have not defined any yet)
fix for post types: http://pastebin.com/yADXVLr3
fix for page types: http://pastebin.com/RJPUDgxq
And another one caused in admin: “Uncaught TypeError: Cannot read property ‘value’ of null” caused by script.php, line 2006:
CodeMirror.fromTextArea = function(textarea, options) {
if (!options) options = {};
options.value = textarea.value; //textarea is null sometimes!
Since this gets into the CodeMirror code and I don’t know where it’s called from, I’ll probably leave this one to you. But I’ll tell you this – I got the error while managing widgets.
Plugin Author
XYDAC
(@deepakseth)
Thanks for these updates, I’ll make the changes and have the updated version out asap.
-Xydac