Quantcast
Channel: Installing and upgrading help
Viewing all 46854 articles
Browse latest View live

Page isn't working after successful upgrade. Please help!!

$
0
0
by Terri Roshell.  

My site will not let me past the login page.  It gives and error of 

This page isn’t working

www.tnfiretraining.com is currently unable to handle this request.

HTTP ERROR 500

The site is in maintenance mode and I just completed and upgrade from 3.4.7 (which worked fine) to 3.6 latest.  During the up grade I received the message PHP Extensions fileinfo and intl needed to be installed. This was done and when I reloaded the page everything was checked so I clicked the continue button.  After which it takes me to the plugin check page, everything looked good so I clicked "update moodle database now"  the site went through the update successfully and when I clicked on continue it went to the login page.  I have checked all permissions, all databases, everything.   



config php
?php  // Moodle configuration file

unset($CFG);
global $CFG;
$CFG = new stdClass();

$CFG->dbtype    = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'db_moodle';
$CFG->dbuser    = 'db_user';
$CFG->dbpass    = 'password';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbsocket' => 0,

);

$CFG->wwwroot   = 'https://www.mysite.com/moodle';
$CFG->dataroot  = '/home4/db/moodledata';
$CFG->dirroot   = '/home4/db/public_html/moodle';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0755;

require_once(dirname(__FILE__) . '/lib/setup.php');

// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!


Re: Import error for table mdl_backup_controllers

$
0
0
by Ken Task.  

May as well increase that setting as there are other tables that are larger than the one MySQL hickup'd on (like log store - the 'who done it' table).  One doesn't want that error to happen during an upgrade.

'spirit of sharing', Ken



Re: Page isn't working after successful upgrade. Please help!!

$
0
0
by Ken Task.  

Did you do the server environment check before attempting to upgrade from 3.4.x?   Aside from the php extensions you had to install, how about anything related to database?

See if you can get to the login page via /moodle/login/index.php

It's not unusual for an upgraded site to need purging of cache.

If you can login, see if you can't purge the cache.

OR go directly there via url: https://yoursite/moodle/admin/purgecaches.php

If not logged on, that should prompt you to login and then forward to that page.

Still have issues: set debugging to on.

Error 500 is a pretty generic error for something wrong ... so you might have to locate your Apache servers error logs for a hint/clue.

'spirit of sharing', Ken




Re: Page isn't working after successful upgrade. Please help!!

$
0
0
by Terri Roshell.  

Thank you for responding.  I did complete the servicer environment check and everything was good.  Database is still innodb antelope utf8_unicode_ci

I can get to the login page but when i put in username and password it gives the error.

When I go to url: https://yoursite/moodle/admin/purgecaches.php it takes me to the login page.

I had to to enable debugging in the config.php file and received this when I attempted to log in.

Warning: require_once(/home/cfdtdonl/public_html/moodle/user/profile/field/associated/field.class.php): failed to open stream: No such file or directory in /home/cfdtdonl/public_html/moodle/user/profile/lib.php on line 571

Fatal error: require_once(): Failed opening required '/home/cfdtdonl/public_html/moodle/user/profile/field/associated/field.class.php' (include_path='/home/cfdtdonl/public_html/moodle/lib/pear:.:/usr/lib/php:/usr/local/lib/php') in /home/cfdtdonl/public_html/moodle/user/profile/lib.php on line 571



Re: Page isn't working after successful upgrade. Please help!!

$
0
0
by Ken Task.  

Line 571 is the *** below.   It requires

    $fields = $DB->get_records_sql($sql, ['userid' => $userid]);
    $data = [];
    foreach ($fields as $field) {
***        require_once($CFG->dirroot . '/user/profile/field/' . $field->datatype ...
        $classname = 'profile_field_' . $field->datatype;
        $field->hasuserdata = !empty($field->hasuserdata);
        /** @var profile_field_base $fieldobject */
        $fieldobject = new $classname($field->id, $userid, $field);
        $fieldobject->set_category_name($field->categoryname);
        unset($field->categoryname);
        $data[] = $fieldobject;
    }
    return $data;

/user/profile/field/ directory is supposed to contain:
checkbox    menu        textarea
datetime    text        upgrade.txt

So are the folders present? and are there files in those folders?

Ownerships/permissions on those folders/files?

If folders are missing, how did that happen?   Ok, that was really a question for thought in how one acquired the 3.6.highest files to do the upgrade.

There is a script in moodle/code/admin/cli/

php purge_caches.php .... obviously purges caches.

php mysql_compressed_rows.php -i

shows?

Also strongly suggest adding:

$CFG->theme='clean';

to your config.php file.

'spirit of sharing', Ken



Re: Page isn't working after successful upgrade. Please help!!

$
0
0
by Terri Roshell.  

Same, 

    $fields = $DB->get_records_sql($sql, ['userid' => $userid]);

    $data = [];

    foreach ($fields as $field) {

        require_once($CFG->dirroot . '/user/profile/field/' . $field->datatype . '/field.class.php');

        $classname = 'profile_field_' . $field->datatype;

        $field->hasuserdata = !empty($field->hasuserdata);

        /** @var profile_field_base $fieldobject */

        $fieldobject = new $classname($field->id, $userid, $field);

        $fieldobject->set_category_name($field->categoryname);

        unset($field->categoryname);

        $data[] = $fieldobject;

    }

    return $data;

user/profile/field/ directory contains all  folders and files are there.

I've attached both file for you to view.

php purge_caches.php

php mysql_compressed_rows.php -i


And I did add the clean theme.


Thanks for all your help.


Re: Page isn't working after successful upgrade. Please help!!

$
0
0
by Ken Task.  

Oh, my ... I am not communicating clearly enough.

The code clip in the response was an attempt to show lines and files shown in your web servers error logs. The error indicated a line where the script failed.   That line I ***'d.   It tried to read a directory and files contained therein and couldn't.

So the question was there ... are there folders/files in moodlecode/user/profile/field/ on your server?

The suggestion to add a line for a theme in your config.php file was an attempt to get around what appeared to me as an infinite loop of some sort .... my browser timed out after 2 minutes.

The suggestion about purge_caches.php and mysql_compressed_rows.php was for you to **run** on your server.   Moodle has php code that your web server executes then serves out but it also has some php scripts that one (logged onto the server via ssh) can execute from the command line.

Login via ssh to your server using a terminal program on your local computer or terminal provided by cPanel or whatever tool you use to access your server.

cd /home/cfdtdonl/public_html/moodle/admin/cli/

Then execute by using 'php' in front of the files to execute:

php purge_caches.php [PRESS ENTER KEY]

and

php mysql_compressed_rows.php [PRESS ENTER KEY]

If you have a friend who is in IT or technical understanding of remotely hosted applications (like Moodle) suggest contacting them and asking for some help.   Expect a PM from me here on this service.

'spirit of sharing',  Ken


Re: Page isn't working after successful upgrade. Please help!!

$
0
0
by Terri Roshell.  

Problem solved.  I found out during the upgrade there were dependent plugins being loaded before the primary plugins.  After your suggestions, the debugging was showing errors on files not found, which told me which plugin I needed to add immediately.  Because they were older version plugins the update didn't have them available to install during the update.  Sorry if i misunderstood, I was getting delirious.  Thanks so much for your advice.  


Re: Import error for table mdl_backup_controllers

$
0
0
by Al Bay.  

That is true.

 I tried it and it resolved the issue.

A million thanks Ken!

Re: Page isn't working after successful upgrade. Please help!!

$
0
0
by Ken Task.  

Welcome!  And congrats!  An upgrade can drive one nuts ... especially with plugins that might not be compatible with the version one is upgrading to.  Been there ... done that! :\

Since the environment check doesn't check addons/plugins, I've a script using moosh that I've called 'checkaddons' that I run to see if there are updates to the plugins.

Looks like:

-----

#!/bin/bash
#
echo 'Add-on listing: ';
cat ./addons.txt;
echo '---------------------';
for i in `cat ./addons.txt`
do
   echo "Addon in que: $i";
moosh -n plugin-list |grep $i
done

------

The addons.txt file is nothing more than a text file that list the shortnames of the addons:

Example of addons.txt:

mod_hvp
mod_questionnaire
mod_customcert

Output of script looks like:


Addon in que: mod_hvp
mod_hvp,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,https://moodle.org/plugins/download.php/18393/mod_hvp_moodle36_2018113000.zip
Addon in que: mod_questionnaire
mod_questionnaire,1.9,2.0,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,https://moodle.org/plugins/download.php/18487/mod_questionnaire_moodle36_2018050108.zip
Addon in que: mod_customcert
mod_customcert,2.9,3.0,3.1,3.4,3.5,3.6,https://moodle.org/plugins/download.php/18626/mod_customcert_moodle36_2018120301.zip

I can then acquire the zips via wget and be prepared for 'events' on updates/upgrades of the site.

'spirit of sharing', Ken


Re: PHP Parse Error with Database Enrollment Plugin

Re: PHP Parse Error with Database Enrollment Plugin

$
0
0
by Howard Miller.  

Best not to dredge up an old post (start a new one with full details).

However, like these posts, you command line PHP will be too old. To prove it, at the command line, type...

php -v

Re: service not available moodle 3.3

$
0
0
by quangha ho.  

I met the same problem on February 02th 2019.

If you use CDN like Cloudfare, delete any Page Rules (First: Log in with your account to Cloudfare; Then locate "Page Rules"; Finally, delete any page rules related to your website site).

It worked for me perfectly.

Error after upgrade

$
0
0
by Gildredge VLE Administrator.  

I have just upgraded from 3.5 to 3.6 without any issues at all.

I have gone through all the plugins and ensured that they are all in place, but am getting an error:  Sorry, the requested file could not be found whenever I try to access any of the meta-courses. Any ideas why?

Even if I try to access the courses directly they fail?

Moodle not accessible after installing a plugin

$
0
0
by Elaine Iamwe.  

Hello all, 

Recently installed  Moodle 3.6 -- was working fine until a installed several plugins.

I now have the white page of death.

I am not able to access backend to deactivate plugins -- this is worse than the Joomla 1.0

I have tried several times now. 

how do i deactivate a plugin so i do not have do a complete reinstall every time there is a glitch with a plugin.


Re: Moodle not accessible after installing a plugin

$
0
0
by Ken Task.  

Not all plugins are compatible with the highest 3.6.x of Moodle.

Do you re-call which plugins ... listing would be nice, but considering 'several' was mentioned that might not be possible.

Would help to know a little bit more about your setup ... would make a difference in suggestions.

What operating system is the Moodle hosted upon?

Where is the site hosted?  Provider?

Do you have some sort of 'backend' access to view files?  Could you locate the moodle code directory?

As far as "worse than Joomla 1.0' ... Joomla 1.0 sucked!  Not really a fair comparison.  And that comment coming from one who has hosted/administered Joomla sites.  smile

'spirit of sharing', Ken

Re: Can not find data record in database table context

$
0
0
by Lisset Vera.  

Thanks to the tips provided

I fixed the problem by creating a new category structure and used the Moodle interface to move the courses to the new categories.


I kept miscellany and created a category at the same level

Re: Error after upgrade

$
0
0
by Howard Miller.  

* Switch on Debugging

* Reproduce the error.

* Give us the *full* error output that you see

...oh, and please consider updating your profile to show your *real* name. We like to know who we're talking to wink

Moodle on Azure

$
0
0
by Syed Ali.  

Has anyone installed moodle on Azure?

Can you create more partition after installing RHEL on Azure?

Re: Error after upgrade

$
0
0
by Gildredge VLE Administrator.  

I found the error and need to contact the developer of the plugin concerned (eTasks course format).

We use this one account so that each admin sees what the others are doing; reducing the risk of duplication.

Is there a better approach?

Viewing all 46854 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>