Problem upgrading from 3.3.0.14 to 3.4.0.4

Hi
I followed the instructions to upgrade from 3.3.0.14 to 3.4.0.4. as described in https://docs.pkp.sfu.ca/dev/upgrade-guide/en/

When I run

php tools/upgrade.php check

I get the following error:

PHP Fatal error: Uncaught PDOException: could not find driver in /var/www/vhosts/********/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:38

Plus several other errors. But’s lets focus on this one for the time being

I found my bootstrap.inc.php had been hacked with malicious code. I deleted it. I’ll look for more malicious code now that I know.

Hi @Webmaster_Lua_Edicio,

Ensure that your files_dir (as configured in config.inc.php) is not directly web-accessible. That’s the most common way OJS installations are hacked. (There are warnings about this on the installation form, in the configuration file, and in various installation documentation.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher
Thanks for taking the time to respond.
I made sure my files directory is not web-accesible in the installation.
I double checked it again just in case.

1 Like

This topic was automatically closed after 10 days. New replies are no longer allowed.