Jump to content

Allowed memery size exausted - DB Backups module


Zeka
 Share

Recommended Posts

Hi. After update to 3.0.109 from 3.0.106 when I try to access DB backup modules page I get

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) 

PHP 7.2.4 

Laragon

Does anybody get the same error? 

  • Like 3
Link to comment
Share on other sites

Just now, kongondo said:

So potentially affecting any (process?) module that renders two button inputfields in a single form?

Yes, I get an out of memory error with this simple test module:

<?php namespace ProcessWire;

class ProcessTest extends Process {

    public static function getModuleInfo() {
        return array(
            'title' => 'Process Test',
            'version' => 1,
            'page' => array(
                'name' => 'test',
                'parent' => 'setup',
                'title' => 'Test',
            ),
        );
    }

    public function ___execute() {

        $form = $this->modules->get('InputfieldForm');

        $f = $this->modules->get('InputfieldButton');
        $f->value = 'foo';
        $form->add($f);

        $f = $this->modules->get('InputfieldButton');
        $f->value = 'bar';
        $form->add($f);

        return $form->render();

    }

}

 

  • Like 1
Link to comment
Share on other sites

Just now, kongondo said:

custom names

I was just thinking the same thing and giving them names does fix it. But up until now it hasn't been a requirement for button inputfields to have name attributes. 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...