• 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1863 19029000 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.1866 19031376 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.1866 19031376 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.1866 19031976 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1863 19029000 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.1868 19034600 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.1868 19034600 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.1869 19035200 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1863 19029000 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.1870 19037480 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.1870 19037480 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.1870 19038080 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1863 19029000 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.1871 19038432 10. simple_html_dom->parse() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1085 0.1871 19038432 11. simple_html_dom->read_tag() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1191 0.1871 19039064 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1863 19029000 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.1872 19041576 10. simple_html_dom->parse_charset() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1088 0.1872 19041576 11. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1225 0.1873 19041576 12. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 0.1873 19041656 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1863 19029000 9. simple_html_dom->load() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:44 0.1872 19041576 10. simple_html_dom->parse_charset() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1088 0.1872 19041576 11. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1225 0.1873 19041576 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1876 19041608 9. simple_html_dom->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:53 0.1876 19041608 10. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1131 0.1876 19041608 11. simple_html_dom_node->parse_selector() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:520 0.1876 19041744 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.0003 395928 1. {main}() /home/h118286/data/www/fabis.xyz/index.php:0 0.0004 397680 2. require('/home/h118286/data/www/fabis.xyz/wp-blog-header.php') /home/h118286/data/www/fabis.xyz/index.php:17 0.1546 18631016 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.1562 18644056 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.1846 18981408 5. the_content() /home/h118286/data/www/fabis.xyz/wp-content/themes/wpex-tetris/single.php:35 0.1847 18981432 6. apply_filters() /home/h118286/data/www/fabis.xyz/wp-includes/post-template.php:240 0.1861 18984600 7. wp_lightboxplus->filterLightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-includes/plugin.php:235 0.1862 19006576 8. wp_lightboxplus->lightboxPlusReplace() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:22 0.1876 19041608 9. simple_html_dom->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/filters.class.php:53 0.1876 19041608 10. simple_html_dom_node->find() /home/h118286/data/www/fabis.xyz/wp-content/plugins/lightbox-plus/classes/shd.class.php:1131 0.1876 19041608 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