Hi Anne
I have all business template installed (1.3.9 version)
Whilst investigating an issue earlier today I found a rake of error messages in the cache folder.
PHP Deprecated: Function ereg() is deprecated in /var/www/vhosts/OURSITE/httpdocs/includes/index_filters/all_business/default_filter.php on line 121
There was a PHP upgrade alright as part of moving to the current server.
That line of code is:
Would you have a quick fix for this by any chance ?Code:// set the default sort order setting from the Admin when not defined by customer if (!isset($_GET['sort']) and PRODUCT_LISTING_DEFAULT_SORT_ORDER != ' ') { $_GET['sort'] = PRODUCT_LISTING_DEFAULT_SORT_ORDER; } if (isset($column_list)) { if ((!isset($_GET['sort'])) || (isset($_GET['sort']) && !ereg('[1-8][ad]', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { if (isset($column_list[$i]) && $column_list[$i] == 'PRODUCT_LIST_NAME') { $_GET['sort'] = $i+1 . 'a'; // $listing_sql .= " order by p.products_sort_order, pd.products_name"; break; } else { // sort by products_sort_order when PRODUCT_LISTING_DEFAULT_SORT_ORDER is left blank // for reverse, descending order use: // $listing_sql .= " order by p.products_sort_order desc, pd.products_name"; //$listing_sql .= " order by p.products_sort_order, pd.products_name"; break; } }


Reply With Quote
