A site I maintain still uses this plugin, and it was recently brought to my attention that the “insert title” button in the WP visual editor wasn’t working. Throwing a javascript debugger into the mix exposed errors along the lines of “no method ‘onInit’ for undefined” or “no index ‘window_height’ for undefined”.
The issue I discovered boiled down to a few minor changes in the TinyMCE code, since this plugin was written against TinyMCE API 3 and WordPress is, at the time of this writing, using TinyMCE API 4. Thankfully, though, a TinyMCE 3 compatibility layer is present, significantly easing the transition. (I apologize for taking the lazy way out and not taking the time to properly port this to TinyMCE API 4.)
The two scripts in wp-content/plugins/multi-page-toolkit/buttons/js needed to be patched as follows:
--- dialog-20160124-1824-drh-port-tinymce-4.js 2009-04-08 21:53:39.000000000 -0500
+++ dialog.js 2016-01-24 18:30:00.320786435 -0600
@@ -23,4 +23,4 @@
}
};
-tinyMCEPopup.onInit.add(PageTitleDialog.init, PageTitleDialog);
+tinyMCEPopup.editor.onInit.add(PageTitleDialog.init, PageTitleDialog);
and
--- tiny_mce_popup.20160124-1700-drh-port-tinymce-4.js 2016-01-24 17:00:00.308056097 -0600
+++ tiny_mce_popup.js 2016-01-24 18:53:20.791169867 -0600
@@ -20,7 +20,7 @@
tinymce = w.tinymce;
tinyMCE = w.tinyMCE;
t.editor = tinymce.EditorManager.activeEditor;
- t.params = t.editor.windowManager.params;
+ t.params = t.editor.windowManager.getParams();
// Setup local DOM
t.dom = t.editor.windowManager.createInstance('tinymce.dom.DOMUtils', document);
@@ -28,7 +28,7 @@
// Setup on init listeners
t.listeners = [];
- t.onInit = {
+ t.editor.onInit = {
add : function(f, s) {
t.listeners.push({func : f, scope : s});
}
]]>
Using [nextpage title=”Pretty title”]
A table of contents is generated, however I cannot actually go to the next page. Also an additional ‘Intro’ heading in the TOC is added that I didn’t ask for. This would be a fantastic plugin if it worked.
Even better would be if the TOC displayed as:
Last Page — Named TOC DropDown List — Next Page
A drop down list would be so much better such as in https://www.dpreview.com/reviews/inching-forward-canon-powershot-g5-x-review-posted?utm_campaign=internal-link&utm_source=mainmenu&utm_medium=text&ref=mainmenu
]]>After WordPress updated to 3.9, Multipage Toolkit continues to break posts into separate pages but the “Insert” button no longer works in the Title pop-up window.
]]>I used java-script debug and got 2 java-script errors on the dialog box that comes up when pressing the Page title icon in Tiny-MCE. When pressing the button in the dialog box nothing happens.
]]>Permalinks for categories and tags pages return 404 not found error.
To resolve you need to deactivate plugin and then goto the permalink option and hit save the reset the permalinks before categories work again.
]]>Lost several days working this one out. Didn’t realise it would affect permalinks so bady and ended up not identifying this as a potential culprit for many confusing 404 pages.
]]>Since WordPress 3, Multi-page Toolkit 2.6 makes disable Tiny MCE in admin page, so I was uploading by FTP the old Tiny MCE to have Tiny MCE Visual mode in my article admin. Now I understood Multi-page Toolkit 2.6 and disabled it from my plug-in and all is working fine, Tiny MCE in visual mode is visible and is working.
So I think and update should be interesting or a notice in the plugin home page to prevent this.
Thanks,
Best Regards and thanks for your work,
David
]]>I just debugged a client website who was using your plugin and I found that you are using $wp_rewrite->flush_rules();
in an 'init'
hook; this is a MAJOR BAD PRACTICE and your plugin should be fixed before anyone should consider using it on any website with more than a few pages.
The problem is line 336 of TA_multi_toolkit.php
; this needs to be done in a register_activation hook, NOT an init hook:
FYI, this just cost the client US$300 to debug this problem. Bugs cost money. Fix it so the next user isn’t screwed in the same way.
]]>Multi-Page toolkit breaks permalinks in a similar fashion as Simple Tags.
]]>ruined my site immediately after upgrade. One user said to go into the plugin and delete the PHP line that has
$wp_rewrite->flush_rules();
But alas, it didnt work for me. I commented out the line, activated the plugin and it breaks again.
*EDIT* ok… it did work. WP was just reacting strangely. Took my two tries disabling the plugin, waiting for it to fix itself (don’t know why it wasnt immediate), and then reactivating with that line commented out.
]]>Hi,
This plugin would be perfect for what we need to do (paginate one-file, markdown syntax books) but unfortunately it does not work.
I tried it on a wordpress 3.05 install, with default theme, and when the plugin is activated , navigating the site gives empty pages (zero content).
Admin dashboard is fine though.
Disabling the plugin, all the pages shows up as normal.
Do you have any hints on how that could be fixed?
]]>This plugin doesn’t work at all in version 3.0. Shame, because it was exactly what I was looking for…
]]>I was struggling with custom-post-type rewrite rules and finally found out that multi-page-toolkit plugin was the one that messed-up rewrite rules by flushing them on INIT! of course i put to rest another mystery – every blog page generated a massive 500+ queries, which doubled loading time.
Proposed solution – assign
allpage_permalink
function to another action so that it plays well with other plugins and don’t generate unnecessary queries.
]]>Either I’m doing this wrong or what, the documentation to be honest, sucks.
So in that case I’ll just start of with how I think I’m supposed to be using this. I open up a new article, completely blank. I want to title the first page, so I click “Insert page title” (Seems self explanatory, right?) So great, got my title. Write a bunch of stuff, I click Insert a new page, then title that new page. And so on, and then once it’s complete, the drop down menu is completely backwards. The last page (we’ll say page, 5) Page 5 has a 1. before it, implying it is the first page.
How do I fix this?
]]>The option to view all pages on a long page (15,000 words in all) produces a blank content area and the pages index. Smaller mulit page pages with just two or three pages display OK, but this ten pager is a real problem.
https://www.charlesstrohmer.com/WP/wisdom-project/wisdom-tradition-introduction/
I have dismantled and reassembled the page every which way, the shortcodes are clean and there seems to be nothing in the article causing this.
This plugin has been really useful, especially for the academic sort of sites that I work on, and there is such a paucity of choice when it comes to this function. It would be a shame to lose it.
I think it really needs a shake-up. But for now I must get it to work, any help appreciated.
]]>Wow, I’ve never had a wordpress plugin take down my entire server. Really, this plugin made my server 100% unresponsive and had to reboot the server to bring it back online. Haven’t had to reboot in over a year.
So I would say thats a good sign that this plugin does not work with 3.0.
]]>