Bobcares

Why does error/moodle/generalexceptionmessage appear?

by | Nov 22, 2019

Are you looking for a solution for the error message “error/moodle/generalexceptionmessage”? We can help you.

A few days ago, we had come across this error message and our Support Engineers fixed it efficiently.

Here at Bobcares, we often receive requests to fix Moodle errors as a part of our Server Management Services.

Today, let’s see the possible causes for this error and see how our Support Engineers fix this error.

Why does the exception error message show up?

We have seen this error appearing during moodle upgrade attempt, while attempting to add courses in moodle, creating a guest or admin user and many during many other occasions.

The most common causes for this error that we have seen is due to corrupt plugins, outdated moodle version, missing a few necessary PHP libraries and many more.

Among these, the most common one is the plugins that are mainly used in messaging.

 

Possible causes for error/moodle/generalexceptionmessage to appear

Now, let’s discuss the common causes due to which this error message appears.

 

1. Faulty plugins

Many of our customers enable plugins for messaging in moodle. Sometimes, these plugins won’t be compatible with the PHP version or the moodle version due to which it will throw an error message.

Hence, disabling this plugin will normally fix the error.

 

2. Missing PHP Libraries

We’ve seen customers experiencing this error if the necessary PHP libraries are not available on the server.

However, this can be easily found through the error message displayed in the moodle.

 

3. Outdated Moodle version

Sometimes, if the Moodle is not up-to-date then it will throw an error.

So it is always recommended to keep the moodle updated.

 

How we fix this error/moodle/generalexceptionmessage?

Our Support Engineers are well experienced in managing servers and are familiar with Moodle errors. Now, let’s see how our Support Engineers fix this error.

 

1. Faulty plugins

One of our customers approached us with the error message generalexceptionmessage in moodle. Here is the screenshot of the error message.

Our Support Engineers started troubleshooting this error by checking the version of Moodle.

As a result, we found that the moodle was of the latest version.

Then we went checking for any third plugins enabled for messaging if they are causing any problem.

For that, we followed the below steps:

1. Accessed the Site Administration.

2. Clicked on the Plugin and then Plugins overview option.

3. Then accessed the Additional plugins.

Here, we found that there was a third party plugin enabled. Disabling it fixed the error.

Through this, we could find that the plugin was causing the problem.

 

2. Missing PHP XML Library

We came across the same error message but on another occasion. One of our customers was trying to upgrade the moodle and ran into the below error message

# php moodle/admin/cli/upgrade.php
Default exception handler: Exception - Call to undefined function xml_parser_create() Debug:
Error code: generalexceptionmessage
* line 76 of /lib/xmlize.php: Error thrown
* line 307 of /lib/environmentlib.php: call to xmlize()
* line 355 of /lib/environmentlib.php: call to load_environment_xml()
* line 101 of /lib/environmentlib.php: call to get_latest_version_available()
* line 116 of /admin/cli/upgrade.php: call to check_moodle_environment()

!!! Exception - Call to undefined function xml_parser_create() !!!
!!
Error code: generalexceptionmessage !!
!! Stack trace: * line 76 of /lib/xmlize.php: Error thrown
* line 307 of /lib/environmentlib.php: call to xmlize()
* line 355 of /lib/environmentlib.php: call to load_environment_xml()
* line 101 of /lib/environmentlib.php: call to get_latest_version_available()
* line 116 of /admin/cli/upgrade.php: call to check_moodle_environment()
!!

After looking at this error message our Support Engineers found that the PHP XML library was missing.

Finally, we fixed this error by installing the XML library by running the below command:

apt-get install php7.0-xml
service apache2 restart

After this, the customer was able to upgrade the moodle.

 

[Need any assistance in fixing the moodle errors? – We’ll help you]

 

Conclusion

In short, the error/moodle/generalexceptionmessage appears due to many reasons which include faulty plugins, missing PHP libraries, outdated moodle and many more. Today, we saw how our Support Engineers fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

10 Comments

  1. Diana Pujol

    la solución que das en el punto 1 es la correcta, el problema es que al dar click en administración del sitio me da este error y no me permite entrar

    Reply
    • Hiba Razak

      Hello Diana,
      Thanks for the feedback.If you are still facing any issues, Please contact our support team via live chat

      Reply
    • Duduzile Brenda Mamane

      I want to log in to Moodle app it show error . Please help

      Reply
      • Hiba Razak

        Hi,
        Please contact our support team via live chat(click on the icon at right-bottom)

        Reply
      • Anifa

        I need your help to fix this error

        Reply
        • Hiba Razak

          Hi,
          Please contact our support team through live chat (click on the icon at right-bottom).

          Reply
  2. Ms. Tasha Lane

    Hi, I am experiencing an error message when trying to access my assignments. I Need Help

    The message reads error/Moodle/generalexceptionmessage

    Reply
    • Hiba Razak

      Hello,
      Our experts can help you with the issue.we will be happy to talk to you through our live chat(click on the icon at right-bottom).

      Reply
  3. zeinab

    Hi, I am experiencing an error message when trying to access my assignments. I Need Help

    Reply
    • Krishna Priya

      Hello,
      Our experts are available to assist you with your concerns. We would be delighted to discuss this with you via our live chat feature. Simply click on the icon located in the bottom right corner to get started.

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF