Internal Server Error

  • Fernando Acedo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 6 months ago #1 by Fernando Acedo
Internal Server Error was created by Fernando Acedo
Hi all,

I have an installation with Joomla 1.5.26 and moodle 2.2

I'm using Joomdle 0.7 to integrate them. After finish Joomdle setup, Joomla system health shows all green.

Then I can login in Joomla, open moodle in the wrapper and use it without problems (as admin): open a course, navigate, .... So it seems all is working well.

But when I go to add the Joomdle enrolment to a course it shows "Internal Server Error" message and the same error when I logout from Joomla. Also, when I go to Authenticated methods management, I get a blank page.

I made several tests: re-installing moodle 2 times from scratch, using CURL and file_get_content, removing completely joomdle and reinstalling again version 0.61 and 0.7, using different login modules in Joomla and I get always the same result.

Any idea what could happens?

My opinion is the server has some problem in the PHP. I created the same environment in my test server and all is working fine. But I would like to know the source of the problem.

Thanks in advance

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

More
13 years 6 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Internal Server Error
Sorry, no idea of what could be wrong, as this is cleary something specific to your server.

What I don't know is: how did you configure joomdle if you get a blank page in manage auth?

It seems it could be something related to php.ini. Are you using a custom one?

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

  • Fernando Acedo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 6 months ago #3 by Fernando Acedo
Replied by Fernando Acedo on topic Re: Internal Server Error
Antonio,

thanks for your anwer.

It's a VPS server and updated the PHP version to install moodle. So probably there are some problem in the installation. Unfortunetely I don't have access to the server system and can't verify it.

I was checking several times the phpinfo and now I see the memory_limit is 32M. It's strange moodle didn't show a warning but I guess this is the problem.

I requested the change to 128 and will see what happens. I will keep you informed.

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

  • Fernando Acedo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 6 months ago - 13 years 6 months ago #4 by Fernando Acedo
Replied by Fernando Acedo on topic Re: Internal Server Error
We modified memory_limit to 128MB and some errors were solved but I get the same error in the course enrolement.
What I could investigate is:

When the error appears on the screen, the browser address bar shows:

http: //website.com/moodle/enrol/joomdle/edit.php?courseid=5


And the PHP error_log shows:

Default exception handler: No valid arguments supplied or incorrect server configuration Debug:
* line 435 of /lib/setuplib.php: moodle_exception thrown
* line 3169 of /lib/filelib.php: call to print_error()
* line 37 of /pluginfile.php: call to file_pluginfile()


Probably you know better what edit.php call to break in these calls.
Last edit: 13 years 6 months ago by Fernando Acedo.

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

  • Fernando Acedo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 6 months ago #5 by Fernando Acedo
Replied by Fernando Acedo on topic Re: Internal Server Error
I solved the problem moving the site to another hosting company and a new server but the error was in the price when you setup the Joomdle enrolment in moodle.

If the price is 0 then shows the error but if you change to 1, then it works fine :ohmy:

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

More
12 years 9 months ago #6 by Dragos Dumitrescu
Replied by Dragos Dumitrescu on topic Internal Server Error
Hello, I have the same problem (Internal server error when choosing to add joomdle as enroll method on course). The integration works fine and I've set the default price 1 in joomdle enroll plugin and still same error. The website is hosted at a hosting company and I don't have to much access on configuration. Any idea what might cause this error?

Thank you,

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

  • Fernando Acedo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 9 months ago #7 by Fernando Acedo
Replied by Fernando Acedo on topic Internal Server Error
If you are running Joomdle in a shared hosted then you probably will get this error.

Joomdle and therefore moodle and Joomla need at least a VPS with full control to add PHP extensions and access folders.

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

More
12 years 9 months ago #8 by Dragos Dumitrescu
Replied by Dragos Dumitrescu on topic Internal Server Error
Sad to hear that, since changing the host company it's not that easy in my situation. Do you know exactly what extensions and what permissions I need to solve this problem? Maybe I can get them from current hosting.

Thank you.

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

  • Fernando Acedo
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 9 months ago #9 by Fernando Acedo
Replied by Fernando Acedo on topic Internal Server Error
Run a phpinfo.php and get the PHP and MySQL version.Also if XMLRPC is installed.

Then verify the memory_limit. If less 128MB then probably is the problem.

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

More
12 years 9 months ago #10 by Dragos Dumitrescu
Replied by Dragos Dumitrescu on topic Internal Server Error
This is what I've found in cPanel:

PHP version 5.3.21
MySQL version 5.5.28-cll
XML_RPC 1.5.5
memory_limit 128M

Is there a problem if the joomla and moodle are in a subdomain?

Thank you

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