Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upgrade to Maps 3.6.1 #178

Closed
craigplusplus opened this issue Jul 19, 2019 · 2 comments
Closed

Unable to upgrade to Maps 3.6.1 #178

craigplusplus opened this issue Jul 19, 2019 · 2 comments

Comments

@craigplusplus
Copy link

craigplusplus commented Jul 19, 2019

Description

We are currently running Craft 3.2.5. We attempted to upgrade SimpleMap 3.3.4 to Maps 3.6.1 and encountered the following exception:

> create table {{%maps}} ...Exception: SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'maps' already exists
The SQL being executed was: CREATE TABLE `maps` (
    `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    `ownerId` int(11) NOT NULL,
    `ownerSiteId` int(11),
    `fieldId` int(11) NOT NULL,
    `lat` decimal(11,9),
    `lng` decimal(12,9),
    `dateCreated` datetime(0) NOT NULL,
    `dateUpdated` datetime(0) NOT NULL,
    `uid` char(36) NOT NULL DEFAULT '0'
) ENGINE=InnoDb DEFAULT CHARSET=utf8 (C:\WWW\craft_live\vendor\yiisoft\yii2\db\Schema.php:664)

Attached is a full log with more details.

Additional info

  • Craft version: 3.2.5
  • Maps version: 3.3.4 -> 3.6.1

Log

web.log

@keyurshah
Copy link

getting the same error when trying to upgrade. thanks!

@Tam Tam closed this as completed in b3f43a4 Jul 23, 2019
@bymayo
Copy link

bymayo commented Jul 23, 2019

@Tam Thanks for fixing this but I am now getting the error when the migration tries to run:

2019-07-23 14:20:11 [-][-][-][error][yii\base\ErrorException:2] yii\base\ErrorException: Invalid argument supplied for foreach() in /vendor/ether/simplemap/src/migrations/m190723_105637_fix_map_field_column_type.php:35
Stack trace:
#0 /vendor/craftcms/cms/src/web/ErrorHandler.php(81): yii\base\ErrorHandler->handleError(2, 'Invalid argumen...', '...', 35)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants