R0.22 and earlier: No Longer Supported

[Solved] Auth Plugin 3

  • Martin Schacke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 9 months ago - 15 years 9 months ago #1 by Martin Schacke
[Solved] Auth Plugin 3 was created by Martin Schacke
What have I done wrong. I get this error after uploading and checking the plugin:

(mysql): INSERT INTO mdl_mnet_host2service(hostid, serviceid, publish) VALUES ('0', '4', '1')
1062: Duplicate entry '0-4' for key 2
ADOConnection._Execute(INSERT INTO mdl_mnet_host2service(hostid, serviceid, publish) VALUES ('0', '4', '1'), false) % line 891, file: adodb.inc.php
ADOConnection.Execute(INSERT INTO mdl_mnet_host2service(hostid, serviceid, publish) VALUES ('0', '4', '1')) % line 89, file: dmllib.php
execute_sql(INSERT INTO mdl_mnet_host2service(hostid, serviceid, publish) VALUES ('0', '4', '1'), true) % line 2302, file: dmllib.php
execute_sql_arr(Array[3]) % line 635, file: ddllib.php
install_from_xmldb_file(/var/www/web12/web/toolbox/moodle/auth/joomdle/db/install.xml) % line 137, file: adminlib.php

//Martin
Last edit: 15 years 9 months ago by Chris.
The topic has been locked.
More
15 years 9 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Auth Plugin 3
Hi. It seems as if you installed it twice?
Anyway: when you finished, is the Joomdle plugin present in authentication methods list?

Antonio
The topic has been locked.
  • Martin Schacke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 9 months ago #3 by Martin Schacke
Replied by Martin Schacke on topic Re: Auth Plugin 3
No it isn't. The list page is blank.

If i delete the joomdle folder in auth, the list comes back.
The topic has been locked.
More
15 years 9 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: Auth Plugin 3
Blank? Never saw it :(

Can you try this: remove folder, visit Notifications, put back joomdle folder, but removing bd/ directory. Then visit Notifications again.

What Moodle version are you using?

Antonio
The topic has been locked.
  • Martin Schacke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 9 months ago #5 by Martin Schacke
Replied by Martin Schacke on topic Re: Auth Plugin 3
I'm using Moodle 1.9.7+ (Build: 20100127)

You ment the db folder - right?

Now I get full blank screen. Deleted the joomdle folder again, and it's back to normal.
The topic has been locked.
More
15 years 9 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: Auth Plugin 3
Hi, yes, that is what I meant.

I can replicate your problem if I put a syntax error in auth.php in moodle/auth/joomdle.
So, I think what it is happening is that something in the code is throwing an error.

I looked at the code and there is a couple of leftout includes (calendar and forum) that you could remove to see if by luck is that, although I don't think so, because I installed it on 3 sites and everything went fine.

If that not solves the problem, I would bet on commenting out the logoutpage_hook() function and see what happens. That is the major change in this file from earlier versions.

The point is to find out which code is causing the error, so we can try to solve it.

Antonio
The topic has been locked.
  • Martin Schacke
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 9 months ago #7 by Martin Schacke
Replied by Martin Schacke on topic Re: Auth Plugin 3
I reinstalled Moodle i now it works :blush:

Must have done something wrong.

But thanx for your time. Think you can delete this thread.

//Martin
The topic has been locked.