Missing vendor directory and smarty errors in 3.0.1

Hi there,

I started installing a fresh instance of 3.0.1. I faced some PHP fatal errors complaining about missing files in lib/pkp/lib/vendor/ircmaxell/password-compat and also lib/pkp/lib/vendor/smarty. I cloned below repos in the expected locations:

Is that the way I should do?
I think it is still not complete as I get smarty errors after doing above:

Notice: Undefined property: TemplateManager::$app_template_dir in /var/www/ojs-3.0.1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1447 Notice: Undefined property: TemplateManager::$core_template_dir in /var/www/ojs-3.0.1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1447 Notice: Undefined property: TemplateManager::$app_template_dir in /var/www/ojs-3.0.1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1423 Notice: Undefined property: TemplateManager::$core_template_dir in /var/www/ojs-3.0.1/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1423 Notice: Indirect modification of overloaded property TemplateManager::$template_dir has no effect in /var/www/ojs-3.0.1/lib/pkp/classes/plugins/ThemePlugin.inc.php on line 583 Warning: file_put_contents(/var/www/ojs-3.0.1/cache/fc-locale-05afc2c4827ae11210c660d134ba1f01.php): failed to open stream: Permission denied in /var/www/ojs-3.0.1/lib/pkp/classes/cache/FileCache.inc.php on line 90 Warning: file_put_contents(/var/www/ojs-3.0.1/cache/fc-locale-39ad57a0a799a092b476f7b3d029e60d.php): failed to open stream: Permission denied in /var/www/ojs-3.0.1/lib/pkp/classes/cache/FileCache.inc.php on line 90 Warning: file_put_contents(/var/www/ojs-3.0.1/cache/fc-locale-1cfde42be2b25bdac1c9a16538de37a8.php): failed to open stream: Permission denied in /var/www/ojs-3.0.1/lib/pkp/classes/cache/FileCache.inc.php on line 90 Warning: file_put_contents(/var/www/ojs-3.0.1/cache/fc-locale-03b174b61510807426c2a2c128f6a86a.php): failed to open stream: Permission denied in /var/www/ojs-3.0.1/lib/pkp/classes/cache/FileCache.inc.php on line 90 Warning: file_put_contents(/var/www/ojs-3.0.1/cache/fc-locale-list.php): failed to open stream: Permission denied in /var/www/ojs-3.0.1/lib/pkp/classes/cache/FileCache.inc.php on line 90 Fatal error: Uncaught --> Smarty: TemplateManager->register_modifier() undefined method <-- thrown in /var/www/ojs-3.0.1/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_undefined.php on line 65

Would you please assist?

Regards
Ghazal

Hi @salehig,

Did you install OJS 3.0.1 from the .tar.gz file, or from github.com?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I used github.

Regards
Ghazal

Hi @salehig,

With github, once you’ve cloned the OJS repo, you’ll need to…

git submodule update --init --recursive
cd lib/pkp
composer update

This will install the libraries that are required using git submodules and Composer. We currently use both.

Regards,
Alec Smecher
Public Knowledge Project Team