billerickson / Term-Menu-Order

Creates a 'menu_order' column to specify term order, allowing theme and plugin developers to sort term by menu order.
5 stars 4 forks source link

spl_autoload error #2

Open nuriarai opened 11 years ago

nuriarai commented 11 years ago

Hello, I just installed the term-menu-order and I got this errors in admin interface:

Warning: spl_autoload() [function.spl-autoload]: Unable to access editor_addon.class.php in /usr/home/plasticosjobgar.com/web/webwp/wp-content/plugins/term-menu-order/term-menu-order.php on line 42

Warning: spl_autoload() [function.spl-autoload]: Unable to access wp_user_search.class.php in /usr/home/plasticosjobgar.com/web/webwp/wp-content/plugins/term-menu-order/term-menu-order.php on line 42

Warning: spl_autoload() [function.spl-autoload]: Unable to access acf.class.php in /usr/home/plasticosjobgar.com/web/webwp/wp-content/plugins/term-menu-order/term-menu-order.php on line 42

However, the order input field is displayed in the screen category but when I try to save the record I obtain a header already sent error:

Warning: Can not modify header information - headers already sent by (output started at / usr / home / plasticosjobgar.com / web / webwp / wp-content / plugins / term-menu-order / term-menu-order.php: 42) in / usr / home / plasticosjobgar.com / web / webwp / wp-includes / pluggable.php on line 881

However, the data in the field is saved on database.

This is a WP 3.4.3 installation, with WPML and Types (also from IcanLocalize) plugins, so maybe they interfere in some manner in the function.

If you have any suggestion for this error I will be glad to hear you.

Thanks in advance!

Núria

billerickson commented 11 years ago

Hmm, I'm sending this issue to the original developer of the plugin since I've never used an autoloader before.

nuriarai commented 11 years ago

Thanks, Bill!

Rarst commented 11 years ago

I think spl_autoload_extensions('.class.php'); will bork autoload for any and all other code, since it replaces defaults (or whatever other code sets them to) with this value.

Also probably has no business at all modifying include path.