I don’t see how you would get that error message unless you are using gp mode.
Presuming you are not using gp mode, the following should work:
cvx_begin
variable t
h = (beta + gama*t)/alpha;
maximize((-rel_entr(h+t,h)-rel_entr(h,h+t))/log(2))
% add any other constraints
cvx_end
which is just a variation on the reformulation Writing x*log(1+x/y) - #3 by Michal_Adamaszek first posted on this forum by @Michal_Adamaszek