Another error regarding with imagick in Centos 7, I’ve been looking around in many forums to solve this warning, and I noted down here. Solved with this solution Then recompile your PHP.
Tag Archives: php
PHP Warning: Version warning: Imagick was compiled against Image Magick version 1690 but version 1691 is loaded
After I update the PHP to the newest version 7.3.15 and this errr appear in my CentOS 7 Solved by this solution Here i noted down the step I solve this problem that found from centminmod forums
System error ‘[security.WindMcryptCbc.encrypt] extension ‘mcrypt’ is not loaded.’.
I don’t like error, but I have to fix the error, I note down here to do reference. I’m using CentOS 7, I think cause by upgraded from PHP 5 to PHP 7. I’m using DirectAdmin. What I found from internet The mcrypt extension has been abandonware for nearly a decade now, and was also Continue reading “System error ‘[security.WindMcryptCbc.encrypt] extension ‘mcrypt’ is not loaded.’.”
How To Get Parent Category Name In WordPress
It is not difficult to get the name using the build in function from WordPress. You may use this for build your own plugin or list out the related post using the category data from the parent category. Here is the PHP Code that can display out the name of the parent category.
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”
Convert Text to Slug URL in PHP
Convert Text to slug URL, example: Brown & Cony’s Secret Date! will become: brown-conys-secret-date Will be nice url. function slug_url($text) { // replace non letter or digits by – $text = preg_replace(‘~[^\\pL\d]+~u’, ‘-‘, $text); // trim $text = trim($text, ‘-‘); // transliterate $text = iconv(‘utf-8’, ‘us-ascii//TRANSLIT’, $text); // lowercase $text = strtolower($text); // remove unwanted Continue reading “Convert Text to Slug URL in PHP”
Country Code in Array with PHP Value
Just copy and paste into your code to use the country code. <?php $countries = array ( ‘AF’ => ‘Afghanistan’, ‘AX’ => ‘Aland Islands’, ‘AL’ => ‘Albania’, ‘DZ’ => ‘Algeria’, ‘AS’ => ‘American Samoa’, ‘AD’ => ‘Andorra’, ‘AO’ => ‘Angola’, ‘AI’ => ‘Anguilla’, ‘AQ’ => ‘Antarctica’, ‘AG’ => ‘Antigua And Barbuda’, ‘AR’ => ‘Argentina’, ‘AM’ Continue reading “Country Code in Array with PHP Value”
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”
