gerryhickman
Forum Replies Created
-
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Honour the DISALLOW_FILE_MODS settingWhen DISALLOW_FILE_MODS is set, the plugin should refuse to make any modifications to the WordPress site.
This PHP warning might be related to a change in WordPress core 4.7.x related to new class ‘wp-includes/class-wp-hook.php’. As it’s a warning, you would not normally see it in the browser, unless you’d enabled WP_DEBUG or told PHP to display errors.
Here’s a possible fix, it’s experimental only, but it’s only one line, so quite easy to revert.
make a backup, then edit collapsPage.php, change this line near the top (look out for word wrap, this code is only two lines)
//add_action('wp_head', wp_enqueue_script('jquery')); add_action('wp_enqueue_scripts', function(){wp_enqueue_script('jquery');});reload the page to test. On my system, the warning went away after this change, and the JavaScript is still able to expand and collapse.
- This reply was modified 8 years, 5 months ago by gerryhickman.
Forum: Plugins
In reply to: [Collapsing Pages] NEW Thread about Excluding PagesThe code change you made looks correct (in my example above the code is on one line, but this should not matter). Check the PHP file you changed is the one being used by the active plugin. Check the page exclusion IDs are correct, check browser cache is clear, check the plugin is active by changing settings and seeing the site change.
You can also activate debug mode by going to “Appearance : Widgets : Collapsing Pages : Advanced Options : Show Debugging…”, then reload the page, view source, then scroll down until you see these two important headings
collapsPage options: PAGE QUERY:you should be able to see where it is going wrong, or post the output of those two headings here.
Forum: Plugins
In reply to: [Collapsing Pages] NEW Thread about Excluding PagesI had the same issue with Collapsing Pages 1.01, it looks like the developer commented out the part of the code that excludes pages – there might be a good reason, but anyway in my case I was able to uncomment the code and get the exclusions to work again.
diff collapsPageList.php collapsPageList.bak 183c183,184 < $inExcludePageQuery ="AND post_name $in ($inExclusionsPage) AND ID $in ($inExclusionsPage)"; --- > //$inExcludePageQuery ="AND post_name $in ($inExclusionsPage) > //AND ID $in ($inExclusionsPage)";It may also be necessary to update “Appearance : Widgets : Collapsing Pages” and use page IDs separated by commas instead of page titles.