saral
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [P2] Cannot add post after updating to WP 4.7.1This patch (due to be added to 4.7.2) seems to fix the problem of empty feeds turning up 404s:
Forum: Themes and Templates
In reply to: [P2] Cannot add post after updating to WP 4.7.1See this in the console:
“NetworkError: 404 Not Found – …/feed/p2.ajax/?p2ajax=true&action=logged_in_out&_loggedin=428d4641cc”
- This reply was modified 8 years, 1 month ago by saral.
Forum: Plugins
In reply to: [Max Mega Menu] Disappearing submenu items (linking to pages and posts)Hi Tom,
You were correct. The bug was unrelated to the MegaMenu plugin. Turned out to be a modification I was making to the meta_query in functions.php that caused the error.
Thanks for your prompt response!
-Sara
Forum: Themes and Templates
In reply to: [Tiny Forge] How to enable comments?never mind
Fixed!
If I add this line:
if ( typeof( tinyMCE.settings ) == “undefined”) {tinyMCE.settings = “”; }
just above line 38
if ( typeof( tinyMCE ) == “object” && typeof( tinyMCE.execCommand ) == “function”) {
tinyMCE.settings.advanced += “,|,add_image,add_video,add_audio,add_media”;
tinyMCE.execCommand(“mceAddControl”, false, “%key%”);
}in “more-fields/more-fields-field-types.php” that fixes the JS “undefined” error. Apparently, this variable is not set if you are in html mode.
TypeError: tinyMCE.settings is undefined
tinyMCE.settings.advanced += “,|,add_image,add_video,add_audio,add_media”;
Did what you suggested and isolated the “More Fields” plugin. So looks like More Fields breaks TinyMCE which in turn breaks EditFlow?
-Sara
I ran the JavaScript debugger in Firebug and got this error when creating a new or updaing a post in html mode:
TypeError: tinyMCE.settings is undefined
[Break On This Error]tinyMCE.settings.advanced += “,|,add_image,add_video,add_audio,add_media”;
Addendum:
If I start out and end in Visual mode, I post is saved with a post_status of “new_file” and all is well.
If I start out or change to html mode and save in that mode, post_status is “draft”.
I think my colleague replaced “draft” with “new_file” — at least I do not see “draft” when I go to Edit Flow > Custom Statues
No JavaScript errors.
Here are some examples of behavior:
If I leave the edit mode in “html” then press Add New, I get a “Save Draft” button and the post is saved as “draft” with preview generating a 404.
If I leave the edit mode in Visual, but change the edit mode to “html” the button still says “Save” but the post is saved as “draft” and the button changes to “Save Draft” afterwards.
If I leave the edit mode in Visual, I get a “Save” button and the post is saved as “new_file” (a custom status) and the file is visible in Preview. however, if I change the mode to “html” and save again, the status is changed to “draft” and the button says “Save Draft” afterwords.
There appears to be a conflict with tinymce html mode and custom statuses?
Thanks, Sara