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

Unable to display User profile page after upgradtion

$
0
0
by Madhukar Reddy.  

Hi, 

I have upgraded my Moodle version from 2.6 to 2.7 then 2.7 to 3.2 then 3.1 to 3.6, everything is working fine except user profile page, it is showing black area in user profile space, i have turned on debug mode and found below errors:

Coding error detected, it must be fixed by a programmer: tag_get_tags_csv() can not be used anymore. Please use core_tag_tag::get_item_tags_array() or $OUTPUT->tag_list(core_tag_tag::get_item_tags()).

More information about this error

Debug info:
Error code: codingerror
Stack trace:
  • line 1826 of /lib/deprecatedlib.php: coding_exception thrown
  • line 413 of /user/profile.php: call to tag_get_tags_csv()

Can anybody help me please 

Thanks in advance,


Regards,

Madhukar





Re: Unable to display User profile page after upgradtion

$
0
0
by Ken Task.  

This must be a typo?  2.7 to 3.2 then 3.1 to 3.6

should read 2.7 to 3.1 then 3.2 - then to ...  I hope! smile

Did you stop at each stage and check/test the site:
 
line 1826 of /lib/deprecatedlib.php: coding_exception thrown

That line number in that file has this:

/**
 * @deprecated since 3.1. Use core_tag_tag::get_item_tags() instead
 */
function tag_get_tags_ids() {
    throw new coding_exception('tag_get_tags_ids() can not be used anymore. Please consider$
        'core_tag_tag::get_item_tags() or similar methods.');
}


The second line in the error that points to user/profile.php at line 413 is strange
cause that file only goes to 226 lines of code.

In your process of upgrading the site, did all files of new moodle code get onto
the server?     Using git or move, upload zip, un-zip ... whatever your process is?

The only version of moodle that has that line (1826 of /lib/deprecatedlib.php) section is
3.6.

Did you take backups of code and db when you got to a 'stage' ... like from
2.7 to 3.1?  Hopefully from 3.5 to 3.6!!!

Dunno a 'fix' ... suggest 'rolling back' the code/DB to version 3.5 and hold there until some more research is done.

'spirit of sharing', Ken

Re: Error: Database connection failed

$
0
0
by Visvanath Ratnaweera.  

Recheck all $CFG->db* parameters in your config.php.

Some common mistakes:
- $CFG->dbtype, ist it the correct one out of mysql, mysqli, mariadb, etc?

- Can you log in to mysql console with $CFG->dbname, $CFG->dbuser, $CFG->dbpass and look at the content of the Moodle database?

- Is $CFG->prefix there in every table?

Re: Upgrade 3.5.4+ to 3.5.5+ gives database error

$
0
0
by Alain Raap.  

Thanks for your explanation Ken, my question about why the collation was changed with the upgrade still keeps me busy. I would like to know why the upgrade couldn’t be done without this error. Maybe the next build of Moodle doesn’t give this error, we’ll see.

English speaking course in Chandigarh

Re: Upgrade 3.5.4+ to 3.5.5+ gives database error

$
0
0
by Ken Task.  

Please see:

https://moodle.org/mod/forum/discuss.php?d=383652#p1546850

Once DB is converted shouldn't have any more issues like that during updates or upgrades ... but it still kinda begs the question about why only some tables had different settings.   Quirk of MySQL? or code?   Can't answer your question really ... can't speak for Moodle HQ and am not trying to.   Do know that I finally got around to making the default character set/collation to that which has been in config-dist.php since version 3.1.

Did have some issues with those settings when upgrading MySQL to 5.7 and in researching 8.0 looks like I'll be doing some more.

Eventually, the 'dust will settle' though ... I hope! ;)

'spirit of sharing', Ken


BigBlueButton uses HTML5 Client on Chrome

$
0
0
by Tuan Mai Chung.  

I have a problem when using BigBlueButton on Google Chrome that they only allow me to use Adobe Flash Player to join in the online course. For example:

This is what it looks like on Google Chrome.

 BigBlueButton_on_Chrome 


And this is what it looks like on other browsers.

 BigBlueButton_on_other_browsers


So my question here is: Is it possible to join in BigBlueButton online course on Chrome without using Adobe Flash like on other web browsers?


Thank you!

Re: Upgrade 3.5.4+ to 3.5.5+ gives database error

$
0
0
by Alain Raap.  

Thanks for the link about this DB issue. I think converting the tables with mysql_collation.php script will solve the problem permanently.
And I'll check the 3.5.4 and previous installations if there are different collations used. Probably with Moodle 3.5.5+ this is causing problems with tables that have a different collation then expected.


Re: BigBlueButton uses HTML5 Client on Chrome

Re: Upgrade 3.5.4+ to 3.5.5+ gives database error

$
0
0
by Jon Bolton.  

Glad you’ve got it sorted - but just chipping in here because you need to be aware that technology and software changes over time and upgrades will not always be pain-free!

But fortunately, the Moodle docs are VERY clear, and ALWAYS worth a read before upgrading.

For example...

Before upgrading - We advise that you test the upgrade first on a COPY of your production site, to make sure it works as you expect.

Backup important data

Move your old Moodle software program files to another location. Do NOT copy new files over the old files.

And in addition, the upgrading notes specifically say:

If you use MySQL or MariaDB, make sure your database supports full UTF-8 (utf8mb4) if you install a new instance of Moodle. CLI script may be used to convert to utf8mb4 if you're upgrading. You may choose to keep using 'utf8_*', but then a warning will show that the database isn't using full UTF-8 support and suggest moving to 'utf8mb4_unicode_ci'. See MySQL full unicode support for details. If you do enable utf8mb4 you *must* use the Barracuda file format. 

... so on the assumption that you did actually read the docs, the issue you describe shouldn’t really have been a surprise, should it? 🤔

Re: Upgrade 3.5.4+ to 3.5.5+ gives database error

$
0
0
by Alain Raap.  

Jon, we test the upgrade always in a lab environment first. That’s where I got the error. All previous upgrades went smootlhy without problems, but it’s always good to take time to prepare the upgrade to a new version! 

We’re already using the collation that is advised, but two different collations caused my DB error (and I’m not the only one here that got this error). So I had to investigate why I had two different collations on my tables.

Object as class name error

$
0
0
by klaus fettig.  

install.php got:


fatal error cannot use object as class name as it is reserved in /lib/setuplib.php


The odd part is I changed the name of the class in install.php.. However, the same error comes up when I open localhost/moodle/install.php

Re: Object as class name error

$
0
0
by klaus fettig.  

Changed class name in setuplib.php . Retrospect I should've tried that first prior to posting.. But, I don't know how to delete this. 


If anyone happens to see this and know if a PHP class can be named "object" let me know.

Re: Object as class name error

$
0
0
by Howard Miller.  

Do NOT change core code. That way lies madness.

The issue is that your version of PHP is too old. 

Make sure you read the release notes and requirements for the version of Moodle you are installing. You don't say which version but 3.6 *requires* PHP 7. 

Re: Object as class name error

$
0
0
by klaus fettig.  

Yeah I appreciate the advice and warning.  I thought I might run into some reference issues in the future by changing a class name. But, I am just stuck in this spiral. The whole reason I am using an open source LMS is because I put creating my own on hold (it is WIP but taking FOREVER!).. So, the last thing I want to do is fuck around and debug shit.. 


Seems like using an open source LMS isn't quite as plug and play as I would've liked. My unfamiliarity with apahce, and linux is a bit suffocating too.. 


Thank you Howard I will give it a try, and report back. Currently I moved onto Chamilo, but I'll keep you posted with respect to moodle.


Moodle 3.2 and Turnitin2

$
0
0
by Vijendra Lal.  

We using Moodle 3.2 but planning to upgrade to 3.6 at the end of this semester. We understand that turnitin 2 is no longer supported for Moodle 3.2 but currently we are still using Turnitin 2 and Moodle 3.2 for a couple of months before our planned upgrade to 3.6.

 Just wondered if there could be any potential risks for delaying our upgrade for a few months. We didn't want to upgrade in the middle of the semester and be up for other risks with student assignment submissions during the semester

Thanks

Re: Object as class name error

$
0
0
by klaus fettig.  

I updated php, and it worked. However, I got the following errors. I am having a hard time finding the extensions. I will look into the docs for moodle for further instruction. In the meantime if anyone has additional advice let me know.

Re: Object as class name error

$
0
0
by Howard Miller.  

At the risk of stating the obvious... you need to install these PHP extensions. Without knowing what your operating system is or where you got PHP from, it's hard to help. 

Re: Moodle 3.2 and Turnitin2

$
0
0
by Howard Miller.  

Surely - as it is a commercial product - this is a question for Turnitin?

On a more general point, support for 3.2 ended completely in May 2018, which I'm guessing is a lot more than a semester ago. This illustrates why 'keeping up to date' is important. 

403 error during site registration

$
0
0
by Vinay Jain.  

HI,

I am trying to register moodle 3.6.3 on a shared hosting. It leads me to a 403 error page with 

--------------------------

403 - Forbidden
The Web server is configured to not list the contents of this directory or you do not have enough permissions to access the resource

-----------------------------

How do I fix this? My hosting provider is saying that they have not restricted anything and this is code error and not from there end.

NOte: I receive the site is registered email but the moodle dashboard still shows site is unregistered! What am i missing and how do I fix this?

Viewing all 47375 articles
Browse latest View live