Hello,
I tried creating the following script but is not working.
Please help. The only thing I get are the following warnings:
Notice: Undefined index: data in /var/www/vhosts/apopou.com/httpdocs/wp-content/plugins/advanced-woo-search/includes/class-aws-table.php on line 57
Notice: Undefined index: offset in /var/www/vhosts/apopou.com/httpdocs/wp-content/plugins/advanced-woo-search/includes/class-aws-table.php on line 93
Notice: Undefined index: offset in /var/www/vhosts/apopou.com/httpdocs/wp-content/plugins/advanced-woo-search/includes/class-aws-table.php on line 116
Notice: Undefined index: found_posts in /var/www/vhosts/apopou.com/httpdocs/wp-content/plugins/advanced-woo-search/includes/class-aws-table.php on line 118
Notice: Undefined index: found_posts in /var/www/vhosts/apopou.com/httpdocs/wp-content/plugins/advanced-woo-search/includes/class-aws-table.php on line 119
My code:
<?php
require_once(dirname(__FILE__) . ‘/../../wp-load.php’);
require_once(dirname(__FILE__) . ‘/../../wp-includes/plugin.php’);
ini_set(‘memory_limit’, ‘-1’);
ini_set(‘display_errors’, 1);
ini_set(‘display_startup_errors’, 1);
error_reporting(E_ALL);
do_action(‘aws_reindex_table’);