Since I switched from PHP 5.6 to 7.1 I’ve got errors in the log:
[Sun Mar 12 07:33:06 2017] [warn] [client 144.76.29.162] mod_fcgid: stderr: PHP Warning: Declaration of PO_Walker::end_lvl(&$output, $depth) should be compatible with Walker_Page::end_lvl(&$output, $depth = 0, $args = Array) in /var/www/vhosts/hosting11009.af93d.netcup.net/httpdocs/wordpress/wp-content/plugins/cms-page-order/cms-page-order.php on line 0
[Sun Mar 12 07:33:06 2017] [warn] [client 144.76.29.162] mod_fcgid: stderr: PHP Warning: Declaration of PO_Walker::start_el(&$output, $page, $depth, $args) should be compatible with Walker_Page::start_el(&$output, $page, $depth = 0, $args = Array, $current_page = 0) in /var/www/vhosts/hosting11009.af93d.netcup.net/httpdocs/wordpress/wp-content/plugins/cms-page-order/cms-page-order.php on line 0
I googeled and found the reason:
Error Warning: Declaration of description_walker::start_el after PHP upgrade
https://wordpress.stackexchange.com/questions/249007/error-warning-declaration-of-description-walkerstart-el-after-php-upgrade
First I thought that the reason was the theme Senses Lite.
The error message comes from the plugin CMS Page Order. There is the bug in the file cms-page-order.php.
How to fix:
Please check the link, there you find how to fix it.
Hello,
is it possible to show the ordered pages via widget for the front end user navigation?
Thanks
]]>this puling is not working properly when we access admin panel vi SSL
so please add the below code line for your cms-page-order.php page in line number 35
define( ‘CMSPO_URL’, plugins_url( ‘/’, __FILE__ ) );
thanks
Thilina
yes – it still workd in 2015, WP4.1.1.
Because I needed to arrange 50+ pages over 4 sublevels I used an extra plugin to add admin css and added this to the plugins-css:
ol#cmspo-pages > li > div {font-size:16px;font-weight:900;}
ol#cmspo-pages > li > ol > li > div {font-size:14px;color:#0000aa!important;font-weight:600;}
ol#cmspo-pages > li > ol > li > ol > li > div {font-size:14px;color:#539300!important;}
.cmspo-delete{display:none;}
This gives every level a different color and size.
This also removes the dangerously placed delete-option ??
Maybe you can add it as an option?
]]>Hi, there are three issues:
Strict standards: Declaration of PO_Walker::start_lvl() should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array) in /.../wp-content/plugins/cms-page-order/cms-page-order.php on line 0
Strict standards: Declaration of PO_Walker::end_lvl() should be compatible with Walker_Page::end_lvl(&$output, $depth = 0, $args = Array) in /.../wp-content/plugins/cms-page-order/cms-page-order.php on line 0
Strict standards: Declaration of PO_Walker::start_el() should be compatible with Walker_Page::start_el(&$output, $page, $depth = 0, $args = Array, $current_page = 0) in /.../wp-content/plugins/cms-page-order/cms-page-order.php on line 0
This simply means, that PHP wants that the method definitions match (up to the default values – because your method is more strict: it doesn’t accept calls which are perfectly fine with the parent class because of the missing default values).
It works without it, but no reason to not include the patch, especially since it clutters the error log.
Patch is here:
https://gist.github.com/apfelbox/8538568
wp_localize_script is called (line 114) before script is registered or enqueued, so the javascript stops with an error on line 106 of cms-page-order.js.
Besides the collapse/expand links not showing, this seemed to lead to tree elements not being saved correctly.
A simple reordering of cms-page-order.php fixed the bug.
]]>To support 3.0+, you need to change line #35 to:
define( ‘CMSPO_URL’, plugin_dir_url(__FILE__) );
Otherwise it will break on SSL connections in Chrome at least.
]]>Love this plugin…but it seems to not save the new order to the database. When I reorder some pages, refresh the page, it goes back to the previous order. I tried checking the database directly after making a change and the post_parent value remains unchanged. Am I missing something? I looked for a button to save the order or something, but found nothing.
]]>Bill:
When your CMS Page Order plugin is enabled, the “pop-outs” no longer work in WordPress admin. In other words, if I hover over admin tabs such as “Appearance” or “Tools” or “Plugins”, the sub-category pop-outs do not appear (yet they work just fine when I de-activate your plugin).
Are you aware of this problem?
BTW, your plugin is much faster and more stable than WP Tree View, which is what I’m using now. I do hope you continue to support it.
Lang
]]>Hi
Ive searched and coded but still haven’t been successful with this one.
The behavior Im looking for is to limit ability to sort pages inside the page group only.
i.e. ‘Sub A 2’ should not be able to be moved to the ‘master B’ group
– master A
– – Sub A 1
– – Sub A 2
– – Sub A 3
– master B
– – Sub B 1
– – Sub B 2
– – Sub B 3
Ive used protectRoot and maxLevels to 2 to prevent the sub to escape to higher or lower depths.
Hello, is there a way to show this view when clicking on the “pages” menu instead of “All Pages”? It’s often preferable to the default table view.
]]>Hello,
I am french, so excuse my english, please.
Your plugin is very good, but i think that there is a problem.
When i change the order of my pages, it’s good.
But, when i use again “Pages –> ordre des pages (pages order)”, my page is white. So, I can’t change again the order.
I use MAMP and WordPress 3.5. Is this the problem ?
Thanks
]]>Hi Bill,
Sorry for being a total noob.
I recently uploaded your plugin to my plugin directory but I’m not sure how to get going from there :/
Please let me know the steps I need to take to get started!
Can’t wait to start using it!
Thanks,
Matt
]]>Hi, I use the plugin with multisite. In one site I re-arranged pages but this did not have any effect on the order the pages are displayed on the website. I emptied cache and tried with several browesrs, same result.
]]>Hi, firstly love your plugin. I would like to request a filter for the $defaults array in the cmspo_list_pages function [line 302] so I can customise the query that grabs the posts to be displayed in the tree.
For me this would be greatly useful as I use my own navigation system and want to only display posts that have certain meta data attached to them so as to not confuse my clients with posts that shouldn’t be there.
]]>Looks great, but does not seem to work on my custom post type. Should it?
]]>Hi,
I was having some trouble with the admin backend and it turned out to be due to “CMS Page Order” enqueuing it’s scripts globally in admin through “admin_init”. I made the following changes to make scripts load only on CMS Page Order admin screen:
Added action for scripts inside function “cmspo_admin_menu()”
// Add scripts
if( $page )
add_action( 'admin_print_scripts-' . $page, 'cmspo_print_scripts' );
add_action( 'admin_print_styles-' . $page, 'cmspo_print_styles' );
Moved enqueue scripts to their own function
function cmspo_print_scripts() {
wp_enqueue_script( 'jquery-ui-sortable', '', array('jquery'), false );
wp_enqueue_script( 'jquery-ui-effects', '', array('jquery', 'jquery-ui'), false );
wp_enqueue_script( 'jquery-ui-nestedsortable', CMSPO_URL . 'scripts/jquery.ui.nestedSortable-1.3.4.min.js', array('jquery', 'jquery-ui-sortable') );
wp_enqueue_script( 'cms-page-order', CMSPO_URL . 'scripts/cms-page-order.js', array('jquery', 'jquery-ui-sortable', 'jquery-ui-nestedsortable'), CMSPO_VERSION );
}
Remove enqueue scripts from the main admin_init call
function cmspo_admin_init() {
wp_register_style( 'cmspo_stylesheet', CMSPO_URL . 'styles/style.css', '', CMSPO_VERSION );
$strings = array(
'Expand_all' => __( 'Expand all', 'cms-page-order' ),
'Collapse_all' => __( 'Collapse all', 'cms-page-order' )
);
wp_localize_script( 'cms-page-order', 'cmspo', $strings );
global $nonce;
$nonce = wp_create_nonce( 'cms-page-order' );
}
Could you make a similar change to your official code?
Thanks for a great plugin!
Regards,
Chris
Hello. First off, this is an awesome plugin and I’m a huge fan of your work in general. So thank you.
Here’s my situation… On the site I’m working on I have CMS Page Order setup for all of my CPT’s. The Administrator role has access to the “Page Order” screen for generic Pages as well as CPT’s. I have custom capabilities setup for each of my CPT’s, wondering if I can grant privileges based on a chosen custom capability rather than “edit_pages?”
Maybe pass in an array of custom capabilities through a filter? Or would there be a more efficient way to accomplish this?
]]>Hello Bill,
This is a great plugin!
I’ve just noticed the following problem:
When WP trash has been disabled (define('EMPTY_TRASH_DAYS', 0 );
in wpconfig), WP automatically replaces the “Trash” link with a “Delete permanently” link in the list of pages (wp-admin/edit.php?post_type=page).
But in your plugin the “Trash” link is still showing.
Sorry for my limited English.
]]>Greetings! I have been using the CMS Page Tree View plugin, but I find it to be a bit unstable (doesn’t remember the order I place pages in, etc.). When I read about CMS Page Order, it sounded like a superior replacement. But after installing, I can’t for the life of me find any way to adjust settings! I get a list of pages and can drag-and-drop just fine, but that’s it: https://www.digitalprominence.com/share/Page_Order/Plain_List.png (screenshot)
Based on the screenshots I saw, I was looking forward to the color & “status labels with support for custom statuses”, etc. All I get is a boring gray list and (apparently) no way to adjust any settings! Can you help?
Thanks!
]]>Hi there,
I’m trying to create a Wiki-like website using the CMS page order with the wiki pages as just WordPress pages. The problem is, there may be a ton of pages and it would be difficult to show all of them. Sorry if this question has already been answered, but is it possible to filter which pages show up on the drop-down menu, such as a “See All” that lists all of the “Tutorials” pages without the pages themselves overwhelming the menu? Thanks so much for your help!
]]>Sometimes you just don’t need WordPress’ verbose edit.php, plugins like this one would be perfect as “default view.” What do you think about replacing (on request, via filter) the “all pages” page (which would be at the address edit.php?post_type=page)
I tried multiple times to do it myself but I failed miserably (it kept pointing me to admin.php?page=page-order)
I’m just getting a text list of my pages with no interactive functionality ??
]]>Hi,
I use WP 3.3.1 as multisite and with domain mapping (subdomains are mapped to subdirectories).
When I activate the plugin at one of these sub-blogs, then it integrates at “Pages” -> “Page Order”.
But under “page order” I see my POSTS listed by the plugin and no single one of my PAGES!
How to solve this?
Thanks.
There is a CSS conflict between the new WP 3.3.1 menu / submenu and CMS-Page-Order. Resulting behavior is that the WP submenu doesn’t fully overlay the CMS Page Order tree. The conflict can be resolved by changing the following entries in \cms-page-order\styles\style.css
Ln #11 change z-index 9999 to z-index 123
Ln #159 change z-index 9999 to z-index 124
This keeps them below WP 3.3.1 sub-menus which have a z-index of 125
]]>Is this a possibility?
And it would be nice to include a more convenient way to add support for custom post types!
After upgrading CMS Page Order from 0.2 to 0.3, I now get a 500 error when clicking on the Page Order link. This never happened with the previous version.
]]>I’ve translated the plugin into Danish. The files are available here: https://www.snedled.dk/sideraekkefolge-pa-dansk/
]]>Hi,
I’m very glad that so many of you like the plugin. It’s my first one and as you’ve been kind to report, has some bugs and lacks a couple of features. When I released it I didn’t really think about if I would have time to really support the plugin and I guess I’ve realized now that I don’t (I don’t do web full time).
What’s sad is that people are reporting bugs and feature suggestion and kindly giving patches and waiting for me to add them, but I don’t have the time. So, to meet these needs from the people, I was wondering if maybe someone would like to take over the responsibility for the plugin?
Contact me at [email protected].
]]>Very useful plugin but it spawns some errors with user roles lower than Editor. I guess it’s an easy fix. Here’s what comes out when WP_DEBUG is enabled:
// this appears on every page
Notice: Trying to get property of non-object in /path/to/wp/wp-admin/includes/template.php on line 1858
// and this when you try to change the page in the list of posts by entering a number
Warning: Cannot modify header information - headers already sent by (output started at /path/to/wp/wp-admin/includes/template.php:1858) in /path/to/wp/wp-includes/pluggable.php on line 934
]]>