Error Message with Updated Dynare 5.1

Hello. I recently updated dynare from 4.5.7 to 5.1. I’m trying to run an estimation, but I’m getting this error even with previously running calibrated DSGE models:

The class ‘dseries’ is used in its own class definition as a base class, property value, or
attribute value. This is not allowed.
Error in global_initialization (line 95)
oo_.initval_series = dseries();
Error in cgg_0719_b_ff.driver (line 24)
global_initialization;
Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);

Some previous posts suggest typing “which dseries” which gives me the following result:
C:\Users\jdwar\OneDrive\Documents\5.1\matlab\modules\dseries\src@dseries\dseries.m % dseries constructor

Any idea what’s happening or how I can fix this? Thanks!

Looks like you have a path conflict between two dynare version. Please check if you remove all the paths to 4.5.7 and restart the Matlab.

Yep, this was it. My OccBin 4.5 was messing it up. Thank you!