Questions tagged [upgrades]
The upgrades tag has no usage guidance.
68 questions
1
vote
2
answers
57
views
Updated Craft. v3 to v.5 - need help to update code and optimise page load
Ive successfully upgrade Craft 3 to Craft 5 but I need help to alter the code.
I am a novice. Here is the code:
``` {# Individual Entry Start #}
{% for entry in craft.entries.section(['work', '...
0
votes
0
answers
23
views
I was attempting to upgrade from Craft 3.9.13 to 4 but I'm running into an error
Has anyone ever seen this one? Any tips?
Database Exception – yii\db\Exception
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'licenseKeyStatus' in 'field list'
The SQL being executed was: ...
1
vote
3
answers
170
views
DDEV and Craft project structure problem
I'm working on a Craft site for a company that wanted me to change the usual folder structure of the project. Instead of it being
-config
-storage
-templates
…
-public
they wanted to group all the ...
1
vote
1
answer
253
views
Upgrade from 4 to 5 error
When running the php craft up command as one of the last steps for the upgrade I get the following error.
*** applying m230511_215903_content_refactor
Exception: A field layout element has a duplicate ...
2
votes
2
answers
315
views
Upgrade to 5.x failed
I followed the upgrade instructions. My current version is 4.8.1. When I run composer update, I get the following error:
I added the following code to composer.json because of another issue:
"...
0
votes
1
answer
107
views
Craft CMS and Craft console
I have installed Craft CMS on a server, and I'm admin. I opted to the Pro version trial for 14 days.
I am now trying to pay for the Pro version and it is sending me to the craft console, yet I can't ...
0
votes
1
answer
38
views
What is your strategy for users accounts when upgrading Craft?
I'm upgrading a site that has public registration from v3 to v4 (better late than never!) and it's going to take a few days to QA v4 locally to make sure everything works correctly… I'm wondering what'...
0
votes
1
answer
33
views
Upgrading to Craft 3.7 errors
i am trying to upgrade one of my sites up from Craft 3.6.17 to 3.7 and if i try and upgrade at all i just seem to get the following errors:
Any ideas what I need to do?
Database Exception: SQLSTATE[...
1
vote
1
answer
85
views
Big upgrade completed locally, how to upgrade live?
I have a site that was Craft 3.4 and Commerce 3.x (unsure of exact version).
Locally, I've been spent a big chunk of today updating to the latest versions of everything and making sure all still works ...
2
votes
1
answer
104
views
Can't upgrade to v4.x after migrating from nitro to ddev – db connection weirdness
I've been through the following steps on a local instance of a Craft 3.x project:
Followed Migrating from Craft Nitro to DDEV and got the instance running on DDEV
Updated to latest version of Craft 3:...
1
vote
1
answer
319
views
PHP version problem when upgrading to Craft CMS 4
I am upgrading a site from Craft CMS 3 to 4. I develop the site on ddev with docker desktop on Windows.
When running composer update on PHP 7.4 and docker 2 on ddev the following happens:
$ ddev ...
1
vote
1
answer
218
views
Craft 4 Upgrade - Migration issue
I am SO close to getting my Craft 3.8.7 upgraded to 4.0. Now, I'm getting an error when it tries to run a migration. I read in the docs that there were a couple of tables that were deprecated, so I ...
2
votes
1
answer
210
views
Upgrading from 3.49 to Craft 4, Incrementally
We have a site that has been in production for a while and finally have been given the task of upgrading to Craft 4. We are at Craft Pro 3.4.29.1. Can I upgrade the site in stages? i.e. from 3.49 to ...
1
vote
1
answer
282
views
Upgrading Craft 3 to 4, deprecation warnings
I've just taken over a Craft 3 site that I'm upgrading to Craft 4. I've got 3 updates installed. I'm left with 5 deprecation warnings that are all (except one) coming from deep into the craftcms or ...
1
vote
1
answer
106
views
Upgrade from craft 2 fails due to read-only mode
I'm trying to upgrade an old Site from Craft 2.9.x. The goal is to eventually upgrade to Craft 4.x, but I thought it would be easier to first update to Craft 3.x. When trying to Finish up my database, ...
0
votes
1
answer
311
views
Undefined array key "permissions" error after upgrade to Craft4
Hi need some help here.
I recently I tried to upgrade Craftcms from Craft Pro 3.7.55.2 to Craft Pro 4.3.6.1, there is no error in migration, but when I try to edit a user group, I got this error:
[web....
0
votes
1
answer
181
views
Upgrading to Craft 4 dosen’t seem to work
I went through the upgrade guide step-by-step and all went smoothly without error. But my Craft Installation is still running in 3.7.57. I logged out and in again, it still runs Craft 3. Also repeated ...
1
vote
0
answers
123
views
Craft4 Upgrade did not create filesystem entries
I'm making a post about this as a form of documentation of an issue I ran into while upgrading one of my sites to Craft4.
I followed the upgrade instructions and got the site upgraded to the latest ...
1
vote
1
answer
336
views
Broken site after upgrade via composer from craft 3.37.38
Ran upgrade on my local dev environment.
Seemed to go fine.
Front end site broke and command line updates for craft also error.
My index.php looks like
// Set path constants
define('CRAFT_BASE_PATH', ...
2
votes
1
answer
513
views
Craft 4: How to programmatically attach fields to entry type tab
I'm in the process of upgrading a plugin from Craft 3 to Craft 4.
When the plugin is installed it creates some fields and attaches them to an entry type.
The way it was done in Craft 3 is:
Get the ...
1
vote
1
answer
649
views
After upgrading via composer and moving to another server, Craft stopped working. dotenv error
I have a hard time updating the staging server. After performing Craft core and plugins updates locally on my Windows machine, I transferred the composer.json, composer.lock files, and also the ...
1
vote
1
answer
679
views
Performing update with Composer ... error: An error occurred
I am getting this error when upgrading craft CMS, could anyone please assist.
<warning>Package "craftcms/vue-asset" listed for update is not installed. Ignoring.</warning>
<...
1
vote
1
answer
177
views
composer.json showing different version to database
Have a site which is on version 3.6.16
I was running the upgrade to the latest versions and it crashed.
I have restored the database and componser.json and composer.lock files and ran composer install ...
2
votes
1
answer
295
views
Are mutex locks used in core Craft?
Since the new default in Craft is to use file based mutex (opposed to, the previous default which was?)
Now, since I'm running craft containerized, I can both run it loadbalanced, but it also does a ...
1
vote
1
answer
275
views
Upgrading to 3.7.26 causes tempnam() error from twig's FilesystemCache.php
I am upgrading a Craft project that I have been neglecting for a little bit too long. I am upgrading to 3.7.26 from 3.4.25; on top of this, I am upgrading from PHP 7.1 to PHP 7.4.
I'm also updating a ...
0
votes
1
answer
328
views
Given a global, how to get a particular language's version of it?
I'm upgrading a legacy site from Craft 2 to Craft 3.
It's very much one-error-at-a-time and I'm stuck currently at a particular component's template file.
I have this legacy code:
{% set ...
0
votes
0
answers
162
views
Upgrade to 3.6 Error: One of Craft CMS’s migrations failed. Undefined class constant 'Trial'
I am trying to update to Craft 3.6 but getting the following error:
Is it related to a plugin being on Trial? I have the plugin Freeform on Trial during development.
Error: Undefined class constant '...
1
vote
2
answers
2k
views
Upgrading to 3.6 Impossible With PHP 8 Installed
After seeing that CraftCMS now supports PHP 8, I went ahead and upgraded my server to PHP 8 (formerly, PHP 7.1 was running).
The problem I am now facing is the following:
PHP 7.1 was too low to ...
1
vote
1
answer
480
views
Permission error on session_start() after 3.5 upgrade
On my dev box, I have php/nginx running as 'jim'. I've followed the suggestions on permissions in the install docs. (744 since php is running as 'jim')
I'm getting this error...
PHP Warning – yii\base\...
0
votes
0
answers
70
views
Upgrading to 3.5 break multisite
Just upgraded to Craft 3.5+ and now all my non-primary site's pages are not found.
All my english page (primary site is in french) returns a "Template not found".
So "en/anypage" ...
1
vote
2
answers
1k
views
Upgrading Craft CMS fails
I'm trying to upgrade from 3.3.15 -> 3.5.5 from control panel.
I run it via docker so all I need is to update the composer.lock file to have the correct dependencies and everything should be fine ...
2
votes
2
answers
2k
views
Questions about Craft 4 release and licenses
Being busy rethinking an existing website to rebuild in Craft I just found out Craft 4 was announced september last year. Some of the new features, like nestable Matrix fields in particular, are very ...
1
vote
1
answer
475
views
Craft Migration fails (SuperTable propagationMethod)
I'm trying to upgrade Craft from 3.3.1.1 and I'm getting an error. I am updating via Composer and get the following error when I run the migration script after upgrading:
Unknown Property: Setting ...
1
vote
1
answer
428
views
PHP Core Warning – yii\base\ErrorException Module 'newrelic' already loaded craft 3
I upgraded Craft 2 to Craft 3.3. Sometimes I am getting an error in admin like below when saving entries or taking some URL.
PHP Core Warning – yii\base\ErrorException Module 'newrelic' already ...
1
vote
1
answer
198
views
Flush Compiled Templates Migration File breaks Craft Migration Setup from 3.0 to 3.3
I was attempting to upgrade my Craft CMS from 3.0 to 3.3.19 on my production site. I had tested this out on several dev environments and worked with no issue. However, when doing it live I ran into a ...
1
vote
1
answer
364
views
Error while trying to upgrade to Craft 3
After following the instructions to upload, then upgrade alongside my installation of Craft 2, I first got a timeout error.
I am now getting the following when trying to load any page, not just /...
1
vote
1
answer
621
views
Upgrade C2 to C3 Uncaught TypeError involving Dotenv
I am just trying to upgrade and get the following error message:
Fatal error: Uncaught TypeError: Argument 1 passed to Dotenv\Dotenv::__construct() must be an instance of Dotenv\Loader, string given ...
2
votes
1
answer
583
views
How to manage breakpoint releases when updating Craft via composer
When logged in to Craft, the "Utilities" tab will show you all the latest releases you can update to. In some cases, it will report that you have reached a breakpoint release:
You’ve reached a ...
1
vote
1
answer
2k
views
Craft 3 redirect of existing and non-existing URLs
I'm upgrading a relatively large, but low budget, local government website from Craft 2 to Craft 3. The major remaining pain point is a replacement for the Craft 2 Reroute plugin, which is not ...
1
vote
1
answer
168
views
Errors after Upgrading from 3.0.35 > 3.041
I ran the updater from the Admin (local install.)
After a few minutes, the update failed.
Now when I try to load the site:
Warning: require(C:\Users\rickn\Documents\Craft\Projects\Untye/vendor/...
1
vote
0
answers
2k
views
Got HTTP 503 – Service Unavailable error while updating to Craft 3
1) Updated existing Craft 2 from the Control Panel
2) .env
DB_DRIVER="mysql"
DB_SERVER="localhost"
DB_USER="root"
DB_PASSWORD="pwd"
DB_DATABASE="dbname"
DB_SCHEMA="public"
DB_TABLE_PREFIX="some_"
...
1
vote
1
answer
419
views
Errors when updating Redactor
Folks:
I'm slowly working my way through a Craft3/Commerce2 upgrade. My current issue:
When updating redactor I receive multiple errors. I just want to be sure I'm on the right track.
Error 1:
...
2
votes
1
answer
181
views
Upgrading Craft 2 to 3 hits database error [closed]
I'm working on upgrading a site from Craft2 to Craft3. I've run through the steps in the upgrade guide and when I go to /admin and press the button to run the Database upgrade I get the following ...
2
votes
1
answer
381
views
Getting PHP Error on upgrade from 3.0.36 to 3.1
I just updated to 3.1 and I'm getting the php error:
PHP Notice – yii\base\ErrorException
Undefined index: settings
It probably has to do with the Cheat Sheet plugin. I deleted that folder in the ...
1
vote
1
answer
162
views
Craft 2 JS error in CMS since upgrade to 2.7.0
My Control Panel has stopped working since upgrading to Craft v2.7.0. in chrome. I get the following JS error no matter what is clicked in the entry fields and no action is taken. So for example if I ...
0
votes
1
answer
810
views
Upgrading C2 to C3 - TypeError: Argument 1 passed to craft\helpers\StringHelper::toLowerCase() must be of the type string [closed]
In the middle of upgrading a C2 site to C3. Everything went fine, including the step where you visit the control panel to complete the update, and now I’m at the login screen. But when I try to login, ...
1
vote
1
answer
290
views
Upgrading Craft 2 to Craft 3 Yii Issues
I tried searching for an answer for my situation but I could not find one. I tried following the steps here https://docs.craftcms.com/v3/upgrade.html#preparing-for-the-upgrade but whenever I get to ...
1
vote
1
answer
386
views
How to configure Google Cloud Storage in Craft v3?
I'm doing the Craft 3 upgrade and I can't figure out how to connect our Google Cloud Storage. Back with Craft 2 I used a Google Access Key and Access Secret Key. Now I am asked for a Project ID and ...
1
vote
1
answer
688
views
Upgrading from v2 to v3 results in internal server errors
I'm trying to upgrade a v2 site to v3 and have done the following:
Verified that my server meets the v3 requirements using the Craft Server Check.
Followed steps 1-3 on this page.
Followed the ...
0
votes
2
answers
22
views
How can I upgrade to version 3.0 as a user?
I am an end user and see there is a 3.0 version. Can I upgrade for free and what steps do I need to take to do that?