Cidram: Updates page error

Created on 19 Jul 2021  路  5Comments  路  Source: CIDRAM/CIDRAM

Front end version 2.6.0-DEV+21158235

Warning: substr() expects parameter 1 to be string, array given in /home/xxxxxx/public_html/cidram2/vault/frontend.php on line 1946

the font is bigger on modules list
strange as havent updated the core for a while

Bug Fixed

All 5 comments

There aren't any substr() calls at or near to line 1946, so I'm guessing this might either be an old, already fixed bug, or something from an older version. Not sure offhandedly whether it still affects the current latest versions.

I can't immediately see any obvious causes for the problem in the code, but let's leave this issue open for a while. I'll reply back here again, as soon as I next update something at the front-end. At that time, when you update, let me know whether the problem appears again. If it doesn't, I guess, it must've already been fixed, or disappeared with a recent update. If it does, then we should hopefully be able to get a clearer idea about the exact cause of the error (affected lines at the current codebase at that time, etc). :-)

updated and problem gone away, this was the code ...

            if ((
                !empty($CIDRAM['Components']['ThisComponent']['Used with']) &&
                substr($CIDRAM['Components']['ThisComponent']['Used with'], 0, 3) === 'ipv'
            ) || (

Ah.. Okay. Now I know what it was. And yep.. Bug. Fixed by 7172f5829c89e15c3a1c9ddac5e4a54032ba4b2d (2021.07.05). :-)

just a thought - I update say every 2 months ish, unless there is a pressing reason to do it earlier.
its nice to know whats changed, but the changes page doesnt give the sub version, just the date, so its not obvious.
if its easy could you consider in future adding sub version to each change line?

I could do that. :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

100percentlunarboy picture 100percentlunarboy  路  6Comments

Dibbyo456 picture Dibbyo456  路  5Comments

soumsps picture soumsps  路  5Comments

eurobank picture eurobank  路  3Comments

Dibbyo456 picture Dibbyo456  路  7Comments