Closed Cbpenn18 closed 2 years ago
Can you try adding a log statement before the line that is throwing the error in src/Unmanaged.php
?
It should look similar to this:
if (!class_exists($itemtype)) {
Toolbox::logWarning('Tried converting an unmanaged item to an unknown itemtype: ' . $itemtype);
return;
}
$asset = new $itemtype();
$asset_data = [
'name' => $this->fields['name'],
'entities_id' => $this->fields['entities_id'],
'serial' => $this->fields['serial'],
'uuid' => $this->fields['uuid'] ?? null,
'is_dynamic' => 1
] + $this->fields;
This will print a message to files/_log/php-errors.log
when it tries to convert to an invalid itemtype.
If it seems like the process fails after around 30 seconds, it may also be helpful to increase the PHP setting max_execution_time
.
A similar issue on unmanageds has already been fixed; you should try with latest nightly build
No feedback, closing
Code of Conduct
Is there an existing issue for this?
Version
10.0
Bug description
I have over 1,000 unmanaged devices that I need delete (there is no option for this, but I see there's already another Issue for it), so I must convert them to an asset that I can delete. However, I am only able to convert ~72 at a time. No matter how many I select, the conversion only succeeds on less than 100 devices every time. The error appears to be the same, or similar, to the error in my previous issue on this function: https://github.com/glpi-project/glpi/issues/11547
Relevant log output
Page URL
http://glpi.ledwell.com/glpi/front/unmanaged.php
Steps To reproduce
Go to Unmanaged Devices. Select more than 100 devices. Convert to Phones, or other asset type. Conversion will proceed until the page refreshes and the blue Conversion progress bar at the top of the screen will freeze. Return to Unmanaged Devices and see that less than 100 devices were converted.
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response