boboldehampsink / import

DEPRECATED - Import plugin for Craft CMS
MIT License
177 stars 28 forks source link

Deprecation Error: craft()->getBuild() #168

Open ademers opened 7 years ago

ademers commented 7 years ago

I'm getting the following deprecation error which seems to originating from the Import plugin:

craft()->getBuild() has been deprecated. As of Craft 2.6.2951, craft()->getVersion() returns the complete version number (X.Y.Z).

Stack trace screenshot: https://cl.ly/0l1x0S3I083Y

Craft CMS 2.6.2986 Import 0.8.34

mythdigital commented 6 years ago

I was getting the same error.

This can be fixed by simply changing the variable, $minBuild = '2615'; to $minBuild = '2.6.15' in import/ImportPlugin.php on line 115.

Still doesn't fix the app though, it doesn't seem to work for me.