× Joomdle 1.0 Installation

fail php

3 weeks 3 days ago 3 weeks 3 days ago by Yusef.
Yusef
Posts: 19
More
Topic Author
fail php #1
when I want to connect to my website the load time is really high. sometimes it works fine, but sometimes it fails. I recieve the following errors:

Warning: file_get_contents(https://mysite/moodle/webservice/xmlrpc/server.php?wstoken=9a2c61963a6a638a6f4f62da682edb43):
failed to open stream: HTTP request failed! in /home/tadristop/domains/mysite/public_html/administrator/components/com_joomdle/helpers/content.php on line 101

we can't hold our classes. an urgent help is needed. please help us Antonio.

Edit:
the problem arises when we have 200 participants to login at the same time. when the participants are few, no problem in login-in.
we have a dedicated server with 8 core cpu and 64 ram. I hope this helps.

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

3 weeks 2 days ago
Yusef
Posts: 19
More
Topic Author
fail php #2
I have also receiving constant error in my error log for my grades view on line 82:

[27-Sep-2020 07:45:06] PHP Notice: Undefined property: JoomdleViewMygrades::$course_info in /home/my-domain/domains/tadristop.ir/public_html/templates/bbb-template/html/com_joomdle/mygrades/default_course.php on line 82:

$url = $jump_url . '&mtype=' . $item . '&id=' . $item . '&course_id=' .
$this->course_info . '&create_user=0&Itemid='.$itemid;
echo "<a href='$url'>" . $item . '</a>';
}

line 82 is:
$this->course_info . '&create_user=0&Itemid='.$itemid;

I can't understand what's wrong with it.

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

3 weeks 2 days ago
Antonio Durán
Posts: 7183
More
fail php #3
Hi Yusef.

I am afraid I cannot help much from here with the heavy load problem...I would need to see it at your sever to try to understand what the problem is.


As for the error on log, thanks for the bug report. We'll fix it for next release.
You can fix it now editing file components/com_joomdle/views/mygrades/tmpl/default_course.php
Change line 82/83:
$this->course_info['remoteid'] . '&create_user=0&Itemid='.$itemid;
By:
$this->course['remoteid'] . '&create_user=0&Itemid='.$itemid;

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

3 weeks 1 day ago
Yusef
Posts: 19
More
Topic Author
fail php #4
hello Antonio.
thanks for your reply.

I changed the code for JoomdleViewMygrades.

but for heavy load of site I don't know what to do. today the school manager warned me he is going to fire me. yesterday I had changed connection method from file_get_contents to curl, but no use. Today I had to disable joomdle plugin and changed all the users auth types from joomdle to manual and gave them the direct link to access the moodle site. I think joomdle can't handle large number of simultaneous logins and I don't know what to do. please give your invaluable advices. I can give you all the admin credentials to access the backend if you want. If you want I can send you my error-log.

Please help me. joomdle is our utopia.

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

2 weeks 5 days ago
Yusef
Posts: 19
More
Topic Author
fail php #5
Isn't there anyone who can help me? should I uninstall Joomdle forever?

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

2 weeks 4 days ago
Antonio Durán
Posts: 7183
More
fail php #6
Hi.

> . I think joomdle can't handle large number of simultaneous logins

It's probably not Joomdle itself, but server resources.
Joomdle uses more resources for login than a normal Joomla or Moodle login, as it needs to do both.

Maybe server runs out of processes, or file descriptors...
If you want you can send the error log to antonio at joomdle in case I see something...but most probably I won't.

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

2 weeks 6 hours ago
Yusef
Posts: 19
More
Topic Author
fail php #7
Hi Antonio.
thank you for your help. today I saw sth in my .htaccess file:

php_value memory_limit 32M

can it be a limit for number of simultaneous users and cause the error?

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

1 week 5 days ago
Antonio Durán
Posts: 7183
More
fail php #8
No, I don't think so. That's a per-process limit, and your problem only happens with many logins.

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