• google
  • linkedin
  • skype
  • youtube
Namespace remover

Namespace remover

Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4455 18982616 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.4457 18984992 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.4457 18984992 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.4457 18985592 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4455 18982616 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.4460 18988216 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.4460 18988216 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.4460 18988816 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4455 18982616 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.4461 18991096 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.4461 18991096 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.4461 18991696 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4455 18982616 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.4462 18992048 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.4462 18992048 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.4463 18992680 12. preg_match() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1384 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4455 18982616 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.4464 18995192 10. simple_html_dom->parse_charset() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1088 0.4464 18995192 11. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1225 0.4464 18995192 12. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 0.4464 18995272 13. preg_match_all() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:700 Warning: Invalid argument supplied for foreach() in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4455 18982616 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.4464 18995192 10. simple_html_dom->parse_charset() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1088 0.4464 18995192 11. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1225 0.4464 18995192 12. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4467 18995224 9. simple_html_dom->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:53 0.4467 18995224 10. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1131 0.4467 18995224 11. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 0.4467 18995360 12. preg_match_all() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:700 Warning: Invalid argument supplied for foreach() in /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Call Stack: 0.0004 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0006 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1934 18585208 3. require_once('/home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php') /home/h118286/data/www/fabis.xyz/wp-blog-header.php:19 0.1952 18598248 4. include('/home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php') /home/h118286/data/www/fabis.xyz/wp-includes/template-loader.php:75 0.4437 18935104 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.4439 18935128 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.4452 18938296 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.4453 18960232 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.4467 18995224 9. simple_html_dom->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:53 0.4467 18995224 10. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1131 0.4467 18995224 11. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520

This small script will help you to get rid of annoying namespaces that looks like a garbage in the Namespace editor in case if you have many imported objects without namespace organizing. If you sure that your objects in the scene has unique names and there will no name clashes after namespace removing – do it without any doubts.

Just paste the code below in the Script Editor and run it:

import maya.cmds as cmds
nsp = cmds.namespaceInfo( lon=1, r=1 )
nsp.remove( 'UI' )
nsp.remove( 'shared' )

for n in nsp[::-1]:
    try:
        cmds.namespace( mv=( n, ':' ), f=1 )
        cmds.namespace( rm=n )
    except RuntimeError:
        pass

Leave a reply