Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Smart Search and PHP7

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #21  
Old 06-15-2017, 03:24 PM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 900
 

Default Re: Smart Search and PHP7

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
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #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
  #23  
Old 06-16-2017, 09:42 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 900
 

Default Re: Smart Search and PHP7

thanks, now the add to cart works, but when I go to the checkout page, I get a blank page. looking in logs now.. I'll let you know.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #24  
Old 06-16-2017, 09:43 AM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: Smart Search and PHP7

any new errors in the log files?
Reply With Quote
  #25  
Old 06-16-2017, 09:58 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 900
 

Default Re: Smart Search and PHP7

No php errors, but I get shipping error log update:

Code:
[16-Jun-2017 17:53:17] (shop: 16-Jun-2017 10:53:17) SHIPPING warning: USPS module error: [-2147219099] clsRateV4:UnpackRateNode USPS_error_description:Missing value for ZipDestination. Request URI: /store478up/cart.php?mode=checkout Backtrace: /home/xxx/public_html/store478up/shipping/mod_USPS.php:714 /home/xxx/public_html/store478up/shipping/mod_USPS.php:683 /home/xxx/public_html/store478up/shipping/mod_USPS.php:169 /home/xxx/public_html/store478up/shipping/myshipper.php:155 /home/xxx/public_html/store478up/include/func/func.shipping.php:254 /home/xxx/public_html/store478up/include/cart_calculate_totals.php:152 /home/xxx/public_html/store478up/cart.php:565 ------------------------------------------------- [16-Jun-2017 17:53:17] (shop: 16-Jun-2017 10:53:17) SHIPPING warning: FedEx module error: [521] Destination postal code missing or invalid. Request URI: /store478up/cart.php?mode=checkout Backtrace: /home/xxx/public_html/store478up/shipping/mod_FEDEX_RateService_v9.php:794 /home/xxx/public_html/store478up/shipping/mod_FEDEX_RateService_v9.php:141 /home/xxx/public_html/store478up/shipping/myshipper.php:155 /home/xxx/public_html/store478up/include/func/func.shipping.php:254 /home/xxx/public_html/store478up/include/cart_calculate_totals.php:152 /home/xxx/public_html/store478up/cart.php:565 ------------------------------------------------- [16-Jun-2017 17:53:17] (shop: 16-Jun-2017 10:53:17) SHIPPING warning: Service: UPS Error: The requested service is unavailable between the selected locations. (errorcode: 111210) Login: Shipping address: Shipping city: Shipping state: California Shipping country: United States Shipping zipcode: Request URI: /store478up/cart.php?mode=checkout -------------------------------------------------
Same blank white checkout page. Cart page works ok.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #26  
Old 06-16-2017, 10:08 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 900
 

Default Re: Smart Search and PHP7

even stranger, I no longer see Checkout One in my module list. It is still running that checkout page fine though.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #27  
Old 06-16-2017, 10:17 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 900
 

Default Re: Smart Search and PHP7

I can see the module in the tables fine and its active in the tables, but its no longer showing on the admin side.
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #28  
Old 06-16-2017, 11:03 PM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: Smart Search and PHP7

Quote:
Originally Posted by Dougrun
I can see the module in the tables fine and its active in the tables, but its no longer showing on the admin side.


did you run checkout_one_sql.php ? that is in the uploads folder of the mod..

it adds the values to the config table in order to show the mod under modules and also lets you change the settings.

for the shipping module error.. I don't know about that, I don't use any shipping calculation modules.. they might be incompatible.

I hacked my system so the shipping values change per SKU depending on where the item is located.. similar to what amazon does with their shipping templates..
__________________
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
  #29  
Old 06-16-2017, 11:05 PM
 
mattstyle2 mattstyle2 is offline
 

Advanced Member
  
Join Date: Apr 2015
Posts: 54
 

Default Re: Smart Search and PHP7

for the blank page issue.. double check that the @db_query or @mysql_query thing has been fixed.. that took me 4ever to debug..
Reply With Quote

The following user thanks mattstyle2 for this useful post:
Dougrun (06-19-2017)
  #30  
Old 06-19-2017, 01:40 PM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 900
 

Default Re: Smart Search and PHP7

It WORKS!! The little grep -r --include="*.php" "@mysql_query" didnt work, i had to manually go through them and found a bunch that didnt update. Thanks!

Any other snafu's I should know about with php7?
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:11 PM.

   

 
X-Cart forums © 2001-2020