PHP error when trying to migrate from a previous version

Hello,

I just tried to migrate to emoncms3 and I got an error saying :

[] operator not supported for strings

It seems that in db.php / db_schema_setup() , the variable $out is used as an array and as a string. What I did is to rename $out as $out_str from line 155 to 159 and it seemed to solve my issue.

But I am not sure though it has no other impact... I could not figure out what the string was used for.

Is that modification correct ?

Thanks.

JS

TrystanLea's picture

Re: PHP error when trying to migrate from a previous version

Thanks jsroques, I couldnt find the casue of that error at all, thanks for spotting it, yes thats a correct fix, just updated the repo with it, thanks a lot.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.