X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Smart Search and PHP7 (https://forum.x-cart.com/showthread.php?t=74902)

Dougrun 06-15-2017 03:24 PM

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


mattstyle2 06-15-2017 03:40 PM

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

Dougrun 06-16-2017 09:42 AM

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.

mattstyle2 06-16-2017 09:43 AM

Re: Smart Search and PHP7
 
any new errors in the log files?

Dougrun 06-16-2017 09:58 AM

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.

Dougrun 06-16-2017 10:08 AM

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.

Dougrun 06-16-2017 10:17 AM

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.

mattstyle2 06-16-2017 11:03 PM

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..

mattstyle2 06-16-2017 11:05 PM

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..

Dougrun 06-19-2017 01:40 PM

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?


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.