Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • Last Modified:

Moodle Issues

I have a Moodle site that seems to hang after login.  I have transfered the site to 3 different servers including different hosting companies and still have the same issue.

It seems to be a database related issue.  Any suggestions would be appreciated.
0
dansagg
Asked:
dansagg
  • 3
  • 2
1 Solution
 
johanntagleCommented:
What makes you suspect it is a database related issue?  Anyway try to observe the logs (apache, mysql, etc) as you try to log in.  Suggest you also try to replicate the setup in a local environment.
0
 
RoyCommented:
when you say that you have tried it from 3 different server with different hosting companies deos that mean that you have deployed the Moodle on all 3 or you were trying to access the same Moodle instance with different server.
there are few things you can check:

1. when you login what happens next,, page tries to load and load but never reaches to the "My Moodle" or Home page?
2. does it showing any error in the apache, mysql or in the wbepage itself.
3. You can verify if you are able to login to MySQL DB from your web server using the username, password mentioned in "config.php" under moodle folder.
4. you can also enable "Debugging" to see the errors. you can directly access the debugging page via "http://yourmoodleserver.com/admin/setting.php?section=debugging. Debuging can be enabled via "config.php" as well. you can add these 2 line in config.php to enable debuging.
    $CFG->debug = 2047;
    $CFG->debugdisplay = 1;
We might be able to help more if we can see the erros it is throwing. hope this helps
0
 
dansaggAuthor Commented:

1.  It takes a really long time to get to the Home page (if it ever gets there)

4. I have enabled debugging and below is what I get:


parent does not exist!
line 875 of /lib/adminlib.php: call to debugging()
line 22 of /admin/settings/misc.php: call to admin_category->add()
line 5706 of /lib/adminlib.php: call to require()
line 2722 of /lib/navigationlib.php: call to admin_get_root()
line 2630 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 583 of /lib/pagelib.php: call to settings_navigation->initialise()
line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 9 of /theme/formal_white/layout/frontpage.php: call to block_manager->region_has_content()
line 650 of /lib/outputrenderers.php: call to include()
line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1245 of /lib/setuplib.php: call to call_user_func_array()
line 89 of /index.php: call to bootstrap_renderer->__call()
line 89 of /index.php: call to bootstrap_renderer->header()
parent does not exist!
line 875 of /lib/adminlib.php: call to debugging()
line 25 of /admin/settings/misc.php: call to admin_category->add()
line 5706 of /lib/adminlib.php: call to require()
line 2722 of /lib/navigationlib.php: call to admin_get_root()
line 2630 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 583 of /lib/pagelib.php: call to settings_navigation->initialise()
line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 9 of /theme/formal_white/layout/frontpage.php: call to block_manager->region_has_content()
line 650 of /lib/outputrenderers.php: call to include()
line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1245 of /lib/setuplib.php: call to call_user_func_array()
line 89 of /index.php: call to bootstrap_renderer->__call()
line 89 of /index.php: call to bootstrap_renderer->header()
parent does not exist!
line 875 of /lib/adminlib.php: call to debugging()
line 29 of /admin/settings/misc.php: call to admin_category->add()
line 5706 of /lib/adminlib.php: call to require()
line 2722 of /lib/navigationlib.php: call to admin_get_root()
line 2630 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 583 of /lib/pagelib.php: call to settings_navigation->initialise()
line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 9 of /theme/formal_white/layout/frontpage.php: call to block_manager->region_has_content()
line 650 of /lib/outputrenderers.php: call to include()
line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1245 of /lib/setuplib.php: call to call_user_func_array()
line 89 of /index.php: call to bootstrap_renderer->__call()
line 89 of /index.php: call to bootstrap_renderer->header()
parent does not exist!
line 875 of /lib/adminlib.php: call to debugging()
line 30 of /admin/settings/misc.php: call to admin_category->add()
line 5706 of /lib/adminlib.php: call to require()
line 2722 of /lib/navigationlib.php: call to admin_get_root()
line 2630 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 583 of /lib/pagelib.php: call to settings_navigation->initialise()
line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 9 of /theme/formal_white/layout/frontpage.php: call to block_manager->region_has_content()
line 650 of /lib/outputrenderers.php: call to include()
line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1245 of /lib/setuplib.php: call to call_user_func_array()
line 89 of /index.php: call to bootstrap_renderer->__call()
line 89 of /index.php: call to bootstrap_renderer->header()
parent does not exist!
line 875 of /lib/adminlib.php: call to debugging()
line 31 of /admin/settings/misc.php: call to admin_category->add()
line 5706 of /lib/adminlib.php: call to require()
line 2722 of /lib/navigationlib.php: call to admin_get_root()
line 2630 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 583 of /lib/pagelib.php: call to settings_navigation->initialise()
line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 9 of /theme/formal_white/layout/frontpage.php: call to block_manager->region_has_content()
line 650 of /lib/outputrenderers.php: call to include()
line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1245 of /lib/setuplib.php: call to call_user_func_array()
line 89 of /index.php: call to bootstrap_renderer->__call()
line 89 of /index.php: call to bootstrap_renderer->header()
parent does not exist!
line 875 of /lib/adminlib.php: call to debugging()
line 32 of /admin/settings/misc.php: call to admin_category->add()
line 5706 of /lib/adminlib.php: call to require()
line 2722 of /lib/navigationlib.php: call to admin_get_root()
line 2630 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 583 of /lib/pagelib.php: call to settings_navigation->initialise()
line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 9 of /theme/formal_white/layout/frontpage.php: call to block_manager->region_has_content()
line 650 of /lib/outputrenderers.php: call to include()
line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1245 of /lib/setuplib.php: call to call_user_func_array()
line 89 of /index.php: call to bootstrap_renderer->__call()
line 89 of /index.php: call to bootstrap_renderer->header()
parent does not exist!
line 875 of /lib/adminlib.php: call to debugging()
line 33 of /admin/settings/misc.php: call to admin_category->add()
line 5706 of /lib/adminlib.php: call to require()
line 2722 of /lib/navigationlib.php: call to admin_get_root()
line 2630 of /lib/navigationlib.php: call to settings_navigation->load_administration_settings()
line 583 of /lib/pagelib.php: call to settings_navigation->initialise()
line 599 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 132 of /blocks/settings/block_settings.php: call to moodle_page->__get()
line 280 of /blocks/moodleblock.class.php: call to block_settings->get_content()
line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
line 9 of /theme/formal_white/layout/frontpage.php: call to block_manager->region_has_content()
line 650 of /lib/outputrenderers.php: call to include()
line 608 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1245 of /lib/setuplib.php: call to call_user_func_array()
line 89 of /index.php: call to bootstrap_renderer->__call()
line 89 of /index.php: call to bootstrap_renderer->header()
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
RoyCommented:
Can you please mention the following:

1. Moodle version
2. OS and Version
3. DB Type and Version
4. I hope you are able to connect to DB from your Moodle Server.
5. Did you upgrade to the version or this is a new installation ?

I would suggest you to upgrade or if New installation then install Moodle 2.1. Build (20117101). This is latest stable version which I am using in our production environment.

Also I searched and found that something related to this has been reported to Moodle with affected version Moodle 2.0:

http://tracker.moodle.org/browse/MDL-17817?page=com.atlassian.streams.streams-jira-plugin%3Aactivity-stream-issue-tab#issue-tabs

Please let me know the findings.
0
 
dansaggAuthor Commented:
I switched to new hosting company and things run normal
0
 
dansaggAuthor Commented:
Switching worked so I'm sticking with it.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now