Search

What's wrong with this via extension driver:

public function fetchNavigation() {
    return array(
        'name' => 'Stripe',
        'children' => array(
            array(
                'name' => 'Plans',
                'link' => '/plans/'
            )
        )
    );
}

Error:

Symphony Warning: Invalid argument supplied for foreach()

An error occurred in class.administrationpage.php around line 882

Ok, this worked:

public function fetchNavigation() {
    return array(
        array(
            'location' => 1000,
            'name' => __('Stripe'),
            'children' => array(
                array(
                    'name' => __('Plans'),
                    'link' => '/plans/'
                )
            )
        )
    );    
}

An extra array encompassing all was the key.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details