Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Costs doesn't work any longer since update #26

Closed
PresentsSI opened this issue Mar 6, 2024 · 4 comments
Closed

Costs doesn't work any longer since update #26

PresentsSI opened this issue Mar 6, 2024 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@PresentsSI
Copy link

Hi,
the Costs plugin doesn't work since we upgrarded to 3.0.3
When validating a new task, we have got a blank page.
The task is created but no cost line is added
And the configuration page for the plugin is empty

@FrancisTicgal
Copy link
Contributor

Hello, can you please provide us with the version of your GLPI and the related errors in the php-errors.log file?

The latest versions only fix the positioning of the dropdown and a warning that the identifier fields do not support negative numbers, with no changes to the functionality of the costs.

@PresentsSI
Copy link
Author

Hello,
We are using GLPI 10.0.7 ; I will upgrade it to 10.0.12 to check if the problem remains

Here is the log file content :

[2024-03-08 16:35:54] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Return value of PluginCostsConfig::getInstance() must be an instance of mixed, instance of PluginCostsConfig returned in /var/www/html/marketplace/costs/inc/config.class.php at line 82
Backtrace :
marketplace/costs/inc/config.class.php:111 PluginCostsConfig::getInstance()
marketplace/costs/inc/config.class.php:151 PluginCostsConfig::showConfigForm()
src/CommonGLPI.php:689 PluginCostsConfig::displayTabContentForItem()
ajax/common.tabs.php:116 CommonGLPI::displayStandardTab()
public/index.php:73 require()

  • when I try to add a task to a ticket :

[2024-03-08 16:36:56] glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Return value of PluginCostsTicket::isBillable() must be an instance of mixed, int returned in /var/www/html/marketplace/costs/inc/ticket.class.php at line 110
Backtrace :
marketplace/costs/inc/task.class.php:60 PluginCostsTicket::isBillable()
src/Plugin.php:1617 PluginCostsTask::taskAdd()
src/CommonDBTM.php:1364 Plugin::doHook()
front/commonitiltask.form.php:67 CommonDBTM->add()
front/tickettask.form.php:39 include()
public/index.php:73 require()

@OscarBeiro OscarBeiro added the question Further information is requested label Mar 8, 2024
@PresentsSI
Copy link
Author

I upgraded my debian server to Bookworm and thus PHP to version 8
Everything seems to work fine now

@OscarBeiro
Copy link
Contributor

So this was a PHP 7.4 issue.
Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants