Problem importing large template

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
BooX
Posts: 2
Joined: Thu Apr 13, 2017 12:51 pm

Problem importing large template

Post by BooX »

Hi

I'm trying to import a large template ( from https://github.com/Cacti/plugin_mikrotik ) using the cli as described in the template readme and 'import_package.php' and gets the php-reply Read 141440 bytes of XML data but the template never gets imported.
Testing with a smaller template is succesfull.

Is there a setting that prevents import of large template ?

I've also trying import the uncompressed xml ( 1.1Mb. ) using the html importer and it just does nothing.

Thank you in advance.

BooX
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Problem importing large template

Post by Osiris »

Edit the import_package.php and add right after the includes the following:

Code: Select all

/* add more memory */
ini_set('memory_limit', '512M');
Before history, there was a paradise, now dust.
BooX
Posts: 2
Joined: Thu Apr 13, 2017 12:51 pm

Re: Problem importing large template

Post by BooX »

Awesome !

Thank you, it works great now :D

BooX
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests