- Posts: 19
Joomdle 1.0 Installation
fail php
- Yusef
- Topic Author
- Offline
- New Member
-
Less
More
5 years 7 months ago - 5 years 7 months ago #1
by Yusef
fail php was created by Yusef
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.
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.
Last edit: 5 years 7 months ago by Yusef.
Please Log in or Create an account to join the conversation.
- Yusef
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
5 years 7 months ago #2
by Yusef
Replied by Yusef on topic fail php
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.
[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.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
5 years 7 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic fail php
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:
By:
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:
Code:
$this->course_info['remoteid'] . '&create_user=0&Itemid='.$itemid;
Code:
$this->course['remoteid'] . '&create_user=0&Itemid='.$itemid;
Please Log in or Create an account to join the conversation.
- Yusef
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
5 years 7 months ago #4
by Yusef
Replied by Yusef on topic fail php
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.
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.
- Yusef
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
5 years 6 months ago #5
by Yusef
Replied by Yusef on topic fail php
Isn't there anyone who can help me? should I uninstall Joomdle forever?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
5 years 6 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic fail php
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.
> . 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.
- Yusef
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 19
5 years 6 months ago #7
by Yusef
Replied by Yusef on topic fail php
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?
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.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
5 years 6 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic fail php
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.