e-smartsolution » Blog Archives

Author Archives: Moussa Ki Sow

Web developers webmaster Website developer Wordpress

SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily unavailable

Published by:

SystemException in API_Linux.cpp:172: setuid() failed: Resource temporarily unavailable??

I believe after that error, the WordPress stop

[Wed Mar 20 17:40:16 2019] [error] [client 80.47.1.117:0] End of script output before headers: admin-ajax.php

 

Heat map SEO Website developer Wordpress

What is heatmap?

Published by:

What is heatmap?

A heatmap is a graphical representation of data that uses a system of color-coding to represent different values. Heatmap provides realtime analytics to help chief editors and marketeers understand in seconds which are their best performing contents.

Download Heat map for WordPress,

Website developer Wordpress

carouFredSel, FadeIn effect

Published by:

carouFredSel, FadeIn effect

scroll { fx : “scroll” }
Indicates which effect to use for the transition.
Possible values: “none”, “scroll”, “directscroll”, “fade”, “crossfade”, “cover”, “cover-fade”, “uncover” or “uncover-fade”.

Example:

jQuery(document).ready(function($){
$(‘#divtestimonials’).carouFredSel({
responsive: true,
width: ‘100%’,
scroll: 1,
auto:4000,
scroll: {
fx:’fade’,
items: 1,
duration: 1000

},
items: {
width: lalargeur,
height: 250, // optionally resize item-height
visible: {
min: 1,
max: 1

}

}
});

Website developer Wordpress

Solution for this, The hook name can only contain numbers, letters, dashes, periods and underscores, WP 5.0.2 and ACF

Published by:

Solution for this, The hook name can only contain numbers, letters, dashes, periods and underscores.
Environment:
Wordpress:5.0.2

Error message:
…The hook name can only contain numbers, letters, dashes, periods and underscores. hooks.min.js:1:1495
o
http://localhost:8888/esse/wp-includes/js/dist/hooks.min.js:1:1495
i/<
http://localhost:8888/esse/wp-includes/js/dist/hooks.min.js:1:1707
add_action
http://localhost:8888/esse/wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.min.js:1:1933

http://localhost:8888/esse/wp-content/plugins/acf-enhanced-message-field/js/input.js:19:2

http://localhost:8888/esse/wp-content/plugins/acf-enhanced-message-field/js/input.js:1:2
..

Resulting the ACF repeater won’ t save the content. Any solution?

1- After a long time investigating it looks like ACF(Avanced Custom Field), or/and ACF Repeater & Flexible Content Collapser is not working on the WordPress Version 5.0.2.
The urgent and quick solution for me was going back the previous version of WordPress.
WP version 5.0.2 and ACF

Website developer Wordpress

Exclude category WordPress ,WP_Query category__not_in or cat -cat_ID not working

Published by:

Exclude category WordPress ,WP_Query category__not_in or cat -cat_ID not working

Here is the example:

$recent_posts_query_args = array(
‘posts_per_page’ => 5,
‘post_status’ => ‘publish’,
‘order’ => ‘DESC’,
‘post_type’ => ‘product’,
‘category__not_in’=>array(43)
$recent_posts = new WP_Query( $recent_posts_query_args );

It suppose to not include the articles where the category has code 43, but is not working.

The reason is not working is because, the category 43 is not WP category code is tag code 43 for post type “product”, so to do so you will need filter using tax_query

$recent_posts_query_args = array(
‘posts_per_page’ => 5,
‘post_status’ => ‘publish’,
‘order’ => ‘DESC’,
‘post_type’ => ‘product’,
‘tax_query’=>array(array(
‘taxonomy’ => ‘product_cat’,
‘terms’ => 43,
‘field’ => ‘id’,
‘operator’ => ‘NOT IN’,
))

);
$recent_posts = new WP_Query($recent_posts_query_args );

Website developer Wordpress

Fixed size of Flexslider, controlling the height

Published by:

1- Incliude the stylesheet abd jquery and flexslider-min


var $f = jQuery.noConflict(true);
$f(window).load(function() {
// The slider being synced must be initialized first
$f(‘#carousel’).flexslider({
animation: “slide”,
controlNav: false,
animationLoop: false,
slideshow: false,
itemWidth: 75,
itemMargin: 5,
asNavFor: ‘#slider’
});

$f(‘#slider’).flexslider({
animation: “slide”,
controlNav: false,
animationLoop: false,
slideshow: false,
sync: “#carousel”
});
});

2. … and now you will to control the height of the images… by add the next style rules..

.flexslider .slides img {
max-height: 600px; /*maximum height for all slides*/
width: auto; /*proper aspect ratio of images*/
max-width: 100%; /*maximum width for all slides*/
margin: 0 auto; /*centering images in the container*/
}
Website developer Wordpress

Custom Field Not showing in wp-admin, access by using the ACF url

Published by:

Custom Field Not showing in wp-admin, access by using the ACF url

ACF, is Advanced Custom Fields for WordPress Developers.
ACF e-smartsolution

If ACF disappeared from ‘New posts’ in the ‘Admin’ back-end, the quick to access directly is by the its URL, your-website.com/wp-admin/edit.php?post_type=acf-field-group

Website developer Wordpress

How to reset password in WordPress via phpMyadmin

Published by:

How to reset password in WordPress via phpMyadmin

You can recover password in WordPress by e-mail. Now click on Lost your password? Type your username or email address and then click on Get New Password.
In the case if you also forgot your email, basically you don’t no information, us last resource to recover your user and password is by accessing the database.

1- Go to PHPMyAdmin.

You will need to access your PHPMyadmin con control panel, and go Now select table prefix_users, usually wp_users

2- Once on phpMyadmin, you can find out your email linked to your account.

You can go back the login page on wordpress to recover your password using this email linked to the username.

3- Reset the password directly on the database, mysql.

You prefer to reset the password directly on the database, to do so, you will need to encrypt your password using the MD5 encryption that is used by WordPress.

Click on the https://e-smartsolution.co.uk/encrypt/ and enter your password en click encrypt. Copy the encrypt password en paste on column that says, “users_pass” on phpMyadmin.