Joomdle 1.0 Installation

get_context_instance_by_id()

  • Alexandre Texeira
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 7 months ago #1 by Alexandre Texeira
get_context_instance_by_id() was created by Alexandre Texeira
Hi Everybody!

Moodle Blocks
auth_joomdle 2008080232 0.95
block_jsgroup 2009123100
Moodle Version 2.9.2+ (Build: 20150918)


Joomla & Server
PHP instalado sobre: Linux thai.edu.uy 3.2.0-4-amd64 #1 SMP Debian 3.2.53-2 x86_64
Versión de la base de datos 5.5.41-0+wheezy1
Cotejamiento de la base de datos utf8_general_ci
Versión de PHP 5.4.36-0+deb7u3
Servidor web Apache
Interfaz de PHP cgi-fcgi
Versión de Joomla! Joomla! 3.4.3 Stable [ Ember ] 2-July-2015 16:00 GMT
Versión de la plataforma de Joomla! Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

About the Error or Issue
when we attempt matriculate users in the courses the LMS display that message :

Detectado un error de codificación, debe ser corregido por un programador: get_context_instance_by_id() is now removed, please use context::instance_by_id($id) instead.
URL:
Debug info:
Error code: codingerror
Stack trace:
* line 3358 of /lib/deprecatedlib.php: coding_exception thrown
* line 5942 of /auth/joomdle/auth.php: call to get_context_instance_by_id()
* line ? of unknownfile: call to joomdle_role_assigned()
* line 299 of /lib/eventslib.php: call to call_user_func()
* line 518 of /lib/eventslib.php: call to events_dispatch()
* line 726 of /lib/classes/event/base.php: call to events_trigger_legacy()
* line 1770 of /lib/accesslib.php: call to core\event\base->trigger()
* line 1340 of /lib/enrollib.php: call to role_assign()
* line 160 of /enrol/manual/ajax.php: call to enrol_plugin->enrol_user()

this issue is dispayed too when we attempt reset a course, unmatriculate a student, and other instances.

¿Suggests to solve?

Please Log in or Create an account to join the conversation.

More
10 years 7 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic get_context_instance_by_id()
You need to upgrade to latest Joomdle to keep up with Moodle updates.

Please Log in or Create an account to join the conversation.

  • Alexandre Texeira
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago - 10 years 6 months ago #3 by Alexandre Texeira
Last edit: 10 years 6 months ago by Alexandre Texeira.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago - 10 years 6 months ago #4 by Chris
Replied by Chris on topic get_context_instance_by_id()
Did you update Joomdle in Moodle too? This line
"auth_joomdle 2008080232 0.95"
shows that Joomdle was not updated in Moodle.

And the images you posted show the Joomla side not the Moodle side.

Here is the upgrade instructions - which work for Joomdle 1.02 as well. www.joomdle.com/wiki/Upgrading
Last edit: 10 years 6 months ago by Chris.

Please Log in or Create an account to join the conversation.

  • Alexandre Texeira
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #5 by Alexandre Texeira
Replied by Alexandre Texeira on topic get_context_instance_by_id()
Chris,

The joomdle version in the moodle is 2008080251 (1.0.2) see this
www.dropbox.com/s/f53z4shpatba6x3/Captur...%2020.51.19.png?dl=0

In the joomla the version is Joomdle 1.0.2


www.dropbox.com/s/zm07i70s7rmgoet/Captur...%2020.55.34.png?dl=0

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic get_context_instance_by_id()
I don't know where the error is coming from, as I checked 1.0.2 code and I don't see any calls to get_context_instance_by_id

Can you check aut.php, line 5942 and see what is in there?

Please Log in or Create an account to join the conversation.

  • Alexandre Texeira
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago - 10 years 6 months ago #7 by Alexandre Texeira
Replied by Alexandre Texeira on topic get_context_instance_by_id()
Last edit: 10 years 6 months ago by Alexandre Texeira.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic get_context_instance_by_id()
It seems you didn't add the functions to the service in Moodle.

Please Log in or Create an account to join the conversation.

  • Alexandre Texeira
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #9 by Alexandre Texeira
Replied by Alexandre Texeira on topic get_context_instance_by_id()
I can add it manually? or should I wait for an update?

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #10 by Antonio Durán

Please Log in or Create an account to join the conversation.