Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error accessing mailbox #3

Open
reactivo opened this issue Jun 26, 2014 · 2 comments
Open

Error accessing mailbox #3

reactivo opened this issue Jun 26, 2014 · 2 comments

Comments

@reactivo
Copy link

Hi,

The plugin was working in Moodle version 2.6.3+ (Build: 20140619), but suddenly I cannot access to the mailbox.php. It gives me the following errors:

Notice: Trying to get property of non-object in /furanet/sites/campusdes.universidaddepadres.es/web/htdocs/moodle/blocks/jmail/block_jmail_mailbox.class.php on line 95

No se puede encontrar registro de datos en la tabla block_instances de la base de datos.

Más información sobre este error

Debug info: SELECT id,parentcontextid FROM {block_instances} WHERE id IS NULL
[array (
)]
Error code: invalidrecord
Stack trace:
line 1390 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1366 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 7245 of /lib/accesslib.php: call to moodle_database->get_record()
line 57 of /blocks/jmail/locallib.php: call to context_block::instance()
line 95 of /blocks/jmail/block_jmail_mailbox.class.php: call to block_jmail_get_context()
line 48 of /blocks/jmail/mailbox.php: call to block_jmail_mailbox->__construct()

I ran the cron.php several times, as this moodle doc suggests http://docs.moodle.org/all/es/error/moodle/invalidrecord, with no luck. Also I have tried uninstalling the plugin and installing it again, but It keeps showing the error.

Can you help me?
Thanks.

@reactivo
Copy link
Author

I think it has something to do with changing the default home page to "My moodle". Changing it back to default, purging all cache, running cron, and then changing back the home page to "My moodle" seems to solve it, no more errors showing in mailbox.php.

Maybe it can help someone.

@jleyva
Copy link
Owner

jleyva commented Oct 22, 2014

Please, try with the latest version. I think that this bug is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants