2. In the OpenCart 2.1.0.1 upload folder, copy or move the opencart.sql file from the install folder to the catalog folder. It is incorrectly expected in the install folder in the install.php and upgrade.php files and expected in the catalog folder.
Any missing tables would be created automatically from this script.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Code: Select all
Notice: Undefined index: custom_field in /Users/allenconquest/Developer/opencart2/install/model/upgrade.php on line 381
`custom_field` text NOT NULL,
Did you move the opencart.sql file???
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart

I copied the opencart.sql file, as I found that if I moved it the installation complained about it not being in the install folder. I will go through the process again and see if I missed anything.
The first error I get after trying step 10 is:
Code: Select all
2016-01-06 23:11:44 - PHP Notice: Error: Table 'mavis-shop2.0.event' doesn't exist<br />Error No: 1146<br />SELECT * FROM event in /Users/allenconquest/Developer/opencart2/system/library/db/mysqli.php on line 41
2016-01-06 23:11:44 - PHP Notice: Trying to get property of non-object in /Users/allenconquest/Developer/opencart2/index.php on line 250
2016-01-06 23:11:44 - PHP Warning: Invalid argument supplied for foreach() in /Users/allenconquest/Developer/opencart2/index.php on line 250
2016-01-06 23:11:44 - PHP Notice: Error: Table 'mavis-shop2.0.layout_module' doesn't exist<br />Error No: 1146<br />SELECT * FROM layout_module WHERE layout_id = '1' AND position = 'column_left' ORDER BY sort_order in /Users/allenconquest/
I'll wait for your response before posting again, or please send me a private message and we can continue there. I really want to get this upgrade working, as the new responsive open cart 2.x looks really good.
Thanks,
Allen
Did you move the opencart.sql file to the required location? this the key to getting the upgrade working properly. The steps are very clear as to where to move it from and to
The upgrade.php file is in the install location and you HAVE to replace it with the one I provided.
BTW: this conversation belongs here. that is how it will help others...
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
I could be misunderstanding, and would be happy to be corrected, but I can't see the files in the location you specified.
Thanks (and I agree this is the place to keep the discussion to help others)
Code: Select all
define('DIR_APPLICATION', str_replace('\\', '/', realpath(dirname(__FILE__))) . '/');
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Before it gets to the upgrade.php file, it must go through the root index.php file. At line 248 is the following code:
Code: Select all
$query = $db->query("SELECT * FROM " . DB_PREFIX . "event");
I can't see how I can get past this step in the migration instructions, without keeping the new oc_event table. So I put the oc_event table back in the database and tried again. When I look in the error.txt log in /system/storage/logs/ I am getting other tables that don't exist causing problems, such as oc_cart, oc_module and oc_layout_module. All these are new tables.
I'd be interested to know how you overcame these problems.
Thanks,
Allen
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Code: Select all
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}
However, I hit another problem. At line 359 in the new upgrade.php file I get the following error:
Code: Select all
Notice: Error: Can't DROP 'value'; check that column/key exists<br />Error No: 1091<br />ALTER TABLE `product_option` DROP `value` in /Users/allenconquest/Developer/opencart2/system/library/db/mysqli.php on line 41
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
As I noted in my comments, this problem occurs before the code has even got to the upgrade.php file. Did you have the DIR_APPLICATION defined in your config.php file ?Randem wrote:Following the procedures would create the new tables. I have repeated the steps from scratch over a dozen time to verify this. Make sure that you are using the correct upgrade.php file and have removed the other one. If you like send me your SQL dump file that you created of your original database and I will walk it thru the procedure.
I will create a fresh install of 1.5.5.1 and run your scripts against that. I don't suppose it could be anything to do with PHP or MySQL versions ?
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
I did make one change but it was unrelated to the issue you are having. Something else is aloof.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Now I am doing this on a Linux Shared Server and I see you seem to be doing it on a Windows Server.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
The strange thing is, long as I will order the relevant information table cleared, it is possible to use a normal.
How can I deal with this problem?
My Error Code:
Code: Select all
Fatal error: Class 'Controllerpayment' not found in /xxx/public_html/system/storage/modification/system/engine/loader.php on line 28
Users browsing this forum: No registered users and 5 guests