Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Typo in apps/admin/lib/Toolbar.php?

edited March 2018 in Apps

"Error in /path/to/apps/admin/lib/Toolbar.php on line 171: Use of undefined constant recache - assumed 'recache' (this will throw an Error in a future version of PHP)"

Should 'recache' be '$recache'?

Comments

  • Another error: "Error in /path/to/apps/admin/handlers/head/links.php on line 24: array_diff_key(): Argument #1 is not an array"

    This is with php 7.2.

  • Good find. I pushed a fix for the $recache error, but don't have time to setup a test for the other today. It looks like they're probably coming in as StdClass objects and need to be cast to an array. Does this change to that line work for you?

    $apps = array_diff_key((array) $apps, (array) $group);
    
  • Yes, it gets rid of the error. However, I think the real problem is that admin\Toolbar::apps($this); (line 21) is empty, so now my custom apps aren't showing up under extras. Remind me how to register an app so it shows up?

  • Just pushed I fix that I believe fixes this. Let me know how it goes for you :)

  • Thanks, that fixed it.

Sign In or Register to comment.