Smart Search and PHP7
Has anyone tried making the latest unencrypted version of Smart Search to work on PHP7? I just upgraded to PHP7, and found some errors with it.
On the front-end, the ajax predictive search show some errors regarding the use of some deprecated functions, the mysql_ functions and preg_replace. Managed to fix these. On the back-end, opening Tools - Smart Search just show a blank page. |
Re: Smart Search and PHP7
We could help you if you'd like to drop us an email. We would need access to the apache error log file to see what is wrong so we can better quote.
http://www.bcsengineering.com/free_quote/ thanks! Carrie |
Re: Smart Search and PHP7
we can get this fixed for you. Just open a ticket at https://www.cflsystems.com/support/
|
Re: Smart Search and PHP7
I got alterdcart onepage checkout to work with php 7 and xc4.7.7
remove: PHP Code:
from modules/cdseolinks/cdseo_config.php if you have that installed.. if not just add the code below to init.php and move it to /init.php after PHP Code:
and add a mysql_insert_id function so it looks like this PHP Code:
This will bring back the old mysql functions :) then mod /modules/Checkout_One/JSON.php (not sure this is required but I had to do it for hhvm to work). PHP Code:
finally change a template file: /skin/common_files/modules/Checkout_One/checkout_one_payment_methods.tpl line 29: PHP Code:
just comment out the code to make things display:none.. The radio buttons for payment were not available. seems to work.. I did a test order with a bad cc # and it declined it.. Using BSCE's authorize.net's DPM mod.. Still nned to figure out a way to subscribe mail chimp users still.. I'll update this as I work on it. also, there's a few @mysql_query functions in the Checkout_One code you need to change to @db_query find those.. cd modules/Checkout_One grep -r --include="*.php" "@mysql_query" find all instances and change to "@db_query" there's not that many. -Matt |
Re: Smart Search and PHP7
Check this cloud service: https://market.x-cart.com/addons/cloudsearch.html
It provides more functionality than SmartSearch |
Re: Smart Search and PHP7
Thanks for both the offers regarding Smart Search. I managed to fix it. Tools - Smart Search on the backend showed a blank page because it still uses the deprecated mysql_query function. It didn't show the error because there was this error suppresing operator '@' in front of those functions. The fix is just basically replacing all mysql_query function with xcart's db functions.
|
Re: Smart Search and PHP7
Quote:
The drawback I find with Cloud Search is that it couldn't search on custom fields, which I do need. And the pricing. Other than that it seems like good stuff. |
Re: Smart Search and PHP7
Quote:
you can modify modules/Cloud_Search/func.php to make it search custom fields! just mod the query func_query(" SELECT p.product AS name, p.productcode AS sku, p.descr AS description, p.fulldescr AS fullDescription, p.productid AS id, p.keywords AS keywords, then append to description: $products[$k]['description'].=" ".$p['keywords']; --- how bout that?! CS is pretty cheap compared to other search providers such as SLI search. -Matt |
Re: Smart Search and PHP7
Quote:
Thanks! I might look into this again later. |
Re: Smart Search and PHP7
Quote:
Thanks, whis also works when still on php 5.6 but upgrading to X-Cart 4.7.7, I did not have to change mysql_query though for just 4.7.7 on php 5.5. |
All times are GMT -8. The time now is 06:11 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.