If you remove all the files in /etc/yum.repos.d you may see this error. You can restore using the way below. Check your version and reinstall using this way.
Author Archives: juzhax
How to Solve WordPress asked for FTP credentials
I know it is very annoying when you are going to install a PLUGIN in WordPress. I like the way, one click and install for PLUGINS and THEMES in WordPress. Here is the way that I’m using: Edit your wp-config.php and add the line into it.
Why You Should Never Ever Buy XiaoMi Products ?
I’m not happy with their product, that’s why I write this article to let you know the service and the service policy of their product. If you are using their product and is working fine, then you are good luck. If there is any problem with their product, you are in big trouble. For personally, Continue reading “Why You Should Never Ever Buy XiaoMi Products ?”
How to disable AutoSave in WordPress ?
Sometimes we do not need the auto save function in the editor in WordPress, it will increase your database or slow down you editing experience while you are in slow internet connection. Here is the solution to disable it, if you need to re-enable it just comment them away.
Publishing Failed in WordPress
When you post in WordPress with over 5MB text post, you may receive this error with red color. or you found in your php error log This is because WordPress need more time to execute and process and formatting your post over the maximum execution time. You may use the way below to solve this. Continue reading “Publishing Failed in WordPress”
An error occurred while installing mysql2 (0.5.2), and Bundler cannot continue.
Gem files will remain installed in /var/www/discourse/vendor/bundle/ruby/2.5.0/gems/mysql2-0.5.2 for inspection. Results logged to /var/www/discourse/vendor/bundle/ruby/2.5.0/extensions/x86_64-linux/2.5.0-static/mysql2-0.5.2/gem_make.out An error occurred while installing mysql2 (0.5.2), and Bundler cannot continue. Make sure that gem install mysql2 -v ‘0.5.2’ –source ‘https://rubygems.org/’ succeeds before bundling. In Gemfile: mysql2 I found the best way to solve the problem. I think that you may missing Continue reading “An error occurred while installing mysql2 (0.5.2), and Bundler cannot continue.”
`require’: cannot load such file — php_serialize (LoadError)
I’m running some of the Ruby script inside Docker and it show me this error. The solution I use to solve it using the way below. First, goto the path of your Gemfile echo “gem ‘php-serialize’” >>Gemfile bundle install
File ./vendor/autoload.php missing or not readable. in centminmod phpMyAdmin
After installed the phpMyAdmin in centminmod, I saw this error message. File ./vendor/autoload.php missing or not readable. Most likely you did not run Composer to install library files. I like to fix it manually and access to my server shell and run these command. cd /usr/local/nginx/html/1111_mysqladmin12345 git pull rm -rf composer.phar wget -cnv https://getcomposer.org/composer.phar -O Continue reading “File ./vendor/autoload.php missing or not readable. in centminmod phpMyAdmin”
Create WordPress widget template from scratch
I’ve save down the most basic widget code for WordPress, you can copy this to your plugin and modify it to start your first widget. You can save time on this tutorial to help you create wordpress widget from scratch. <?php class example_widget extends WP_Widget { function __construct() { parent::__construct(false, $name = ‘Example Widget’); } Continue reading “Create WordPress widget template from scratch”
