No applications currently available

lenny
Forums
Hello, I have successfully installed opigno yesterday, everything seem to work properly according to the report accessible at 'admin/reports/status', however I can not install new apps on my opigno. When I'm at 'admin/opigno/system/apps', I have the following message : "No applications currently available". Sometime, I also catch a request timeout error. I first though the problem was due to a corporate proxy blocking the access of my site to internet, but I have manually installed and configured http_proxy which should solved this issue. Following the recommendations on this topic, I have modified the function 'Implements hook_apps_servers_info()' in 'profiles/opigno_lms/modules/opigno/opigno/opigno.module' to link directly to https://www.opigno.org/en/app/query/opigno. Still, I have the same issue and I do not know how to solve it. If you have any solution to try, I would be glad to give it a try. Best regards.
axel

Hi

Hi

Do you have some logs (either in Apache or in Opigno recent log messages) ?

You could try to run drupal_http_request('https://www.opigno.org') in a PHP execution block to see if some error messages are displayed.

lenny

Apache writes the following

Apache writes the following error in the log when starting : "[Fri Jul 17 11:04:46.868126 2015] [mpm_prefork:notice] [pid 4164] AH00163: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f configured -- resuming normal operations [Fri Jul 17 11:04:46.868193 2015] [core:notice] [pid 4164] AH00094: Command line: '/usr/sbin/apache2'" I don't seem to have any particular error raised when requesting 'admin/opigno/system/apps' Also in a terminal I used the command : php -r "drupal_http_request('https://www.opigno.org');" But it returns : " PHP Fatal error: Call to undefined function drupal_http_request() in Command line code on line 1 " I should probably run the PHP function elsewhere but I don't really know where to do it. Thank you for your assistance.
axel

This is not normal

This is not normal

From where did you run this command?

Is your server configured for curl (in particular with the right php extension)?

lenny

Hello,

Hello, I've run the command through the linux terminal. The server seems configured for curl since when I've installed opigno, I have installed curl libcurl3 php5-curl php5-cli
axel

The command I indicated

The command I indicated should not be run inside a linux terminal, but inside Opigno (you should enable PHP block).

lenny

Ok so I've followed the

Ok so I've followed the instruction here to enable and add the php block you've suggested. I've set the location of the new block to the login header (Platon theme). But for some reason, it does not appear on my website.. So I'm currently working on fixing this issue, if you have any suggestion on that matter, I would appreciate.
lenny

Ok so I have checked if

Ok so I have checked if drupal_http_request worked in another way. With my configuration of http_proxy, I've managed to install drupal module in 'admin/modules/install' directly from Drupal repository with no problem. Still, I cannot add opigno applications from 'admin/opigno/system/apps'. The message is "No applications currently available." and now sometimes I catch the error : "Manifest error from Opigno: Not Implemented " Also I couldn't manage to add a block but let's forget this matter for the moment.
axel

You have definitely a problem

You have definitely a problem with connection to Opigno website

You should check that curl is working correctly with https (in particular https://opigno.org website)

lenny

In command line, "curl https:

In command line, "curl https://www.opigno.org" gives nothing, but it is because curl does not redirect me. Instead, if I do "curl https://www.opigno.org/en", I get all the information of the website. So it seems to work with https.
axel

That's strange. I would

That's strange. I would suggest to try running the curl with Apache user (I guess you did it as root user).

It would be interesting as well to try the drupal function I indicated as a php block (you can switch the graphical theme to Bartik if the block does not display)

lenny

With Bartik, I could add the

With Bartik, I could add the drupall_http_request block. I've checked in the log, it seems that the request is executed without any error. Maybe my installation of opigno is not complete because my proxy wasn't set before the installation?
axel

And what does display on

And what does display on screen when you run the request in the PHP block ?

lenny

To be accurate, what's in my

To be accurate, what's in my block is : Drupal request <?php drupal_http_request('https://www.opigno.org'); ?> With format set to php code. I've positioned it to the header. On the header, a block with "Drupal request" written on it is displayed. Nothing more, nothing less.