Assalamualaikum
May peace be upon you all brother and sister
I got some problem after success updating OJs 2741 to 3.0
the journal list seems to be alright like this SS
and also the detail view
but after i click the pdf button i only got blank page
this is my config.inc
no error on php_error.log
i wish anyone can help me out ty
I made the OJS update version 2.4.8 to version 3.0 and I’m experiencing the same problem @radikalbebas, I am unable to view the pdfs of articles.
Looking at the Apache logs identified some errors that may help identify the problem reported by @radikalbebas.
I’m using Debian 7, PHP 5.4 and PostgreSQL 9.4 database.
below is the error log:
I’m currently trying a test upgrade from 2.4.8.0 to 3.0.0.0 and I seem to be getting the same problem as @radikalbebas. Everything appears to be fine until I try to open a .pdf file at which point I get a blank, white page with no error on screen or in the Apache logs.
For a while I was getting an error in the Apache error_log:
PHP Warning: mkdir(): Permission denied in /var/www/html/ojs/lib/pkp/classes/file/FileManager.inc.php on line 304
I found this was because usageStats was trying to create a directory in the root of the file system rather than under the location set for files_dir in the config.inc.php file as it had in the previous version.
I have wondered whether for some reason the files_dir is not being picked as a base directory causing the usageStats to be put in the wrong place and the pdf files to fail to display as well. The System Information in the front ends admin screens is displaying the path set in the config file correctly though.
The files in files_dir location are owned by Apache, directories have permissions of 755 and files 644.
I’m still trying to find what is happening here and there is always the chance I have missed something obvious but as a few other people appear to have similar issues I thought I would add my experiences to the topic.
Any advice on what the problem might be would be great.
As is always the way the day after you post to a forum for help you spot what you’ve done wrong!
I had a files_dir of /home/ojs/files and whilst the permissions on the files directory were correct i.e. owned by apache, directories have 755 permissions and files 644 the OJS directory below was not owned by apache. I’ve changed the ownership and (after realising the pdf viewer plugin seems to have been disabled in the update and enabling it again) my pdf files now display correctly.
Hello there … I have just finished my upgrade from 2.4.8.1 to 3.01 (the latest stable version) and I’m facing a similar problem… This is on an Ubuntu Server (Lucid)
apache’s error log reports:
PHP Warning: mkdir(): Permission denied in /var/www/html/ojs/lib/pkp/classes/file/FileManager.inc.php on line 304
following some tips from and really old bug report I edited FileManager.inc.php like this:
> /** if (mkdir($dirPath))
return $this->setMode($dirPath, DIRECTORY_MODE_MASK);
return false;*/
if (mkdir($dirPath))
return FileManager::setMode($dirPath, DIRECTORY_MODE_MASK);
else {echo "COULD NOT MAKE $dirPath";exit();}
So, when I try to open any PDF I get a page stating
COULD NOT MAKE /usageStats
I don’t know why OJS is trying to create a directory on the root filesystem. I have double checked config.inc.php and the files_dir variable is set correctly (I didn’t change it and it was working before)
Also, I doublechecked permissions under “files” directory … tight now www-data is the owner of the directory, the files and all the directories under it (permissions are set to 775 for all)
If someone has a clue or tip it would be highly appreciated!