frameitsam
Advanced Member
USA
131 Posts Pre-sales questions only (More Details...)
|
Posted - 01/31/2021 : 10:32:30
Hello,
I've just migrated my site for http://express-distributing.com/ over to a new cPanel server. Before migrating it was on 5.6 PHP, but after migration, it is now on 7.3 PHP. When updating from 5.6 to 7.3 it requires a couple of code changes, which I have accomplished. I have successfully run the updatestore.php action with no errors. I have updated both the db_conn_open.php and includes.php to use the <?PHP on the first line and ?> to close the file. I have also updated the includes.php settings from eg: $sortBy=1; to $GLOBALS['sortBy']=1;. I'm still getting an error "No incfunctions.php file" and none of my products are displayed.
What have I missed? THank you for the help.
Scott McLaughlin President Heartland Hosting, LLC
|
Vince
Administrator
42761 Posts |
Posted - 01/31/2021 : 13:43:24
|
Phil
ECT Moderator
United Kingdom
7680 Posts |
Posted - 02/01/2021 : 07:54:54
Hi Scott, At the top of every page you have <SCRIPT LANGUAGE="php"> session_cache_limiter('none'); session_start(); </SCRIPT> and further down you have <SCRIPT LANGUAGE="php"> include "vsadmin/db_conn_open.php"; include "vsadmin/includes.php"; include "vsadmin/inc/languagefile.php"; include "vsadmin/inc/incfunctions.php"; </SCRIPT> So you need to replace <SCRIPT LANGUAGE="php"> with <?php and </SCRIPT> with ?> * Database Migrations and Conversions* * ASP to PHP Cart Conversions**Contact Us**Buy The PHP Capture Card Plugin**Rate Our Services/View Our Feedback*
|
frameitsam
Advanced Member
USA
131 Posts Pre-sales questions only (More Details...)
|
Posted - 02/01/2021 : 08:07:47
Thank you Phil. I will make all those changes right now and let you know if it works.
Scott McLaughlin President Heartland Hosting, LLC
|
Phil
ECT Moderator
United Kingdom
7680 Posts |
Posted - 02/01/2021 : 09:58:55
Edited by - Phil on 02/01/2021 10:04:28
|
frameitsam
Advanced Member
USA
131 Posts Pre-sales questions only (More Details...)
|
Posted - 02/01/2021 : 12:09:31
I think it would be better if I just update the site to one of the Responsive Designs. How much work would it be for me to convert from the very old version I have.
Scott McLaughlin President Heartland Hosting, LLC
|
Vince
Administrator
42761 Posts |
Posted - 02/01/2021 : 13:14:20
|
frameitsam
Advanced Member
USA
131 Posts Pre-sales questions only (More Details...)
|
Posted - 02/01/2021 : 13:43:56
I'm very comfortable with WordPress. Would the integration from old to new be fairly seamless if I chose your WordPress? Does the admin of the ECT cart take place on the Dashboard (ala WooCommerce) or is it still done through a separate login /vsadmin? I think my few customers still using ECT would like the low learning curve if the cart remained the same. Also can I use any WordPress Theme and/or Theme Builder (Elementor, Brizy, Divi etc.)? I have licenses for all.
Do I just purchase "WorPress for Ecommerce Templates"? re: https://www.ecommercetemplates.com/WordPress-for-Ecommerce-Templates
Scott McLaughlin President Heartland Hosting, LLC
|
frameitsam
Advanced Member
USA
131 Posts Pre-sales questions only (More Details...)
|
Posted - 02/01/2021 : 19:03:54
Hey Phil,
So I went through all my code and I think I have almost everything working again, but I still have a couple problems.
First is the easier one. Why is my inclminilogin dialog box left aligned on my products.php, proddetails.php, categories.php but ok on my cart.php? They all look identical to me.
Second problem, HOMEPAGE: I'm missing everything below the Special box. There is supposed to be dynamic content here using the Dynamic Display addon from System 9 (ectmodifications.com). They do not appear to be in business any longer. It was working on the old server using PHP ver 5.6. In looking at the code it looks to me (not a PHP code specialist at all) that maybe the variables in the file /home/hostnein/express-distributing.com/dynamic_cat131.php should also be edited to resemble the GLOBAL variables in /home/hostnein/expressdistributing.com/vsadmin/includes.php?
*** FROM THIS *** $hot_deal_image="false"; //display an image to promote items that are on sale $hotpercentage="10"; //percentage discount that is needed (between list price and actual price) to trigger discount image $tablewidth = "175"; // width of each product box $usespecials="true"; // set to true if you want to display specials/sale items using the ADDITIONAL SECTIONS feature of product admin . . .
*** TO THIS *** $GLOBALS['hot_deal_image']="false"; //display an image to promote items that are on sale $GLOBALS['hotpercentage']="10"; //percentage discount that is needed (between list price and actual price) to trigger discount image $GLOBALS['tablewidth'] = "175"; // width of each product box $GLOBALS['usespecials']="true"; // set to true if you want to display specials/sale items using the ADDITIONAL SECTIONS feature of product admin . . .
When I made these changes I still had the fatal error on the page. Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in /home/hostnein/express-distributing.com/dynamic_cat131.php:38 Stack trace: #0 /home/hostnein/express-distributing.com/index.php(211): include() #1 {main} thrown in /home/hostnein/express-distributing.com/dynamic_cat131.php on line 38
Do you see something else that is causing the fatal error? Is there a better way to include dynamic content? Can I purchase an addon that will add the functionality that is the same as the old dynamic display?
Thank you.
Scott McLaughlin President Heartland Hosting, LLC
|
frameitsam
Advanced Member
USA
131 Posts Pre-sales questions only (More Details...)
|
Posted - 02/01/2021 : 19:22:06
I forgot to add the link to the old site on PHP 5.6. You can view it at https://archive.express-distributing.com/.
Scott McLaughlin President Heartland Hosting, LLC
|
Vince
Administrator
42761 Posts |
Posted - 02/02/2021 : 03:11:53
|
frameitsam
Advanced Member
USA
131 Posts Pre-sales questions only (More Details...)
|
Posted - 02/02/2021 : 08:07:11
Quick follow up this morning. Thank you for all your help, it's much appreciated. I got the related products all set up on the homepage using the Cross Selling options. That is definitely a better solution. Thank you for pointing those options
One small display issue with the inclminilogin.php include. For some reason is being aligned to the left on my products.php, proddetails.php, categories.php but its ok on my cart.php? They all look identical to me. Can you peek at it and see what I'm missing?
As soon as I get this all put back together, I can purchase a WordPress template and start working on conversion.
Scott McLaughlin President Heartland Hosting, LLC
|
|
|