View Single Post
  #22  
Old 06-15-2017, 03:40 PM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: Smart Search and PHP7

Quote:
Originally Posted by Dougrun
yes, my line 793 is: $dirs[] = array_merge($file, self::dirstats($filename));

nope, same results.
Code:
[15-Jun-2017 23:22:48 UTC] PHP Fatal error: Cannot use "self" when no class scope is active in /home/xxx/public_html/store478up/modules/Checkout_One/checkout_one_functions.php on line 793 [15-Jun-2017 23:22:52 UTC] PHP Fatal error: Cannot use "self" when no class scope is active in /home/xxx/public_html/store478up/modules/Checkout_One/checkout_one_functions.php on line 793


OH I see.. I changed the 'self' to '$this'

so use

$dirs[] = array_merge($file, $this->dirstats($filename));

instead of
$dirs[] = array_merge($file, self::dirstats($filename));

forgot that change.

-Matt
__________________
4.7.7.
php7.1, AWS RDS database
memcache, reboot theme AWS EC2 load balancer, 2 c5.large instances CDSEO Shop By Filters,
AC onepage checkout and checkout tools,
altercart cash rewards, bcse DPM for paypal
Reply With Quote