node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined When I install the FoundationPress, after I run gulp build I saw this message, this is because the node version problem. the have mention in this post https://github.com/postcss/postcss-nested/issues/30 Solution vim node_modules/postcss/lib/lazy-result.js Put this to the first line of the file lazy-result.js Continue reading “lazy-result.js ReferenceError: Promise is not defined”
Tag Archives: wordpress
Remove WordPress Malware using Linux Shell Console
Connect to Jetpack using behind varnish and nginx
Normally if you use varnish or other reverse proxy, you may use other port in wordpress. So you are not able to connect to Jetpack, because to connect Jetpack, you must have port 80 to authorize. It may display the error like this from your Jetpack debugger SELF: Array ( [headers] => Array ( [server] Continue reading “Connect to Jetpack using behind varnish and nginx”
Use Shortcodes in WordPress Widget without Plugins
You can add this to your function to enable your short code in widget without pain. add_filter( ‘widget_text’, ‘shortcode_unautop’); add_filter( ‘widget_text’, ‘do_shortcode’);
How to Setup Temporary WordPress Staging Site
I’m going to Setup Temporary WordPress Staging Site using same MySQL database. It is very useful for you to develop themes or plugin without affect to your current running sites, and you need to use real data to test it out. Prepare your contents Copy all your current contents from /var/www/juzhax.com to /var/www/dev.juzhax.com Set a Continue reading “How to Setup Temporary WordPress Staging Site”
How to remove ver from js and css in WordPress ?
Remove the ver=date behind the JS and CSS in wordpress. // Load in any own plugin function juz_remove_wp_ver_css_js( $src ) { if ( strpos( $src, ‘ver=’ ) ) $src = remove_query_arg( ‘ver’, $src ); return $src; } add_filter( ‘style_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 ); add_filter( ‘script_loader_src’, ‘juz_remove_wp_ver_css_js’, 9999 );
Remove ver version number for JS and CSS in WordPress
The varnish load so much of different version in my wordpress, so I would like to remove all the ver from the source. 53.76 RxURL /wp-content/themes/responsivepro/core/js/responsive-modernizr.js?ver=2.6.1 51.22 RxURL /wp-content/themes/responsivepro/core/js/responsive-scripts.js?ver=1.2.4 16.12 RxURL /wp-includes/js/jquery/jquery.js?ver=1.10.2 15.70 RxURL /wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1 15.59 RxURL /wp-content/themes/responsivepro/core/css/style.css?ver=1.9.3.4 15.59 RxURL /wp-content/themes/responsivepro/pro/lib/css/style.css?ver=1.0 15.58 RxURL /wp-content/plugins/RadControl/js/adclk.js?ver=2013-06-21 15.56 RxURL /wp-content/themes/responsivepro/style.css?ver=1.9.3.4 15.56 RxURL /wp-content/plugins/jetpack/modules/widgets/wid Solution to solve Add this Continue reading “Remove ver version number for JS and CSS in WordPress”
PHP message: PHP Fatal error: Class ‘WP_List_Table’ not found in
PHP message: PHP Fatal error: Class ‘WP_List_Table’ not found in You may see this error in WordPress while disabled some plugin, because they plugin is need to use the WP_List_Table class from the WordPress. Solving the problem Add this to any of your activated plugin the it will load the class if it is not Continue reading “PHP message: PHP Fatal error: Class ‘WP_List_Table’ not found in”
SSL read: error:00000000:lib(0):func(0):reason(0), errno 0
SSL read: error:00000000:lib(0):func(0):reason(0), errno 0 Error in WordPress, because of the SSL You may try to upgrade the SSL of your server if not, you can disable the HTTPS in the config file of your wp-config.php Disable HTTPS in WordPress Config add line to your wordpress wp-config.php define( ‘JETPACK_CLIENT__HTTPS’, ‘NEVER’ );
