- Posts: 84
locked out
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
11 years 8 months ago #1
by Jason E
locked out was created by Jason E
something happened. Everything was working fine, but then I installed SH404SEF
I did a couple of other minor things before I noticed that there was a problem.
I can log in to Joomla, and see my courses, but when I try to access the moodle course, it says I'm already logged in.
Also in system check,
Joomdle Web Services is X out. It used to say that it was possibly misconfigured in moodle joomdle auth, but I could not log in as admin since I have the login redirected to joomla.
I uninstalled and reinstalled, now it says.
An unexpected error happened: 404: Unknown error
I'm stuck because I can't log in to moodle directly, I can get to the login page, but when I try to log in it bounces me back to joomla and I'm not in moodle anymore.
ugh.
I did a couple of other minor things before I noticed that there was a problem.
I can log in to Joomla, and see my courses, but when I try to access the moodle course, it says I'm already logged in.
Also in system check,
Joomdle Web Services is X out. It used to say that it was possibly misconfigured in moodle joomdle auth, but I could not log in as admin since I have the login redirected to joomla.
I uninstalled and reinstalled, now it says.
An unexpected error happened: 404: Unknown error
I'm stuck because I can't log in to moodle directly, I can get to the login page, but when I try to log in it bounces me back to joomla and I'm not in moodle anymore.
ugh.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 8 months ago #2
by Chris
Replied by Chris on topic locked out
Hi there,
The first step I would take is to undo what started the problem ie SH404SE. This should at least allow you to get back in.
Then I suggest you configure your SEF to ignore for joomodle and moodle.
The first step I would take is to undo what started the problem ie SH404SE. This should at least allow you to get back in.
Then I suggest you configure your SEF to ignore for joomodle and moodle.
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 8 months ago - 11 years 8 months ago #3
by Jason E
Replied by Jason E on topic locked out
Thanks Chris.
I did that, It's strange.
The other thing I did was try to extend session lifetime. This is because the moodle session max was 4 hours. So I altered the moodle config to add this line.
$CFG->sessiontimeout = 31557600;
That might have had something to do with it.
But I took that line out and tried clearing the cache on the back end, but I don't know where all the cache files are.
It's difficult because I only have one moodle admin account and now I'm locked out.
I can get to the moodle login page. But it won't let me in. I think also because I upgraded moodle and reinstalled joomdle to try and fix this, but I could never log in as admin to get to the notifications page.
When I try to log in as admin, it just bounces me to the joomla page and I'm back where I started.
I have access to my back end and database.
I am wondering a couple things.
1. I thought I cleared sessions out of the database in moodle and out of the dataroot dir - cache - default_application. But I'm not sure I got the right stuff.
2. I don't know how to create a new admin user from a current user in the moodle database, I was thinking this might be a way in the back door.
I did that, It's strange.
The other thing I did was try to extend session lifetime. This is because the moodle session max was 4 hours. So I altered the moodle config to add this line.
$CFG->sessiontimeout = 31557600;
That might have had something to do with it.
But I took that line out and tried clearing the cache on the back end, but I don't know where all the cache files are.
It's difficult because I only have one moodle admin account and now I'm locked out.
I can get to the moodle login page. But it won't let me in. I think also because I upgraded moodle and reinstalled joomdle to try and fix this, but I could never log in as admin to get to the notifications page.
When I try to log in as admin, it just bounces me to the joomla page and I'm back where I started.
I have access to my back end and database.
I am wondering a couple things.
1. I thought I cleared sessions out of the database in moodle and out of the dataroot dir - cache - default_application. But I'm not sure I got the right stuff.
2. I don't know how to create a new admin user from a current user in the moodle database, I was thinking this might be a way in the back door.
Last edit: 11 years 8 months ago by Jason E.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 8 months ago #4
by Chris
Replied by Chris on topic locked out
Hi there,
When you say that you try to login as admin, I assume you mean directly through Moodle and I assume that your admin id/password does not exist in Joomla (since they are not syncronised). Even if for some reason you are bounced as you say back to Joomla you should still be able to navigate manually to the desired moodle page (already logged in).
If you are having problems access Moodle login, you can refer to this page at the very bottom.
www.joomdle.com/wiki/Installing_Joomdle_in_Moodle_2
If you are concerned about caching / sessions, use multiple browsers (not windows of the same browser). Moodle can get confused if you try frontend and backend from the same browser and the same time since moodle does not distinguish between frontend and backend like joomla. Eg. I always do frontend (student) work in Chrome and admin work in FF. Thus moodle never gets confused and local caching of sessions does not get confused.
With regard to engaging us to assist, unfortunately now is not possible. It is approaching my day time job and will be off to work within 30 minutes.
When you say that you try to login as admin, I assume you mean directly through Moodle and I assume that your admin id/password does not exist in Joomla (since they are not syncronised). Even if for some reason you are bounced as you say back to Joomla you should still be able to navigate manually to the desired moodle page (already logged in).
If you are having problems access Moodle login, you can refer to this page at the very bottom.
www.joomdle.com/wiki/Installing_Joomdle_in_Moodle_2
If you are concerned about caching / sessions, use multiple browsers (not windows of the same browser). Moodle can get confused if you try frontend and backend from the same browser and the same time since moodle does not distinguish between frontend and backend like joomla. Eg. I always do frontend (student) work in Chrome and admin work in FF. Thus moodle never gets confused and local caching of sessions does not get confused.
With regard to engaging us to assist, unfortunately now is not possible. It is approaching my day time job and will be off to work within 30 minutes.
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 8 months ago #5
by Jason E
Replied by Jason E on topic locked out
I managed to get in to moodle as an admin by manipulating the mysql database.
In systme check I still get " Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle "
But it is not.
I'm not sure what is happening with that.
In systme check I still get " Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle "
But it is not.
I'm not sure what is happening with that.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 8 months ago #6
by Chris
Replied by Chris on topic locked out
You may wish to check out the System Health Check FAQ for that error message.
www.joomdle.com/wiki/System_health_check
www.joomdle.com/wiki/System_health_check
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 8 months ago #7
by Jason E
Replied by Jason E on topic locked out
I'm at a loss.
Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle
Re-check your Joomla URL in Joomdle auth plugin configuration, in Joomdle auth plugin in Moodle.
Make sure you include http://
Check
Check Joomla multi-language configuration and enter appropiate parameters in Moodle side if necessary
Check any mod_security rules that may deny XMLRPC traffic
I only have one language, Eng - Check
Disable any Joomla security extensions you may have installed
I don't think I have any - Check
You may also want to visit: http::/yoursite.com/index.php?option=com_joomdle&task=ws.server&format=xmlrpc
If everything is working fine, you should see something like:
XML-RPC Error (1): Access Denied
Check
Joomla URL seems to be misconfigured in Joomdle auth plugin in Moodle
Re-check your Joomla URL in Joomdle auth plugin configuration, in Joomdle auth plugin in Moodle.
Make sure you include http://
Check
Check Joomla multi-language configuration and enter appropiate parameters in Moodle side if necessary
Check any mod_security rules that may deny XMLRPC traffic
I only have one language, Eng - Check
Disable any Joomla security extensions you may have installed
I don't think I have any - Check
You may also want to visit: http::/yoursite.com/index.php?option=com_joomdle&task=ws.server&format=xmlrpc
If everything is working fine, you should see something like:
XML-RPC Error (1): Access Denied
Check
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 8 months ago - 11 years 8 months ago #8
by Jason E
Replied by Jason E on topic locked out
I've been going over and over the instructions again and triple checking the settings. The only thing odd was that for some reason the token was not there. I created a new one, then it changed the error message to
Joomdle Web Services An unexpected error happened: 404: Unknown error
The rest are still green.
And I get a server error
PHP Warning: strstr() expects parameter 1 to be string, array given in
xxxxx/plugins/user/joomdlehooks/joomdlehooks.php on line 230
Joomdle Web Services An unexpected error happened: 404: Unknown error
The rest are still green.
And I get a server error
PHP Warning: strstr() expects parameter 1 to be string, array given in
xxxxx/plugins/user/joomdlehooks/joomdlehooks.php on line 230
Last edit: 11 years 8 months ago by Jason E.
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 8 months ago #9
by Jason E
Replied by Jason E on topic locked out
I still have the Joomdle Web Services problem.
I did a full restore of all the physical files on the site and reinstalled the newest version of moodle again. So whatever it is, it's in the database or settings but not in the files.
I did a full restore of all the physical files on the site and reinstalled the newest version of moodle again. So whatever it is, it's in the database or settings but not in the files.
Please Log in or Create an account to join the conversation.
- Jason E
-
Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
11 years 8 months ago #10
by Jason E
Replied by Jason E on topic locked out
Posting Fix from Antonio for future reference. THANKS!
Well, first thing I did was to enable debugging in Moodle to get more info about the problem.
It said something about an optional parameter, which we don't use in Joomdle, so I guessed that you had added Moodle core functions to the Joomdle service, which can cause problems.
I went to check it, but I got an error about a missing method in Joomdle: checked the files in cpanel, and it seems they were inconsistent: one file had the function, but other didn't.
So, I decided it was better to just start clean again, and uploaded new package.
After that, system check was still failing the same way, but I could access functions section of the service in Moodle, where I confirmed you had added non-Joomdle functions to the service.
Instead of deleting them ( they are many, and needed individual removing), I just deleted the service, and created it again. Added only Joomdle functions, enabled user and created new token. Uptaded config in Joomla side, and system check became green.
So, to sum up, there were 2 problems:
- Incosistent files (probably a wrongly done update)
- Moodle core functions incorrectly added to service
Well, first thing I did was to enable debugging in Moodle to get more info about the problem.
It said something about an optional parameter, which we don't use in Joomdle, so I guessed that you had added Moodle core functions to the Joomdle service, which can cause problems.
I went to check it, but I got an error about a missing method in Joomdle: checked the files in cpanel, and it seems they were inconsistent: one file had the function, but other didn't.
So, I decided it was better to just start clean again, and uploaded new package.
After that, system check was still failing the same way, but I could access functions section of the service in Moodle, where I confirmed you had added non-Joomdle functions to the service.
Instead of deleting them ( they are many, and needed individual removing), I just deleted the service, and created it again. Added only Joomdle functions, enabled user and created new token. Uptaded config in Joomla side, and system check became green.
So, to sum up, there were 2 problems:
- Incosistent files (probably a wrongly done update)
- Moodle core functions incorrectly added to service
Please Log in or Create an account to join the conversation.