Woocommerce: Getting Error 500

My site www.apicolacabalin.cl is getting an error 500. After testing with the Host Gator support team, we discovered that the Woocommerce plugin was causing this error. We change the folder name of the plugin to a new one, and now I can see the site again, but without the store. When I go to plugins, the woocommerce plugin remain deactivated, I have the last version of the plugin (Versión 3.3.5). If I try to activate the plugin again, I get the same error 500 again. Basically I can´t activate the…

Web Design Weekly #317

Headlines The Hidden Trap in Design Systems Brian McKenna shares some thoughts around the negative aspects of design systems. I can’t say I 100% agree with him, but it does raise some concerns that are worth thinking about. (uxplanet.org) Save valuable time with on-demand bug reproduction. ​FullStory captures every customer session on your site and replays it like a DVR, complete with the JavaScript console log and all underlying code. FullStory makes it easier than ever to diagnose problems without time-consuming repros or email exchanges. Get started with a free…

Search Posts with Custom Fields as query

It’s a little hard to explain but I suppose you can understand if I elaborate it even more… Normally when you search on a WordPress site, the results are either based on Title, Content, Category, Tags. I want my Search to go through posts and look at custom fields too… So if a user searches for a specific custom field, let’s say I have the post titled « Blah » and I created a field name is « Chocolate » and the field content is « Cadbury » so when user Search’s for « Cadbury » the post…

Plugin error "array_key_exists(): The first argument should be either a string or an integer" [closed]

Checking the Query Monitor, it’s throwing out this error, array_key_exists(): The first argument should be either a string or an integer which relates to this function: public function lsx_team_scporder_get_terms_orderby( $orderby, $args ) { if ( is_admin() ) return $orderby; $tags = $this->get_lsx_team_scporder_options_tags(); if ( ! isset( $args[‘taxonomy’] ) ) return $orderby; $taxonomy = $args[‘taxonomy’]; if ( is_array( $taxonomy ) && count( $taxonomy ) == 1 ) $taxonomy = $taxonomy[0]; if ( ! array_key_exists($taxonomy, $tags ) ) return $orderby; $orderby = ‘t.lsx_team_term_order’; return $orderby; } Why is it throwing out that…

404 redirect wp-login and wp-admin after changing login url

I’ve successfully changed the login page to a custom url, using this codes: This one into wp-config.php define(‘WP_ADMIN_DIR’, ‘secret-folder’); define( ‘ADMIN_COOKIE_PATH’, SITECOOKIEPATH . WP_ADMIN_DIR); This one into functions.php add_filter(‘site_url’, ‘wpadmin_filter’, 10, 3); function wpadmin_filter( $url, $path, $orig_scheme ) { $old = array( « /(wp-admin)/ »); $admin_dir = WP_ADMIN_DIR; $new = array($admin_dir); return preg_replace( $old, $new, $url, 1); } This one .htaccess RewriteRule ^secret-folder/(.*) wp-admin/$1?%{QUERY_STRING} [L] Now i’m able to login throught /secret-folder/, but i’m still able to login throught both wp-login.php and wp-admin. I can i redirect those pages to a 404…

Web Design Weekly #316

Headlines Front-End Developer Handbook 2018 A guide that anyone could use to learn about the practice of front-end development. It broadly outlines and discusses the practice of front-end engineering: how to learn it and what tools are used when practicing it in 2018. (frontendmasters.com) Introducing Calibre CLI (calibreapp.com) HelloSign API: Everything IT requires and Developers love. HelloSign API’s robust SDK, amazing support, detailed documentation, and super clean dashboard is sure to make your entire team happy. Try it free! (hellosign.com) Articles Swipe Views with CSS Snap Points Zouhir Chahoud explains…

Wrong UTC and local time only on wordpress

my wordpress shows the wrong time, UTC time on the picture should be 18:06:28 and localtime 15:06:28, so the UTC time is showed as local time, I use my own vps on digital ocean and time zone is correct, ls -l /etc/localtime lrwxrwxrwx 1 root root 36 Apr 19 23:20 /etc/localtime -> /usr/share/zoneinfo/America/Santiago also I have anothers php scripts on the server and the time is correct, cron job for whmcs for example works perfect, this is my config time on wordpress How to fix this?, the problem is in…

Get all pages that are published

I need to get all visible (published) pages and then determine which template they use. I need to do this in standard WordPress API not via the REST API. Is there a function that can do that? Source: https://wordpress.stackexchange.com/feeds

Web Design Weekly #315

Headlines Examples of everything new in ECMAScript 2016, 2017 and 2018 Quite an epic post which has loads of useful code examples explaining so many awesome new JavaScript features. (freecodecamp.org) Remote Teams (medium.com) Articles Automating Your Feature Testing With Selenium WebDriver Selenium is a framework for the automated testing of web applications. Using Selenium, you can basically automate every task in your browser as if a real person were to execute the task. In this article, Nils Schütte explains the ins and outs to help get you started. (smashingmagazine.com) Data…