This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

groar
groar

Hi. I have a problem. When try to create page with events list, get an error:

Undefined offset: 1 /home/vagrant/code/test.app/vendor/october/rain/src/Foundation/Maker.php line 101

     */
    protected function keyParametersByArgument(array $dependencies, array $parameters)
    {
        foreach ($parameters as $key => $value) {
            if (is_numeric($key)) {
                unset($parameters[$key]);
                **$parameters[$dependencies[$key]->name] = $value;**
            }
        }

        return $parameters;
    }

My code on page is:


{% component 'Events' %}
{% component 'EvList' %}
pacomcharbellaterreur51151
pacomcharbellaterreur51151

Hello! I came across a very similar error, which I was finally able to fix. In component, I had declared the __contruct() function of laravel without first filling it. I first tried to delete it and then already, the error was solved on its own.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.