Hi im havin an error installing ojs on mi server

#1

its throw me that
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-timeZone-list.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-03b174b61510807426c2a2c128f6a86a.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-39ad57a0a799a092b476f7b3d029e60d.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-53517aa182dce92537a86aa7171abb9d.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-list.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in C:\inetpub\wwwroot\ojs\lib\pkp\pages\install\InstallHandler.inc.php on line 118
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 106
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 205
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 613
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 774
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 959
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 1217
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb.inc.php on line 263
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb.inc.php on line 359
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb.inc.php on line 2921
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in C:\inetpub\wwwroot\ojs\lib\pkp\lib\adodb\adodb.inc.php on line 3939
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-8c15ce7dfec31e437114d80f1f936272.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-1cfde42be2b25bdac1c9a16538de37a8.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-32de70b612cc9ebdfae5a7ddba703f7f.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-30ade3af71c390241cfe899534e36d36.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-1637b50d04b69cf5e16bd0bbf9b277ff.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-95d24e09ab8af6f9bb8a02f637efbefb.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-c95d7911b8b0da12d45eb2b0c884164c.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-a7a4b1f73f3b922eb712521db2537797.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-d952a9a976b0c89a36ab9785d928080a.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-01e94dde238387b6d491636e431c752c.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-a4deb866f215617d15a1dc72591272c2.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-f0d95be66a424ed312397f8f0613757f.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-ec5d456a4a273bb3ef10a63412bd72e7.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-dad7d669be7f60d48e93f930da285fda.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-6e65123f6e5caca2e7dca0b85b124ec8.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-5137a1280b1086f54885b488948ffabd.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-465dd785313a94efc09bcc5e0d2e20cf.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-f94bd7474203d823e291319a7258c6c4.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-005a065b9c7e47fe8ec5e93cc24d9658.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-ca1b6d8a4e76111861b2582e96bea836.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-d361f6493b84f04da16487147dee41ca.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-f90252dc6a63da3f259c3add542b2e84.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-64b0f9e2ab826b49e3e93a096aba8259.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-358c56f5ace75e00d521d5b534a8c845.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-d20be57bb305d999dbcf073bb906a2aa.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-1e181fa9791b0dc1c5d9939b82f50e34.php): failed to open stream: Permission denied in C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php on line 90
PHP Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php:90) in C:\inetpub\wwwroot\ojs\lib\pkp\classes\template\PKPTemplateManager.inc.php on line 836
PHP Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\wwwroot\ojs\lib\pkp\classes\cache\FileCache.inc.php:90) in C:\inetpub\wwwroot\ojs\lib\pkp\classes\template\PKPTemplateManager.inc.php on line 837
PHP Fatal error: Uncaught --> Smarty: unable to write file C:\inetpub\wwwroot\ojs\cache\t_compile\wrt5cad932ad59f83_59408498 <–
thrown in C:\inetpub\wwwroot\ojs\lib\pkp\lib\vendor\smarty\smarty\libs\sysplugins\smarty_internal_runtime_writefile.php on line 60

some one can help me please,
what i have to do

#2

Hello! Did you solve it? I have the same problem and I do not know how to solve it.

#3

no i can´t solve it :confused:

1 Like
#4

Hi all,

When you see error messages like…

PHP Warning: file_put_contents(C:\inetpub\wwwroot\ojs\cache\fc-locale-358c56f5ace75e00d521d5b534a8c845.php): failed to open stream: Permission denied

…and…

PHP Fatal error: Uncaught --> Smarty: unable to write file C:\inetpub\wwwroot\ojs\cache\t_compile\wrt5cad932ad59f83_59408498 <–

…these are file permission problems. You need to correctly set the file permissions in your cache directory (including all of its contents and subdirectories) so that PHP scripts (like OJS) can manage the files there. There is an entry in the FAQ area of this forum about file permissions.

Regards,
Alec Smecher
Public Knowledge Project Team

2 Likes
#5

i set the permissions already but now im getting this error
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Application has a deprecated constructor in C:\inetpub\wwwroot\ojs\ojs-2.4.8-2\classes\core\Application.inc.php on line 36
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PKPApplication has a deprecated constructor in C:\inetpub\wwwroot\ojs\ojs-2.4.8-2\lib\pkp\classes\core\PKPApplication.inc.php on line 39
PHP Deprecated: Non-static method PKPApplication::defineExposedConstant() should not be called statically in C:\inetpub\wwwroot\ojs\ojs-2.4.8-2\lib\pkp\classes\core\PKPApplication.inc.php on line 545
PHP Deprecated: Non-static method PKPApplication::getExposedConstants() should not be called statically in C:\inetpub\wwwroot\ojs\ojs-2.4.8-2\lib\pkp\classes\core\PKPApplication.inc.php on line 513
PHP Fatal error: Cannot use ‘String’ as class name as it is reserved in C:\inetpub\wwwroot\ojs\ojs-2.4.8-2\lib\pkp\classes\core\String.inc.php on line 57

#6

Hi @hajuch0,

OJS 2.x releases do not currently support PHP7. The github ojs-stable-2_4_8 does, if you’re familiar with git. Otherwise I would suggest either downgrading your PHP to 5.6 or (better) working with OJS 3.x.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like
#7

ok now i install ojs 3.1.2 and still having errors now i have that one:

PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\pages\install\InstallHandler.inc.php on line 118
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 106
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 205
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 613
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 774
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 959
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb-xmlschema.inc.php on line 1217
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb.inc.php on line 263
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb.inc.php on line 359
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb.inc.php on line 2921
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in C:\inetpub\wwwroot\ojs2\ojs-3.1.2\lib\pkp\lib\adodb\adodb.inc.php on line 3939

#8

Hi @hajuch0,

Those are just warnings, and can be ignored – but make sure that you configure your PHP to send error messages to the log file, rather than the browser, or they’ll interfere with AJAX requests.

We’re gradually working to resolve all the warning messages but they shouldn’t break anything.

Regards,
Alec Smecher
Public Knowledge Project Team

#9

now it is working
thanks.