Call to undefined function pdfWriteBlockedLogSignature()

Hi,

I upgrade to V24.0.1 and after upgrade i am getting this error when i try to set some invoice to paid.

Any solution?

Problem was in module template for the invoice…

Hi @martin54

Have you checked the Dolibarr log and your PHP log, please? What does it say?

Regards
Saikat Koley
Software Developer
Call/WhatsApp : +919903256573

https://www.linkedin.com/in/saikatkoley/

Hi,

The error was because i use the old template from sponge with my changes.
Many lines are removed in V24 and because of that i get the error.

Now i see that i get constantly error in log file, did you maybe know why is that?

Like something is missing in translation, but i can’t understand what?

436238   1006 --- Access to GET /index.php - action= - actionlogin= - showing the login form and exit
436238   1006 sql=SELECT transkey, transvalue FROM llxv3_overwrite_trans where (lang='mk_MK' OR lang IS NULL) AND entity IN (0, 0,1) ORDER BY lang DESC
436238   1006 --- End access to /index.php

@martin54 This is just a log of an SQL query. I am not seeing any error here. Check your Dolibarr log as well as your PHP error log.

Nothing is broken there — those lines are ordinary debug output, not errors. The overwrite_trans query is Dolibarr loading your custom translation overrides; it runs on every page when “Enable usage of overwritten translation” is switched on under Home > Setup > Translation, so yours is on. The only reason you’re seeing it in the file is the log level.

Drop it from Debug to Warnings or Errors in the Logs module setup (Home > Setup > Modules, cog icon on Logs) and the file will keep only what’s worth acting on. Real problems show up as a line starting with ERROR or an SQL error code, so that’s what to grep for rather than reading the whole thing.

— Ali, Silicon Blaze · siliconblaze.com

Thank you :slight_smile:

Hi MuhammedAli.Dev,

Did you have fix and fir this error?

**Payment in same currency than company but this->amount != this->multicurrency_amount
**
I get this when i try to add payment for some invoice and not for every third party. I not use multicurency and curently for this third party i never use multicurency.

I fixed via mysql directly for that invoice, in multicurency have some other total price which was different from the original one…

Hi Martin,

Good that you found the cause.

That check fails when an invoice is in your company currency but its multicurrency totals do not match the normal totals, so Dolibarr cannot make the payment amounts agree on both sides.

It does not matter that you do not actively use multicurrency, because those fields are still populated on invoices.

If one invoice ended up like this, there may be others as well. You can list them with:

SELECT rowid, ref, total_ttc, multicurrency_total_ttc
FROM llxv3_facture
WHERE multicurrency_code = 'MKD'
AND total_ttc <> multicurrency_total_ttc;

Replace MKD with your company currency code if different.

If you find several affected invoices and want to correct them together instead of one by one, back up the database first, then run:

UPDATE llxv3_facture
SET multicurrency_tx = 1,
    multicurrency_total_ht = total_ht,
    multicurrency_total_tva = total_tva,
    multicurrency_total_ttc = total_ttc
WHERE multicurrency_code = 'MKD'
AND total_ttc <> multicurrency_total_ttc;

It would also be useful to know how those invoices were originally created — for example through an import, API, cloning, or older migrated data. That may explain why the multicurrency values became inconsistent and whether the same issue could occur again.

As a side note, if you need better visibility into receivables, aging, cash position, profitability, and financial health directly from Dolibarr accounting data, I also maintain Financial Intelligence for Dolibarr:

— Muhammad Ali
Dolibarr Customization Expert
SiliconBlaze