Comments (6)
As this is not anymore related to the containers i'm closing the issue.
from ojs.
Did you check this: https://forum.pkp.sfu.ca/t/justboil-me-image-upload-error/33738
Or that? pkp/pkp-lib#1919
Cheers,
m.
from ojs.
Sounds a complicated bug, when I will back to work I will try to check these 2 aspects :
- the need of having a subfolder "site" in public folder
because when the "site" subfolder doesn't exist then the plugin is unable to create a folder "site" inside "public" folder, even if the public folder has 777 chmod rights, and also even if the public folder belong to the apache/httpd user
@marcbria : you can do a test by renaming the "site" folder to "_site" inside public folder, and you will see that the bug will occur, even if you do a "chmod 777 -R /public",
it seems that the php code for this "justboil.me" plugin is faulty when it tries to create the subfolder "public/site"
- the need of reseting sometimes a cookie or a session variable related to the plugin "justboil.me", according to some users in the bugreports
from ojs.
I did the tests, in the docker container the folder "public/site" is present and has "chmod 777", I delete the cookies, but I still have the bug,
then I activated the development mode in the file " /var/www/hmtl/plugins/generic/tinymce/plugins/justboil.me/ci/index.php", in order to have more info in the apache log,
I get new informations in the apache log, one warning, and one php fatal error, something related to file /var/www/html/classes/i18n/AppLocale.inc.php, and the getUserVar() function :
[Thu Apr 11 09:59:50.231582 2019] [php7:warn] [pid 36] [client 172.19.0.1:51652] PHP Warning: include(): Failed opening 'application/errors/error_php.php' for inclusion (include_path='.:/var/www/html/classes:/var/www/html/pages:/var/www/html/lib/pkp:/var/www/html/lib/pkp/classes:/var/www/html/lib/pkp/pages:/var/www/html/lib/pkp/lib/adodb:.:/usr/share/php7') in /var/www/html/plugins/generic/tinymce/plugins/justboil.me/ci/system/core/Exceptions.php on line 182, referer: http://localhost:8085/plugins/generic/tinymce/plugins/justboil.me/dialog-v4.htm
[Thu Apr 11 09:59:50.233620 2019] [php7:error] [pid 36] [client 172.19.0.1:51652] PHP Fatal error: Uncaught Error: Call to a member function getUserVar() on null in /var/www/html/classes/i18n/AppLocale.inc.php:70\nStack trace:\n#0 /var/www/html/lib/pkp/classes/i18n/PKPLocale.inc.php(99): AppLocale::getLocale()\n#1 /var/www/html/lib/pkp/classes/i18n/PKPLocale.inc.php(766): PKPLocale::translate('installer.insta...', Array, NULL)\n#2 /var/www/html/plugins/generic/tinymce/plugins/justboil.me/integratePKP.php(103): __('installer.insta...')\n#3 /var/www/html/plugins/generic/tinymce/plugins/justboil.me/config.php(42): IntegratePKP->__construct()\n#4 /var/www/html/plugins/generic/tinymce/plugins/justboil.me/ci/application/config/uploader_settings.php(5): require('/var/www/html/p...')\n#5 /var/www/html/plugins/generic/tinymce/plugins/justboil.me/ci/system/core/Config.php(130): include('/var/www/html/p...')\n#6 /var/www/html/plugins/generic/tinymce/plugins/justboil.me/ci/application/controllers/uploader.php(21): CI_Config->load('uploader_settin...', true)\n#7 /var/www/html/plugins/generic/tinymce/plugins/justboil.me/ci/syste in /var/www/html/classes/i18n/AppLocale.inc.php on line 70, referer: http://localhost:8085/plugins/generic/tinymce/plugins/justboil.me/dialog-v4.htm
my OJS installation is configured with french language (fr_FR), and I installed additionnal language (en_US),
if I install OJS without docker then there is no bug, uploading image works
from ojs.
I fixed the bug, my ojs config file was not correct for these 2 settings :
- base_url : I have set "http:/localhost/ojs" but the correct setting is " "http:/localhost"
- public_files_dir : it was set to a full path (/var/www/html/public) but the correct setting is to set to a relative path (public)
after these 2 corrections all is ok now, I can upload image without problems
from ojs.
Without taking a look to lucas' installation scripts, my two cents about this:
- The public_files_dir issue was commented in #27 and fixed in the PR #26
- To avoid problems I suggest don't set "base_url" in config.inc.php. OJS will ask apache about the url and will do the work for us. Normally people sets this variable when they get in trouble.
Thanks for your help @Potomac54. We are quite close to have this docker ready to be released.
from ojs.
Related Issues (20)
- Unknown charset error HOT 4
- Feature request: Make it run over play-with-docker HOT 5
- New release (and a proposal) HOT 32
- Unable to install OJS with latest tag (ojs-3_1_1-4) HOT 6
- Unable to install OJS with php7-test tag (ojs-3_1_2-0) HOT 13
- ojs-cli-install doesn't work as expected HOT 10
- Feature request : generate dynamically config.inc.php inside the container HOT 12
- Feature request : re-create automatically the database if there are no tables HOT 7
- Docker-compose not working out of the box HOT 4
- problem when the server is running with https HOT 11
- Is "file" utility present in php:7.3-alpine image ? HOT 5
- Testing latest branch HOT 2
- OJS installed by default or better not? HOT 8
- Testing master branch HOT 1
- Private folder is wrong in autoinstallation querystring
- Avoid the error "checkstart entered FATAL state, too many start retries too quickly" HOT 8
- Add support for multiple OJS versions HOT 13
- New release 3.1.2-1 HOT 6
- Missing dependency for texture plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ojs.