ZC 1.5.6 PHP 7.2.14
This was on the wrong category sorry for doubleposting. Step 2 is now where I am.
STEP 1.
I have a live environment running ZC 1.5.0 which must stay online all the time.
I have a wamp environment and it has php 7.0 so I decided to skip installing 1.5.0 to development environment because that php version is not supported in WAMP. I installed instead 1.5.6 and nearly succeeded in that.
I made following procedure. I downloaded a dump of all the files in live 1.5.0 environment and then extracted 1.5.6 files over that. After that I imported the db and I could see the site. Old template was a mess but I could see it. Also character encoding was partly a mess but not in every place even I exported with utf-8mtb I could also not log into admin it gave error 500
Then I reactivated zc_install and upgraded db from 1.5.0 to 1.5.6. It succeeded but after that the shop went to maintenantence mode. Also I can not log in to admin it throws error 500
Hmm, I am again bricking things while trying to learn zen cart. Reason I tried this quick and dirty solution is that I am in a hurry and should have something to show&transfer on monday.
Logs shows:
#1 include_once() called at [D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php:72]
#2 require(D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php) called at [D:\wamp64\www\jmtechfi\includes\autoload_func.php:48]
#3 require(D:\wamp64\www\jmtechfi\includes\autoload_func.php) called at [D:\wamp64\www\jmtechfi\includes\application_top.php:170]
#4 require(D:\wamp64\www\jmtechfi\includes\application_top.php) called at [D:\wamp64\www\jmtechfi\index.php:26]
--> PHP Warning: include_once(includes/languages/finnish.php): failed to open stream: No such file or directory in D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php on line 72.
[29-Mar-2019 16:55:17 UTC] Request URI: /jmtechfi/, IP address: ::1
#1 include_once() called at [D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php:72]
#2 require(D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php) called at [D:\wamp64\www\jmtechfi\includes\autoload_func.php:48]
#3 require(D:\wamp64\www\jmtechfi\includes\autoload_func.php) called at [D:\wamp64\www\jmtechfi\includes\application_top.php:170]
#4 require(D:\wamp64\www\jmtechfi\includes\application_top.php) called at [D:\wamp64\www\jmtechfi\index.php:26]
--> PHP Warning: include_once(): Failed opening 'includes/languages/finnish.php' for inclusion (include_path='.;C:\php\pear') in D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php on line 72.
[29-Mar-2019 16:55:17 UTC] Request URI: /jmtechfi/, IP address: ::1
#1 require(D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php) called at [D:\wamp64\www\jmtechfi\includes\autoload_func.php:48]
#2 require(D:\wamp64\www\jmtechfi\includes\autoload_func.php) called at [D:\wamp64\www\jmtechfi\includes\application_top.php:170]
#3 require(D:\wamp64\www\jmtechfi\includes\application_top.php) called at [D:\wamp64\www\jmtechfi\index.php:26]
--> PHP Warning: Use of undefined constant CHARSET - assumed 'CHARSET' (this will throw an Error in a future version of PHP) in D:\wamp64\www\jmtechfi\includes\init_includes\init_templates.php on line 78.
STEP 2.
I noticed that first error is related to missing finnish language files and copied them to root/includes and that seemed to solve the charset problem.
I think all this is related to one thing the 1.5.0 live shop is located at example.com/subfolder/ and seems that now it is at example.com/
This is what I am aiming at so that it would be directly at domain root but should I copy all the rest of missing includes contents from example.com/subfolder/includes contents to example.com/includes ? there must be other missing thing too. I don't know which causes this because in configure.php I should have example.com/subfolder as a store root.
Only problem with this is that the files in example.com/subfolder are from 1.5.0 version and files in example com are from 1.5.6
I copied the 1.5.0 default template to root/includes/templates and it came alive so clearly configure.php points to /root/ not root/subfolder. I am worried about copying old version stuff so I would need to get off from the maintenantence state so I could change template and possibly disable old plugins. I can not do this on the live site.
Now I got an another error messages:
[29-Mar-2019 17:59:26 UTC] Request URI: /jmtechfi/, IP address: ::1
#1 require(D:\wamp64\www\jmtechfi\includes\init_includes\init_sessions.php) called at [D:\wamp64\www\jmtechfi\includes\autoload_func.php:48]
#2 require(D:\wamp64\www\jmtechfi\includes\autoload_func.php) called at [D:\wamp64\www\jmtechfi\includes\application_top.php:170]
#3 require(D:\wamp64\www\jmtechfi\includes\application_top.php) called at [D:\wamp64\www\jmtechfi\index.php:26]
--> PHP Warning: Use of undefined constant OFFICE_IP_TO_HOST_ADDRESS - assumed 'OFFICE_IP_TO_HOST_ADDRESS' (this will throw an Error in a future version of PHP) in D:\wamp64\www\jmte
Don't know how to solve this
Bookmarks