10 posts / 0 new
Last post
arthurcomment
Offline
Last seen: 1 year 2 months ago
Joined: 08/26/2017
Testing Opigno Drupal 8

I have tried to install the new beta version Opigno Drupal 8 for testing purpose. I have this error at the end of installation : Fatal error: Call to a member function getFileUri() on boolean in /opigno_8/profiles/opigno_lms/modules/opigno/opigno_module/opigno_module.module on line 375

axel
Offline
Last seen: 3 days 8 hours ago
Staff
Joined: 09/25/2013
Hi,

Hi,

It seems like a file permission issue. Make sure the apache users has the read / write access to the folder where Opigno is installed and what's inside.

Let us know if it fixed the issue.

 

viragom
Offline
Last seen: 2 months 3 weeks ago
Joined: 02/21/2017
call to member function

Had the same problem... But "solved" the problem! Look in the mentioned file... I commented out the complete If-statement that is around line 375 (say 368 to 389, something like that). Then restarted the install process, and works like a charm!

JJ BTW i'm on a local XAMPP distribution

axel
Offline
Last seen: 3 days 8 hours ago
Staff
Joined: 09/25/2013
Hi Viragom

Hi Viragom

Thanks for your feedback!

But I assume that the H5P libraries are not installed since it was the purpose of this if statement to install them

It seems that this problem occurs on Windows and MacOS servers, but not on Linux servers

We will have a look

viragom
Offline
Last seen: 2 months 3 weeks ago
Joined: 02/21/2017
Hi Axel

Hi Axel That's correct, no H5P, but I installed those seperately... and then it works.

JJ

arthurcomment
Offline
Last seen: 1 year 2 months ago
Joined: 08/26/2017
On Linux servers too

I have tried to install it on a Linux server (Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-128-generic x86_64) and had the "Fatal error: Call to a member function getFileUri()" error.

But I suspect there is URI address problem because I had first during installation this error:

Failed to fetch file due to error "Client error: GET http://192.168.0.23/profiles/opigno_lms/images/Opigno_Image_connexion_1600-829_2.jpg resulted in a 404 Not Found response: 404 Not Found Not Found (truncated...) "

It try to access http://192.168.0.23/ but the opigno address on my server is http://192.168.0.23/opigno_2

I'm investigating this problem.

axel
Offline
Last seen: 3 days 8 hours ago
Staff
Joined: 09/25/2013
Hi Viragom,

Hi Viragom,

Exact, you perfectly managed the workaround

 

Hi Arthurcomment,

It seems indeed that the path isn't correctly detected. If you directly install Opigno at the root directory of virtualhost it works, but it doesn't if you install it in a subdirectory.

We will have a look at that issue

axel
Offline
Last seen: 3 days 8 hours ago
Staff
Joined: 09/25/2013
We were able to reproduce the

We were able to reproduce the issue.

It occurs indeed when Opigno is installed in a subdirectory.

We are working on a fix.

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 3 days ago
Staff
Joined: 10/30/2013
New release available.

New release (beta3) is available and fixes this issue when allow_url_fopen = 0

arthurcomment
Offline
Last seen: 1 year 2 months ago
Joined: 08/26/2017
Beta 3 works. What about Opigno 2 in a Drupal 8 Multisite?

New release (beta3) works for an installation in a subdirectory. Thank you.

Howewer I have tried to install it in Drupal 8 multisite configuration . I have the same error "Call to a member function getFileUri() on line 374"