Installation Issue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2063
    Bruce
    Participant

    New installation of Version 2023.0.4

    Getting this error:
    Fatal error: Uncaught Error: Class “PDO” not found in /public_html/invoices/Inc/Claz/PdoDb.php:78 Stack trace: #0 /public_html/invoices/Inc/Claz/Setup.php(38): Inc\Claz\PdoDb->__construct() #1 /public_html/invoices/index.php(95): Inc\Claz\Setup->__construct() #2 {main} thrown in /public_html/invoices/Inc/Claz/PdoDb.php on line 78

    #2064
    RRowley
    Participant

    For some reason, the PDO class in PHP is not being recognized. I have attached the following link to documentation that might help you determine what you need to do in your set up.

    PDO class installation documentation

    • This reply was modified 4 months ago by RRowley.
    #2066
    Bruce
    Participant

    Thank you for the information. I have solved that problem but now getting other errors.

    Uncaught TypeError: iconv(): Argument #3 ($string) must be of type string, array given in /public_html/invoices/vendor/symfony/polyfill-mbstring/Mbstring.php:116 Stack trace: #0 /public_html/invoices/vendor/symfony/polyfill-mbstring/Mbstring.php(116): iconv() #1 /public_html/invoices/vendor/symfony/polyfill-mbstring/bootstrap80.php(15): Symfony\Polyfill\Mbstring\Mbstring::mb_convert_encoding() #2 /public_html/invoices/modules/customers/manage.php(56): mb_convert_encoding() #3 /public_html/invoices/index.php(441): include(‘/home3/axxxxdl…’) #4 {main} thrown in /public_html/invoices/vendor/symfony/polyfill-mbstring/Mbstring.php on line 116

    • This reply was modified 2 months, 2 weeks ago by Bruce.
    #2068
    RRowley
    Participant

    What version of PHP are you using? This is a library error and not typically something that I can fix. You might make sure that you are using symphony libraries consistent with your PHP version.

    #2070
    Bruce
    Participant

    Hi I’m using PHP 8.1.29.

    #2073
    RRowley
    Participant

    I am at a loss as to why you would have an issue with a library file function that is used pervasively throughout this application. At this point, I would recommend you try reinstalling the SI application. First, following the Version Update Process on the left menu. This makes sure that everything is reinstalled. If that does not work, you might try installing a clean version of SI. This is in the Installation link on the left. Do this letting that application install the new database – you set up an empty database and SI loads the structure and required files. If this works and you can run the application, the issue likely lies in a difference in your database and its data structures. If this is the case, you should export a copy of your existing database structure, no data just structure, and the structure of the newly installed database that is working. I’ve had to do this in the past for other reasons and found that over time and updates, database field definitions have been changed but not reflected in my database. This shouldn’t happen, but it did. So the resolution was to manually alter the real database to match the structure of the test database. Once this is done, point the SI application to your live database and see if the issue is resolved.

    • This reply was modified 2 months, 1 week ago by RRowley.
    • This reply was modified 2 months, 1 week ago by RRowley.
    • This reply was modified 2 months, 1 week ago by RRowley.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.