Error Setting Third Party

Hi, I’m setting Gibbon for the first time , just discovered it, and it seems to be what I need. But before going any further and start asking questions about marks, grades, etc. I need to finish the setup.
It was installed via softaculous on my hosting.
Everything seems fine, but when I go to settings third party I get:
Uncaught Exception : ValueError - Unknown format specifier " "

  1. Line 50 in modules/System Admin/thirdPartySettings.php
  2. Line 50 in modules/System Admin/thirdPartySettings.php
  3. Line 87 in src/View/View.php
  4. Line 462 in src/View/Page.php
  5. Line 704 in index.php
    (Ive set system to developer to see it)
    I’ve tried moving php backwards and went from 8.2.1 to 8.0 and the error is still there…
    How can I fix this?
    Thanks

Hi @slipperyman,

Welcome to the Gibbon forum !

Your error seems to be a type cast error.
You can try modifying line 50 of the source \modules\System Admin\thirdPartySettings.php in order to force a cast to string.

Line 50:
‘error10’ => sprintf(__(‘An error (%1$s) occurred sending an email to %2$s.’), $emailError, $emailRecipient),

Line 50 modified:
‘error10’ => sprintf(__(‘An error (%1$s) occurred sending an email to %2$s.’), (string)$emailError, (string)$emailRecipient),

I am using PHP 8.2.10 and I don’t have your error.

Sylvain

Hi, Sylvain, I have to try that, For now the way that it worked without the error is seting php to 7.4

Thanks for the heads up. We’re working on a rather extensive full-system test for v27 to help ensure we can catch all these PHP 8.2+ type-checking errors, so ideally this will be fixed in the next version.