View Single Post
  #2  
Old 04-25-2019, 12:18 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,964
 

Default Re: altered carts OnSale mod for php 7+

I use AC's Cash Rewards and had an issue with PHP 7.x because AC Cash Rewards uses mysql_real_escape_string() which is not supported in PHP 7.x.

Check your log files to see if you have a PHP error for mysql_real_escape_string()

If yes maybe the following will help.

Steve pointed me to X-Cart's func_addslashes($html_escape) so I added the following to func.core.php

After:
Code:
function func_get_internal_banners($type) { global $sql_tbl; if (empty($type)) { return; } $return = func_query("SELECT * FROM $sql_tbl[internal_banners] WHERE type='$type'"); return $return; }

Add:
Code:
function mysql_real_escape_string($html_escape) { return func_addslashes($html_escape); }
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote