Giter Club home page Giter Club logo

Comments (6)

lucasdiedrich avatar lucasdiedrich commented on September 8, 2024 1

As this is not anymore related to the containers i'm closing the issue.

Thanks @marcbria @Potomac

from ojs.

marcbria avatar marcbria commented on September 8, 2024

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.

Potomac avatar Potomac commented on September 8, 2024

@marcbria @lucasdiedrich

Sounds a complicated bug, when I will back to work I will try to check these 2 aspects :

  1. 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"

  1. 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.

Potomac54 avatar Potomac54 commented on September 8, 2024

@marcbria @lucasdiedrich

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.

Potomac54 avatar Potomac54 commented on September 8, 2024

@lucasdiedrich @marcbria

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.

marcbria avatar marcbria commented on September 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.