Hi there,
I upgraded from 2.5.1 - (which was actually working fine with the campaigns working perfectly) to 2.6.1.
I updated via the mautic dashboard.
I am now getting LOTS of “Um I think I broke” 500 server errors at almost every screen. Campaigns are no longer working - but they were before.
Here is a copy of the error if I run using the manual PHP file to run the processes
I have run the schema update and it says it is fine.
Executing console mautic:campaigns:trigger
Triggering events for campaign 1
Triggering first level events
0 total events(s) to be processed in batches of 100
0 event(s) executed
Triggering scheduled events
[DoctrineDBALExceptionInvalidFieldNameException]
An exception occurred while executing ‘SELECT COUNT(c0_.id) AS sclr_0 FROM campaign_lead_event_log c0_ WHERE c0_.campaign_id = 1 AND c0_.is_scheduled = ? AND c0_.trigger_date <= ?’ with params [1, “2017-02-20 02:23:27”]:
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘c0_.id’ in ‘field list’
[DoctrineDBALDriverPDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘c0_.id’ in ‘field list’
[PDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘c0_.id’ in ‘field list’
mautic:campaigns:trigger [-i|–campaign-id [CAMPAIGN-ID]] [-l|–batch-limit [BATCH-LIMIT]] [-m|–max-events [MAX-EVENTS]] [-f|–force] [-t|–timeout TIMEOUT] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [-n|–no-interaction] [-s|–shell] [-e|–env ENV]
Here is a screen grab of the “campaign_lead_event_log” table and I can’t see a field called “cO.id”
Do I rename one of the existing ones, or is it in the PHP script?
screen grab
************************************************************************************************************************
If I run the schema update I get this error message and have no idea how to fix it.
Executing console doctrine:schema:update --dump-sql
[DoctrineDBALSchemaSchemaException]
There is no column with name ‘id’ on table ‘campaign_lead_event_log’.
doctrine:schema:update [-f|–force] ] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [-n|–no-interaction] [-s|–shell] [-e|–env ENV]
*******************************************************************************************************************************
Here is the migration status:
Executing console doctrine:migration:status
== Configuration
Name: Mautic Migrations
Database Driver: pdo_mysql
Database Name: [XXXXXX]_dmpages
Configuration Source: manually configured
Version Table Name: migrations
Version Column Name: version
Migrations Namespace: MauticMigrations
Migrations Directory: /home3/[XXXXXX]/public_html/dmpages.com/m/app/migrations
Previous Version: 2017-01-13 14:39:22 (20170113143922)
Current Version: 2017-01-27 20:59:28 (20170127205928)
Next Version: Already at latest version
Latest Version: 2017-01-27 20:59:28 (20170127205928)
Executed Migrations: 71
Executed Unavailable Migrations: 4
Available Migrations: 67
New Migrations: 0
I can see that there are database table errors, but I don’t know how to fix them.
****************************************************************************************************************
Also here is what happens after I manually ran the schema update using the " [your-mautic-url]/s/update/schema" command in the browser window
picture showing shema has been successfully updated